Skip to content

Learn ·

What is a Design Spec, and how does a coding agent use it?

A Design Spec is a written description of one finished design, made to be read by a coding agent. It says what the page is, how it looks, how it is laid out section by section and how each part behaves, with real values: colours as hex codes, type as named families and sizes, motion as durations and easing curves. An agent that reads it can build the page without having to invent the design.

Every Taste on this site comes with one, next to its live Preview. This guide explains what goes into a Spec, why it works better than a short prompt or a screenshot, and how an agent uses it. At the end there is a short example, written for an invented page.

Why agents need more than a request

Ask an agent for “a landing page for a bookbinder” and it has to decide everything you did not say. It decides in the most common direction. Anthropic’s Applied AI team describes the result: without guidance, models land on “Inter fonts, purple gradients on white backgrounds, and minimal animations”, because safe choices dominate what they learned from.

Anthropic’s prompting guide gives the remedy in general terms: “Being specific about the output you want can help enhance results”, and providing “context or motivation behind your instructions” helps the model “deliver more targeted responses”. It also advises asking explicitly for animations and interactive elements when you want them.

A Design Spec is that advice applied to a whole page. Every decision is already made and written down, with the reason when the reason matters.

What a Design Spec holds

Ours follow the same order, almost always in these parts.

Summary

One paragraph: what the page is for, who it speaks to, and the single idea that holds the design together. “A bakery’s site printed like a savings passbook” tells an agent more than ten adjectives. The summary also names the page’s jobs, such as “bring people in tomorrow morning, take orders for Sunday”.

Style

A short description of the look in plain words, then the exact values:

  • Palette as CSS custom properties, each colour with one job, and the contrast ratio of text on its background.
  • Type: each family, its weight, its role (display, text, labels), and the sizes and line heights, often as clamp() values.
  • Shape and space: corners, rules, the grid, gutters, the maximum width.
  • Motion: the easing curve and durations used throughout.

Layout, section by section

The longest part. The page is described from top to bottom, one block per section: what it contains, how it is arranged at full width, what moves and when, and, where it matters, how it changes on smaller screens. Because each section stands on its own, an agent can build one, check it and move on.

Special components

Anything that is not a standard part gets its own description (a few simple Tastes have none): a form that stamps itself when sent, a row of cards you can drag, a counter that rolls, a canvas effect. For each, what it does, how it is built and, where it applies, how it behaves on touch and with reduced motion.

Special notes and implementation notes

The things that are easy to get wrong. Which images must be real photographs and which are drawn in code. Which words are part of the joke and must not be “improved”. How the page loads its fonts, what it needs from JavaScript, what must still work without it.

Designs this guide points to, each with a live Preview and a Design Spec.

How it differs from a prompt, a screenshot or a design system

What it gives the agent What it leaves to guessing
A short prompt The subject and a mood Almost every design decision
A screenshot One frame at one width Font names, exact colours, motion, hover, other screen sizes
A design system Tokens and components How a particular page is composed and why
A Design Spec The whole page, decided, with values and behaviour Your content and brand, which you supply

A Spec is not a replacement for the live page. It works best next to it: the Preview shows what the result should feel like, the Spec says how it is made.

How an agent uses a Design Spec

On any Taste page you have two ways to hand it over.

  • Copy for your agent copies one sentence that points the agent at a Markdown file. The file holds the Design Spec and the instructions to keep the Machine and swap the Brand, plus one command that sets up a folder on your machine with the Taste as published, a working copy and every asset marked as Brand or Machine. Paste the sentence into Claude Code, Cursor, Codex or Gemini CLI.
  • Copy prompt copies the Spec as text, to paste wherever you work, including tools that build in their own cloud project, such as Lovable.

A good agent then works through the Spec in order: sets up the palette and type as variables, builds the page skeleton, then each section, then the special components, comparing each part with the Preview as it goes.

The rule that matters most: keep the Machine, swap the Brand. The Machine is the structure, the grid, the scroll, the animation and the interactions, and the agent should keep those faithfully. The Brand is the name, words, colours, type and pictures. Every brand in our Tastes is invented, so all of it is meant to be replaced with yours.

An example excerpt

This is written for this guide, for a page that does not exist: a bookbinding workshop called Quillmoss Bindery. A real Spec is several times longer.

Summary. A one-page site for Quillmoss Bindery, an invented two-person bookbinding workshop that repairs and rebinds books. The page is built like a book being bound: each section is a signature, sewn to the next by a stitched line down the left margin. Two jobs: book a repair, and sell the four blank notebooks they make.

Style. Book cloth and endpaper. Palette as CSS custom properties: --cloth: #EDE6D6 (the page), --paper: #F7F3EA (cards and the form), --ink: #1E2421 (all text, 12.7:1 on cloth), --ink-soft: #55594F (secondary text, 5.77:1), --oxblood: #7A1F1A with one job, what you can press (paper on oxblood 9.3:1), --gilt: #A8823A for rules and the stitch only, never text. Type: Young Serif 400 for headings, h1 clamp(2.75rem, 6vw, 5.5rem) at line-height 0.95; Literata 400/600 for text at 17px/1.6; IBM Plex Mono 500 at 12px uppercase, letter-spacing 0.08em, for labels and prices. Square corners. 12-column grid, gutter clamp(20px, 3vw, 44px), max width 1280px. Easing cubic-bezier(.2, .8, .2, 1), 420ms.

Section 3, The repair ledger. A ruled ledger of six past repairs, one row each: the book’s title, its fault, what was done, the weeks it took. Rows enter one by one as the section reaches the middle of the screen, 60ms apart. Hovering a row turns its rule gilt and shows a before-and-after photograph in a fixed frame on the right; on touch, a tap opens the photograph under the row. Under 768px the ledger becomes stacked cards with the fault as the heading.

Special component, the stitch. A 2px gilt dashed line in the left margin, drawn by stroke-dashoffset as you scroll, so the page appears to be sewn as it is read. Pure SVG, no library. With prefers-reduced-motion, the stitch is drawn in full from the start.

Implementation notes. The photographs are real and supplied; never generate them. Load only the three families, with font-display: swap. The form must post without JavaScript.

Notice what the agent no longer needs to decide: which colour a button is, how big the headline gets, what happens on a phone, and what the page means by “stitched”.

Writing your own

You can write a Spec for your own page in the same order. Start from the summary, because the one idea is what keeps the rest consistent. Put a value next to every visual word. Describe each section’s behaviour, not just its contents. If you would rather start from a finished one, every landing page design and section design on this site comes with its Spec, free.

Questions

What is a Design Spec?

A Design Spec is a long, structured text that describes one finished design closely enough for a coding agent to rebuild it: the summary, the style, the palette and type with exact values, the layout section by section, the special components and the implementation notes.

How is a Design Spec different from a prompt?

A prompt usually asks for something and leaves the decisions to the agent. A Design Spec makes the decisions first, down to hex values, sizes, timings and what happens on hover, so the agent builds rather than guesses.

Why not just give the agent a screenshot?

A screenshot shows one moment at one width. It cannot say which font it is, what moves on scroll, what a button does when pressed, or how the layout changes on a phone. A Spec says all of that in words the agent can follow.

Do I need to pay for a Design Spec?

No. Every free Taste includes its Design Spec, which you copy with Copy prompt or hand to your agent with Copy for your agent.

Next guide

Getting real frontend design out of Claude CodeWhy Claude Code's first pages look alike, and how to fix it: a real design reference, one pasted sentence, and CLAUDE.md and skills that keep the look.Read the guide →

Sources

DavidAnswers right away

Good afternoon. What are you looking for?

Four answers he already knows