Skip to content

Learn ·

Getting real frontend design out of Claude Code

Claude Code writes good code. Ask it for a landing page with nothing else, though, and you get the same page everyone else gets. This guide covers why that happens, how to hand it a real design instead of adjectives, and how to make the design hold up across sessions.

What goes wrong by default

Anthropic explains the cause in its own write-up on frontend design. It calls it distributional convergence. When a model samples, it leans toward the safe, high-probability choices in its training data. Without guidance, the post says, Claude tends toward Inter, purple gradients on white backgrounds and minimal animation.

You have seen the result. It usually has most of these:

  • an indigo or violet gradient, often on the headline itself
  • a centred hero with a small badge above the headline
  • one sans-serif face for everything
  • three identical cards with an icon each, sometimes emoji
  • a row of big numbers with small labels
  • glows, halos and soft shadows on everything

None of these is wrong on its own. The trouble is that nobody chose them. They are what is left when no decision was made. So the fix is not a better adjective. “Modern”, “clean” and “bold” all point back to the same average. The fix is a decision someone already made, in enough detail that an agent can follow it.

Give it a real reference, not adjectives

A useful design reference answers the questions an agent would otherwise guess: which faces, at which sizes; which colours, with values; what each section does, in order; and what moves, how far and for how long.

Claude Code can read images. The docs list three ways: drag an image into the window, paste it with Ctrl+V, or give a path. They even suggest prompts like “Generate CSS to match this design mockup”. That works for layout and colour. But a screenshot cannot show a hover, a scroll-driven scene or a spring. Those are often the parts that make a page feel made by someone.

Here is how the common ways of describing a design compare.

What you give Claude Code What it carries What it loses
Adjectives (“clean, modern”) A mood Every actual decision
A screenshot Layout, colour, type at one size Motion, interaction, responsive behaviour
A written Design Spec Palette, type, layout section by section, motion, implementation notes The chance to see it move
A live page plus its spec All of the above, and a running original to compare against Little; this is the full picture
Designs this guide points to, each with a live Preview and a Design Spec.

The one-sentence flow

Every Taste on this site is a live Preview plus a Design Spec written for a coding agent. You can browse the ones made for this workflow at /explore/claude-code/, or start from whole landing pages, hero sections or effects with code.

  1. Open a Taste and play with the Preview full screen. Scroll it, hover it, drag what can be dragged. Choose by what moves, not by the name.
  2. Press Copy for your agent. It copies one sentence: Read https://allyouneedistaste.com/<segment>/<slug>/port.md and follow it.
  3. Paste it into a Claude Code session started in your project folder.
  4. Claude fetches that file with its web fetch tool. The file holds the Design Spec, the instructions for what to keep and what to replace, and one command.
  5. Claude runs the command. It builds a folder: the Taste as published in original/, a working copy in site/, every asset marked as Brand or Machine, and an onboarding skill.
  6. The onboarding skill interviews you about your project and then does the work.

Claude Code asks permission before it uses its web fetch tool or runs a shell command, unless you have already allowed them. That is the tools reference’s default, and it is a good default here: you see the URL and the command before anything runs. There is nothing to install, no account and no CLI to download for a free Taste.

Machine kept, Brand swapped

The file tells Claude the rule that makes this work. The Machine is how the design works: structure, scroll, shaders, animation, interactions. Claude keeps it. The Brand is what carries a mark: the name, the words, the colours, the type, the pictures. Claude swaps it for yours.

Take Terra Lenta, a ceramics studio landing where a vase is thrown on the wheel in Lottie and a course card’s clay is knocked off centre by the pointer and pulled back by a spring. The spring, the Lottie hero and the hover cards are Machine. The studio’s name, its clay and celadon palette and its photos are Brand. Every brand in a Taste is invented, so none of it should ship as yours.

If you already have a codebase and only want to borrow the look, press Copy prompt instead. It copies the Design Spec as text, and you can paste it into any session as the brief.

Make the design stick with CLAUDE.md

A good first page can drift by the fifth session. CLAUDE.md is how you stop that. Per Anthropic’s docs, Claude Code loads it at the start of every session, as context rather than enforced configuration. A project file lives at ./CLAUDE.md or ./.claude/CLAUDE.md. Your personal one lives at ~/.claude/CLAUDE.md. Running /init drafts a starting file from your codebase.

The docs give three pieces of advice that matter for design rules:

  • Be concrete enough to verify. Their example is “Use 2-space indentation” instead of “Format code properly”. For design, write “Headings use the display face in src/styles/tokens.css; body text never uses Inter”, not “keep the typography consistent”.
  • Keep it short. Aim for under 200 lines. Longer files use more context and are followed less reliably.
  • Remove contradictions. If two instructions conflict, Claude may pick either one.

You can import a longer file with @path/to/file, for example @docs/design-spec.md. The docs note that imports help you organise but do not reduce context cost. For rules that only matter in part of the codebase, .claude/rules/ files with a paths field load only when Claude works on matching files. Component styling rules scoped to src/components/** are a good fit.

Use skills for long design references

A skill is a folder with a SKILL.md file, kept in .claude/skills/<name>/ for a project or ~/.claude/skills/<name>/ for all your projects. Its description tells Claude when to use it, and you can call it directly with /skill-name. The docs point out the useful difference from CLAUDE.md: a skill’s body loads only when it is used, so long reference material costs almost nothing until you need it. They recommend keeping SKILL.md under 500 lines and moving detail into supporting files.

That makes a skill the right home for a full Design Spec, your tokens and your motion rules. The onboarding skill in the Agent Port folder is built the same way.

Anthropic also publishes a frontend-design plugin in its official marketplace. Its README says it “generates distinctive, production-grade frontend interfaces that avoid generic AI aesthetics.” Install it with /plugin install frontend-design@claude-plugins-official. If you have no reference at all, it is a sensible default and a clear improvement on nothing. When you do have a reference, the reference is more specific, and the two work together.

Review what it made

Two habits from the docs help here.

  • Plan first. Press Shift+Tab until plan mode is on. Claude reads and proposes but makes no edits until you approve. Ask for the list of sections against the spec before any code is written.
  • Compare pictures. Paste a screenshot of your page next to one of the original Preview and ask what differs. Then check the parts a picture cannot: hover, scroll and the phone layout.

If you want a second opinion on a page you already have, /slop-check/ looks at a URL for the signs listed at the top of this guide. And if type is where your page feels generic, /fonts/ is a short list of chosen faces with notes on each.

Questions

Why does Claude Code make every landing page look the same?

Without a direction, a model picks the most likely choices, and Anthropic's own write-up says that means Inter, purple gradients on white and little motion. Give it a specific reference and it has something better to follow.

Can I give Claude Code a screenshot of a design?

Yes. You can drag an image into the session, paste it, or give a file path. A screenshot is still a still image, though, so pair it with a written spec that covers motion and behaviour.

What does the Copy for your agent sentence do?

It tells Claude Code to read one Markdown file on allyouneedistaste.com. That file holds the Design Spec, the rule to keep the Machine and swap the Brand, and one command that builds a folder with the design and an onboarding skill.

Should design rules go in CLAUDE.md or in a skill?

Short rules that apply to every task belong in CLAUDE.md, which loads every session. Long reference material fits a skill better, because a skill's body loads only when it is used.

Next guide

Lovable templates, and starting from a design insteadWhat Lovable's templates and remixing give you, and how to start a Lovable project from a real design: paste a Design Spec, plan, then build by section.Read the guide →

Sources

DavidAnswers right away

Good afternoon. What are you looking for?

Four answers he already knows