Best Codex Prompts open the library

prompt topic

Codex prompts for a whole website

By the uberdesigner team · reviewed

Answer in brief

To get a whole website from Codex in one task, give it a brief with five parts: the goal, the pages and their content, the design values in numbers, the file layout it should produce, and the commands that prove it is done. A site is small enough for one task as long as the brief leaves no design decision open.

Ask for the tokens file first and the pages second, inside the same brief. Every page then draws from one set of values, and later tasks have something to point at.

Write the site as a file layout

A person reads a site as pages. An agent builds it as files. Say both: list the pages, then say where things live. One tokens file for colour, type and spacing. One folder of components. One file of content, so copy can be edited without touching layout.

This is more than tidiness. The next ten tasks you give Codex will name these files. A brief that says "all values come from src/styles/tokens.css" makes every follow-up shorter.

Put real content in the repository

Codex reads files, so give it files. Put the copy in a Markdown or JSON file and the images in a folder, and name both in the brief. An agent that finds real headlines and real photographs fits the layout around them. An agent that finds nothing writes filler and sizes the page to the filler.

If the content isn't ready, say which parts are placeholders and ask for them to be marked in one place, so replacing them is a single edit.

End with a definition of done

Close the brief with a short list the agent can check without you: the build passes, the type checker passes, the linter passes, no page scrolls sideways at 390px, every image has alt text, every link resolves. Ask for a closing report that lists what it checked and what it couldn't.

The last item matters. An agent may not be able to look at the rendered page in your setup. Asking it to say so is better than a report that claims the site looks right.

What a whole-site brief for Codex should contain

A prompt to start from

Codex task: whole website
Task: build a three-page website for [studio name], a [what it does] in [city]. The one action is "[Book a visit]", which links to [URL].

Stack: Vite + React + TypeScript, React Router, plain CSS with custom properties. No UI library, no CSS framework, no analytics.

File layout:
- src/styles/tokens.css: every colour, size, space and duration. Components use tokens only.
- src/content/site.json: all copy. Read it; do not rewrite it.
- src/components/: Header, Footer, Button, WorkCard, Section.
- src/pages/: Home, Work, Contact.

Design values:
- Ground #f3efe6, ink #17150f, accent #c8401a, hairlines #17150f at 14% opacity.
- Headlines in "Fraunces" 600: 84px desktop, 44px phone, line-height 0.98. Body in "Inter" 17px, line-height 1.55. Labels 12px uppercase, letter-spacing 0.08em.
- Page grid: 12 columns, 24px gutters, max width 1320px. 144px between sections, 72px on phones. Radius 2px. No shadows.

Pages:
1. Home: headline and one sentence from site.json; a row of three WorkCards; a full-width quote; the action.
2. Work: all projects from site.json in a two-column grid, images at 4:5.
3. Contact: address, hours, email, the action. No form.

Motion: page content fades up 16px over 0.5s, ease-out, once. WorkCard image scales to 1.03 over 0.4s on hover. Nothing else moves. With prefers-reduced-motion, no movement at all.

Phones (below 720px): one column, header collapses to the name and the action, hover effects off.

Done when:
- npm run build, npm run typecheck and npm run lint all pass.
- No horizontal scroll at 390px or 1440px.
- Every image has alt text from site.json.
Run it and check each page. Then report what you verified and what you could not.

Written for this page as a starting point; swap the parts in [brackets] for your own. The full prompt of each uberdesigner template is longer and specific to one finished design, and it is tested by rebuilding the template from the prompt alone.

Whole sites to hand to Codex

Finished sites on uberdesigner, each with a prompt that rebuilds it as a Vite + React project. vibetyper, melune and dj zak are free. Give Codex the prompt plus your own content file and keep the design.

Questions and answers

Is a whole website too big for one Codex task?

A site of a few pages is fine when the brief settles the design and the file layout. Split the work when parts don't share anything: build the site first, then give a 3D scene or a booking flow its own task.

Should the brief go in the prompt or in a file?

Either works. A long brief is easier to keep as a Markdown file in the repository, with a short prompt that says to read it and carry it out. The file is also there for the next task to refer to.

Keep reading

Who makes this site

Best Codex Prompts is written and run by the ubernatural team, the designers who make uberdesigner. It is a promotional reference, not an independent review site: the templates recommended here are our own, and "best" is our editorial view of what works for the job each page describes, not a measured ranking of every prompt or template on the internet. This site is not affiliated with or endorsed by OpenAI. Codex is OpenAI's product.

Cite this page: Best Codex Prompts, “Codex prompts for a whole website”. Reviewed 11 November 2026. https://bestcodexprompts.com/codex-website-prompts/