How to improve website UI with Claude Code: prompts, design words and checks
Get better website UI from Claude Code. What to tell it before it designs, example prompts, the design words that change the result, and how to avoid generic AI design.
8 min read
How do you get good UI out of Claude Code?
Give Claude Code three things before it writes any CSS: a reference site to copy the feel of, the design words for what you want, and a short list of things it must not do. Then make it look at the page it built, at desktop and phone width, and fix one problem at a time.
Most generic results come from the first prompt. "Build me a landing page for my startup" leaves every design decision to Claude, so it picks the safest answer for each one. You get the page you have already seen a hundred times.
I run iter0, which builds websites with AI agents, and I build our own site with Claude Code and Codex. The bans below are the ones we use, and the prompts follow how we work.
Why does Claude Code make generic designs?
When a prompt leaves a decision open, Claude fills it with the most common choice it has seen. Each choice is reasonable on its own. Together they produce the page people now call AI slop.
You can spot it in seconds:
- A purple or blue gradient behind a centred headline.
- A small pill badge above the headline, often with a coloured dot.
- Three feature cards in a row, each with an emoji or a line icon.
- Glowing orbs, blurred blobs or a dark hero with neon accents.
- The Inter font at every size, with little difference between heading and body.
- Every element in a rounded box with a soft shadow.
- Copy such as "Supercharge your workflow" that could belong to any product.
Ban the defaults by name
Telling Claude "don't make it look generic" does little, because it has no list of what generic means. Name the patterns instead. Our own design rules ban purple boxes, pills above the headline, coloured dots, glow effects and emoji in the interface. We keep that list in a design file every agent reads before it touches the site.
Put a block like this in your prompt, or better, in your design note so every session reads it:
Do not use:
- gradients behind text, purple or blue accent colours
- pill badges or coloured dots above the headline
- emoji or decorative icons
- glow, blur or orb effects
- a row of three identical feature cards
- a shadow and rounded border on every element
Use one accent colour, only for the main button.What to tell Claude before it designs a page
Write a short brief. It needs to cover who the page is for, what they should do on it, which site to take the feel from, and what to keep. Five lines is enough. A reference site does more work than any adjective, because Claude can look at it and copy concrete decisions: how big the headline is, how much space sits between sections, how many colours appear.
Pick a reference with the same job as your page. A developer tool can borrow from Linear or Vercel; a local trade business might borrow from a well-made agency site. Copy the layout and spacing, never their logo, copy or customer quotes.
Build the homepage for Ledgerly, bookkeeping software for
solo founders in New Zealand.
Visitor: a founder who does their own GST and hates it.
Goal: they understand the product and start a free trial.
Reference: vercel.com for spacing, type sizes and restraint.
Keep: our logo, our copy below, and the colours in globals.css.
One accent colour, black and white everywhere else.
Show me the page at 1440px and 390px when you're done.Design words that change the result
Claude knows design vocabulary well. When you use the exact word, it usually makes a specific change. When you say "make it pop" or "make it cleaner", it guesses. These are the words worth learning, with what each one controls and a line you can paste.
| Design word | What it controls | Say this to Claude |
|---|---|---|
| Visual hierarchy | Which element the eye lands on first, second and third | "The headline is the first thing anyone reads. Make the subhead clearly second and the nav quiet." |
| Type scale | The set of font sizes and the jump between them | "Use a type scale with a big jump: 64px headline, 20px subhead, 16px body." |
| Whitespace | Empty space around and between elements | "Double the vertical space between sections. Let the hero breathe." |
| Spacing scale | A fixed set of gaps, such as 4, 8, 16, 32, 64px | "Use only spacing values from an 8px scale. No one-off margins." |
| Grid | The columns content lines up on | "Put everything on a 12-column grid with a 1200px max width. Left edges must line up." |
| Measure | How many characters fit on one line of text | "Keep body text to 65 characters per line at most." |
| Contrast | The difference in size, weight or colour between elements | "Raise contrast between heading and body: heavier weight, darker colour." |
| Accent colour | The one colour that marks what to click | "Black and white, with one accent colour used only on the main button." |
| Density | How much content sits on one screen | "Lower the density. One idea per section, fewer cards." |
| Alignment | Whether text is centred or left-aligned | "Left-align the hero. Centre nothing except short labels." |
| Focus and hover states | What a button looks like when tabbed to or pointed at | "Give every link and button a visible focus ring and a subtle hover." |
| Empty and error states | What a form or list shows with no data or a failed submit | "Design the error state for the signup form, with a message that says what to fix." |
Example prompts for each stage
Use a different prompt for each job. A first build needs the full brief above. After that, keep prompts narrow: one section, one change, and the parts that must stay as they are. Narrow prompts stop Claude from redesigning sections you already liked.
To restyle a section from a reference:
Look at the pricing section on linear.app/pricing.
Rebuild our /pricing section with the same layout: plan names
in one row, prices large, features as a plain list.
Keep our plans, prices and copy exactly.
Don't touch any other section.
If you can't open the page, say so and I'll paste a screenshot.Prompt to remove the AI look from an existing page
This works on a page Claude already built. Asking it to name the problems first gives you a list you can check, and stops it from making changes you didn't ask for.
Review the homepage as a senior product designer.
List every element that looks like a generic AI template:
gradients, pill badges, emoji, identical card rows, glow,
vague copy. Don't edit yet. Give me the list with a fix for each.Prompt to fix one thing
Name where the problem is, what you see, and what you want instead. Then say what to keep and how to check it.
On /pricing at 390px wide, the price drops below the plan
description, so you can't compare plans. Keep each price
directly under its plan name. Keep the copy and button styles.
Screenshot the section at 390px and 1440px when done.Make Claude look at the page it built
Claude writes code it cannot see unless you give it a way to look. Code that builds without errors can still produce a squashed hero or a menu that covers the page on a phone. Always close the loop with a picture of the rendered page.
There are three ways to do it. In the Claude Code desktop app, the preview pane runs your site and Claude can take screenshots of it. In the terminal, you can paste or drag a screenshot into the chat. Or ask Claude to write a short Playwright script that screenshots the page at 1440px and 390px, then read the images back.
Ask for both widths every time. A layout that works on a laptop often breaks on a phone, and you will only see it if someone looks.

Keep your design decisions in a file Claude reads every time
Each new Claude Code session starts without your design decisions. If they only live in old prompts, the next session picks fonts and colours again. Write them in a DESIGN.md at the root of your project: your fonts, colours, spacing scale, the reference site, and the ban list from above.
Then load it from CLAUDE.md with one import line, such as @DESIGN.md. The path is relative to the CLAUDE.md file, so if CLAUDE.md sits inside a .claude folder the line is @../DESIGN.md. Start a new session and run /context to check the file loaded.
What to do when Claude keeps getting it wrong
If the same mistake comes back after you asked for a fix, stop asking for a redesign and find the cause. There are usually two.
The design note isn't loaded. Check /context in a fresh session. If DESIGN.md isn't listed, fix the import line before changing anything else.
A CSS rule is overriding the one you asked for. Right-click the element in your browser, choose Inspect, and look at the styles panel. The rule that wins is at the top; crossed-out rules lost. Tell Claude the file and selector of the winning rule and ask whether it was meant to be there. A stray hard-coded colour in one section can beat every instruction you give.
A reusable review skill
If you review pages often, save the steps as a Claude Code skill. Ours is a Markdown file: put it at .claude/skills/ui-review/SKILL.md, then run /ui-review with the page and the reference. It compares the rendered page with the reference at two widths, names one problem, proposes a fix, and reports what it didn't check. Read it before you install it. If /ui-review doesn't appear in the command menu, see the guide on skills that don't trigger.
How this guide was written
I rewrote this guide in November 2026 from the prompts and design rules we use to build iter0.com. The example product, Ledgerly, is made up. AI helped with research and editing. The Claude Code documentation links were checked on 6 November 2026. If a prompt here doesn't work for you, tell me what happened through the contact page.
By John McKeown. About iter0.
Put the brief into practice
A launch page should make the buyer, promise, proof, and next action obvious. iter0 uses this same standard when it turns a brief or reference site into a builder-ready page.
Start your launch buildAlready have a website? Get a free review and three redesigns of your homepage