Coding agents can make design artifacts, not just code. The trick is to ask
for something you can open and look at, like an HTML page, then react to
it with specific feedback before anything touches your app. These prompts go
with Project 5: Look and Feel. Replace
the parts in [brackets].
A good design prompt names five things:
Read: design/references and design/references/notes.md. ← inputs
Make: design/moodboard.html ← one artifact, one file
Show: a grid of the images with my notes as captions ← what's in it
Rules: Do not change the app. ← limits
Review: Tell me how to open it and what to check. ← your next step
Use the product design terms in your feedback. “Make the primary button the strongest thing in the visual hierarchy” gets a better result than “make it pop.”
- Ask for an artifact you can open, usually an HTML file in
design/. - Open it in your browser and look at it the way a user would.
- Give one specific change. Paste a screenshot and point at the problem. In Codex, you can attach a screenshot to your message.
- Repeat until it looks right, then apply it to your app, one screen at a time.
Here is a screenshot of design/style-guide.html. The cards feel cramped and
the headings are too close in size to the body text. Increase the card
padding and make headings clearly larger. Change only the tokens, then tell
me what you changed.
Find references to collect:
My project is [one sentence]. I want it to feel [three words].
Suggest 10 search terms for finding reference screenshots on Dribbble or
Pinterest, and 5 real apps worth screenshotting. Do not design anything yet.
Turn your references into a moodboard page:
Look at the images in design/references and my notes in
design/references/notes.md. Create design/moodboard.html: a grid of the
images with my notes as captions, then a summary of the colors (as hex
swatches), fonts, shapes, and mood they share. Point out any reference that
does not fit with the others. Do not change the app.
No clear direction yet? Ask for options:
Suggest 3 different visual directions for my project. Give each one a name,
three mood words, a five-color palette with hex codes, and a font pairing.
Show them side by side in design/directions.html, each with a sample heading,
card, and button. Do not change the app.
Draw the flow:
Read project-brief.md and the app in src/. Create design/user-flow.md with
numbered steps of the core journey, the screen for each step, and what the
user sees for empty, loading, and error states. Then create
design/user-flow.html that draws the same flow as a diagram: one box per
screen, arrows labeled with what the user does, and empty or error paths in
a different color. Mark steps the app does not support yet.
Do not change the app.
Sketch each screen:
Using design/user-flow.md, create design/wireframes.html with a simple
gray-box wireframe of each screen, side by side and numbered to match the
flow. Use no colors or images, only layout and labels.
Change the flow:
Add a step between [step] and [step] where the user [action]. Update
design/user-flow.md, design/user-flow.html, and design/wireframes.html to
match. Do not change the app yet.
Keep your design system in src/system/ so the style guide page and your app
share the same files. Change a color once, and both update.
Design tokens:
Read design/moodboard.html and design/references/notes.md. Create
src/system/tokens.css with CSS variables for colors, fonts, font sizes,
spacing, corner radius, and shadows. Name them by role, like
--color-primary and --space-md, not by value like --blue. Do not change
any other app files.
Components and a living style guide:
Create src/system/components.css with styles for buttons (primary,
secondary, disabled), text fields (normal, focused, error), a card, a modal,
and an empty state, using only the variables in tokens.css. Add
src/system/components.js with a small script to open and close the modal.
Then create design/style-guide.html that links ../src/system/tokens.css,
components.css, and components.js and shows every color, font size, and
component in each state, with labels. Also write design/style-guide.md with
a short list of the rules. Do not change any other app files.
Tune the system by role:
Make --color-primary warmer, and increase the contrast between body text
and the background. Keep everything else the same. Tell me which variables
you changed so I can check design/style-guide.html.
Optional: dark mode:
Add a dark theme to src/system/tokens.css and a light/dark toggle to
design/style-guide.html. Check that text stays readable in both themes.
Compare layouts before you build:
Make 3 HTML mockups of the [screen name] screen in design/mockups/, each
with a different layout. Use the files in src/system/. Show all three side
by side in design/mockups/index.html. Do not change the app.
Ask for a critique, not a fix:
Here is a screenshot of my [screen name] screen. Critique it as a UX
designer: visual hierarchy, spacing, contrast, and whether the next step is
obvious. List the five biggest problems, most important first.
Do not change anything yet.
Check consistency:
Compare this screenshot of my app with design/style-guide.html. List every
place where my screen does not follow the design system.
Connect the system:
Link src/system/tokens.css, components.css, and components.js from
src/index.html. Replace hard-coded colors, fonts, and spacing in
src/style.css with the variables from tokens.css. Keep the layout and
behavior the same. Tell me what changed and how to test it.
One screen at a time:
Rebuild the [screen name] screen to match design/mockups/[option].html,
using components from src/system/. Change only this screen, keep the
behavior the same, and tell me how to test it.
Check small screens:
Tell me how to view my app at 375 pixels wide, like a phone. List the layout
problems you expect, then fix only the biggest one.
Keep your docs true:
Update design/user-flow.md and design/user-flow.html to match what the app
does now, and update the Status section of AGENTS.md.
- Ask for files you can open, not paragraphs about design.
- One change per prompt. Name the file, screen, or component you mean.
- Your
design/folder andsrc/system/are the source of truth. When the agent drifts, point it back to them. - References are for inspiration. Do not copy logos, photos, or other people's work into your app.