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 |
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.
- 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.
- Press Copy for your agent. It copies one sentence:
Read https://allyouneedistaste.com/<segment>/<slug>/port.md and follow it. - Paste it into a Claude Code session started in your project folder.
- 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.
- Claude runs the command. It builds a folder: the Taste as published in
original/, a working copy insite/, every asset marked as Brand or Machine, and an onboarding skill. - 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.





