workflow · 5 min read · 한국어 · Français

Claude Code design guide: rules, references and review loops

A Claude Code design guide is most useful when it stays on design: the rules Claude should hold in every session, the reference it should build from, the tokens it should not invent, and the loop you use to review the UI. This page covers that workflow only. For installing uberdesigner studio, the Claude Code skill with a visual editor, see A Claude design skill with a visual editor. For the build itself, see how to build a website with Claude Code.

What this guide covers

Claude Code will write whatever the session asks for. Without a design system to follow, that usually means typography, colour and layout defaults. The fix is not a more elaborate one-off prompt. It's durable design rules, a real reference, and a review pass against the actual screen.

What a design prompt needs to contain, when you do write one, is in Claude prompts for web design. If your team also works from Figma, Claude Code to Figma covers that connection. Neither of those is repeated here.

Claude Code design guide: the rules file

The rules belong in a file Claude reads at the start of every session, not only in the first prompt.

Put design rules in CLAUDE.md

Claude Code reads CLAUDE.md files at the start of every session and treats them as persistent instructions. Anthropic's docs describe them as the place to write down what you'd otherwise re-explain: conventions, "always do X" rules, project layout. Keep the file specific and concise; Claude treats it as context, not as enforced configuration. Official source: How Claude remembers your project (checked 25 Nov 2026).

For a website project, a project CLAUDE.md (at ./CLAUDE.md or ./.claude/CLAUDE.md) is the right place for design rules that should survive every new session. A short example of the kind of rules to put there:

# Design rules

- Build only from the reference in /docs/design and the tokens in /src/styles/tokens.css. Do not invent a new palette or type ramp.
- Fonts: use only the faces named in tokens.css. Do not switch to Inter or system-ui unless a token already does.
- Colour: background, text, one accent, neutrals — all from tokens. No extra accent.
- Spacing and type sizes come from the token scale. Don't introduce one-off values.
- Motion: only the motions described in the reference, with their triggers and durations. Respect prefers-reduced-motion.
- Change one section at a time. Don't restyle the rest of the page to match a local fix.

That's an example of format, not a quote from Anthropic. Put the real font names, hex values and motion rules for your project in the file, and add a rule when Claude makes the same design mistake twice — which is one of the cases the official docs give for updating CLAUDE.md.

Personal preferences that aren't for the rest of the team can live in ./CLAUDE.local.md (usually gitignored) or in ~/.claude/CLAUDE.md, as the same page describes.

Give Claude a real reference

Rules in CLAUDE.md are not enough if Claude has no picture of the page. Before you ask it to design anything, point it at one finished reference: the template you're rebuilding, a Figma file of that design, or screenshots of the approved page. One reference is easier to follow than a pile of unrelated inspirations.

Ask Claude to read the reference and the token file first, then to build or correct a single section against them. If you start from one of our templates, the prompt on the template page is already written from that design; paste it once, then let CLAUDE.md keep the rules in later sessions.

Keep tokens in a design-system file

A design-system file Claude can actually use is a short, named list: colours, type families and sizes, spacing, radii, and motion timings. CSS custom properties in something like src/styles/tokens.css work well, because the values are visible in the repo and CLAUDE.md can point at the file.

When a value isn't in the token file, Claude should ask or stop, not invent a close neighbour. If a review leaves a new one-off colour or size in a component, either move it into the token file or revert it. The file is the system of record for how the site looks; CLAUDE.md is the instruction to use it.

The screenshot review loop

Claude won't reliably notice that a spacing value drifted, that a mobile layout broke, or that a colour isn't in the system, unless you show it the screen and ask about that one thing.

Official ways to get a screenshot into Claude Code:

  • In the VS Code extension, paste an image from the clipboard into the prompt box (Use Claude Code in VS Code, checked 25 Nov 2026).
  • In the Claude desktop app's Code tab, attach images from the + button next to the prompt box, or drag them in. Anthropic notes this is useful for screenshots of bugs and design mockups (Desktop application, checked 25 Nov 2026). In a local session, Claude can also open the running app in the Browser pane, take screenshots and inspect the DOM.

A review loop that stays scoped:

  1. Open the page at the width you're checking (desktop or phone).
  2. Take a screenshot of one section, or of that section next to the reference.
  3. Attach it and say what to compare and what must not change: typography, colour, spacing or motion, for that section only.
  4. Look at the result, then repeat for the next issue.

Don't send five unrelated fixes in one message. Don't ask Claude to "make it match the design" across the whole site in a single pass. The official prompting habit is the same as the rest of this guide: one clear outcome, with the visual attached.

This loop is also where you catch what a token file can't: a headline that wraps badly, a button that's too close to the edge on a 390px screen, a motion that ignores reduced-motion. Keep those findings as new rules in CLAUDE.md when they should apply next time.

Each of our templates comes with a prompt for Claude, Codex or Cursor written from the finished design. A free account lets you copy prompts from up to three different free templates in any 24 hours, for personal projects. Monthly and yearly plans add the Vite + React project, the exact site from the preview, and a Figma file where the template has one, for commercial and client work, and prices depend on the country you pay from (pricing).

Start from a template with the design decided →

FAQ

What should I put in CLAUDE.md for design work?

The rules Claude should follow in every session: which reference and token file to use, which fonts and colours are allowed, how motion should behave, and that changes stay scoped to one section. Official setup and file locations are in Anthropic's memory docs.

Can Claude Code review its own UI?

It can, if you show it the UI. Paste or attach a screenshot, or use the desktop app's Browser pane, and ask about one section at a time. It will not reliably invent that review on its own.

Is this the same as the Claude design skill?

No. The skill, uberdesigner studio, is a visual editor you install on a project so you can click a part of the page and change it. This guide is the design-rules workflow you can use with or without that skill. Install steps are in the skill post.

Where do I find the build and deploy steps?

In how to build a website with Claude Code. This guide doesn't repeat them.