Skip to content

DESIGN.md for AI coding agents

AI builds a page in seconds. Nobody told it what yours look like.

A DESIGN.md is one Markdown file that tells Claude Code, Cursor, Copilot and Google Stitch how your site looks. Colours, type, spacing, components, and the things never to do. We write yours from the design you already have, then test it on real pages before we hand it over.

One file Every design rule in one place that your team and your AI tools both read.
Any tool Plain Markdown in your project root. No plug-in, no account, no lock-in.
No drift The tenth page an AI builds looks like the first one.

01 · The problem

Your AI tools have never seen your brand.

With no rules to follow, an AI agent builds what it has seen most often. Default styles, safe blues, the same spacing everywhere. So every new page is close to yours, but not quite.

A slightly different grey. Round corners where yours are square. A heading one weight too heavy. Someone fixes it by hand, or nobody does, and the site slowly stops looking like one site.

Prompting does not fix it. You would have to repeat the rules every time, and three people write them three different ways.

Sound familiar?

  • 01 The marketing team’s AI-built landing pages look nearly on-brand.
  • 02 Developers spend an hour on styles after every AI-built component.
  • 03 Three prompts, three versions of the same button.

02 · What a DESIGN.md is

One file your AI reads before it designs anything.

CLAUDE.md and AGENTS.md tell an AI how to work in your project. A DESIGN.md does the same job for how things look. It sits in the root of your project, and the agent reads it before it builds a page or edits a component.

The format started in Google Stitch, and Google Labs has since published it as an open spec. A file has two halves:

Your project root
  • CLAUDE.md How to work here, for Claude Code
  • AGENTS.md The same, for other agents
  • DESIGN.md How things look
  • src/ Your code

The top half

Tokens

Exact values in YAML: colours, type sizes, spacing, corner radius, motion, components. The agent copies these, it does not guess them.

The bottom half

Rules

Plain English on when to use what, and what never to do. This is where most of the value is.

The spec is young and still changing. We keep track of it so you don’t have to.

03 · What goes into yours

Ten sections, written from your real site.

Section What we write in it
01Overview Who the site is for and how it should feel, in three or four sentences.
02Colours Brand, text, surface and status colours, each with its job, checked for WCAG 2.2 AA contrast.
03Typography Font families, the type scale, weights and line heights.
04Layout Spacing scale, grid, container widths, breakpoints.
05Elevation & depth Shadows and layers. Usually one or two, not twelve.
06Shapes The corner radius scale and where each one applies.
07Motion Durations and easing for hover, open and close.
08Voice & content How headings and buttons are worded, and British or US spelling.
09Components Buttons, cards, forms and navigation, with the tokens each one uses.
10Do’s and don’ts The mistakes we have seen AI make on your site, written as rules.

If a section does not apply to you, we mark it as left out on purpose. That way the agent does not invent one.

04 · A sample file

Here is part of one.

A shortened file for a made-up certification body. Yours will be longer, and every value in it will come from your own site.

DESIGN.md
---
name: Northfield
description: Certification body. Calm, exact, trustworthy.
colors:
  primary: "#1F4E79"
  on-primary: "#FFFFFF"
  text: "#1A1A1A"
  muted: "#5C6670"
  surface: "#F7F8FA"
  success: "#2E7D4F"
typography:
  heading-1:
    fontFamily: Inter
    fontSize: 40px
    fontWeight: 660
    lineHeight: 1.15
  body:
    fontFamily: Inter
    fontSize: 17px
    fontWeight: 400
    lineHeight: 1.6
rounded:
  sm: 4px
  md: 8px
spacing:
  sm: 8px
  md: 16px
  lg: 32px
  xl: 64px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    rounded: "{rounded.md}"
    padding: 12px
---

## Overview
Northfield certifies food producers. Quality managers come to check a
standard or book an audit. The site should feel calm and exact, never salesy.

## Colors
Primary is for actions only: buttons and links. Never for headings
or backgrounds.

## Do's and Don'ts
- Do use one primary button per screen.
- Don't add gradients or a second shadow.
- Don't use stock photos of handshakes.

05 · How it works

Five steps. The fourth is the one most people skip.

  1. 01

    Extract

    We pull every colour, font size, spacing value, radius and shadow from your live CSS, your Figma file and your theme.json if you have one. Most sites use far more values than they need.

  2. 02

    Decide

    We merge near-duplicates and name each token by its job, not its value. Ten greys usually become four. Anything that needs your call comes to you as a short list of questions.

  3. 03

    Write

    Tokens, rules, component notes, voice, do’s and don’ts. Plain English that a new developer can read too.

  4. 04 Often skipped

    Test

    We hand the file to an AI agent and ask for pages it has never seen. Wherever the output drifts from your site, we tighten the rule and test again.

  5. 05

    Hand over

    You get the file, the one line to add to CLAUDE.md or AGENTS.md, and a 30-minute walkthrough.

Delivered in about a week once we have access. The exact time depends on how many pages and templates the site has.

06 · What you get

We write it. Your tools follow it.

Our side

  • ›Your DESIGN.md, validated against the open spec
  • ›The test pages we built from it, so you can see what it produces
  • ›The one line to add to CLAUDE.md or AGENTS.md
  • ›On a WordPress block theme: theme.json brought in line with the file
  • ›A 30-minute walkthrough with the person who wrote it

Your side

  • ›Your site URL, view access to Figma, and repo or theme access if you have one
  • ›One person who can make design calls
  • ›Answers to our questions within a few days

07 · Who it’s for

Teams that already build with AI, and want it to look like them.

Marketing teams

You make landing pages and campaign pages with AI. The file keeps them on-brand without a designer checking each one.

Product teams

Your developers use Claude Code or Cursor every day. The file means less time fixing styles after each component.

Agencies

You build for clients with AI tools. We write a DESIGN.md per client, under your name if you prefer.

White label for agencies

WordPress sites

You run a block theme. We keep DESIGN.md and theme.json saying the same thing.

Gutenberg block development

08 · What we will not promise

We will not promise pixel-perfect AI.

A DESIGN.md makes AI output far more consistent. It does not make it perfect. Agents still misread a rule now and then, so a person should still look at what ships.

Longer is not better, either. The agent reads the whole file on every task, so we keep yours as short as it can be and still do its job.

If your site has no real system yet, a file only writes the mess down. We will tell you that on the first call, and the first job will be product & interface design, not this.

09 · Price

One fixed price, agreed before we start.

We quote after a short call, once we have seen how many pages and templates the site has. The quote covers one site and one DESIGN.md. The scope is fixed before we begin, and anything outside it is priced before we do it.

Already on a monthly plan with us? We keep your DESIGN.md current as part of it, whenever the site or the spec changes.

Frequently asked questions

Which AI tools can use it?+

Any agent you can point at a file. Claude Code, Cursor, GitHub Copilot and Google Stitch all work. One line in CLAUDE.md or AGENTS.md tells the agent to follow it.

Can’t we generate one ourselves?+

You can, and some tools will pull colours and fonts from a URL in a minute. What they cannot do is decide which of your fourteen greys is the real one, or write down the rules your site keeps breaking. That part is what changes the output.

Do we need a Figma file?+

No. We can work from the live site alone. Figma helps when the site and the design have drifted apart.

How is this different from a brand guide?+

A brand guide is written for people, usually as a PDF. A DESIGN.md holds exact values, lives inside your project, and is written for agents and developers alike.

Does it work with WordPress?+

Yes. On a block theme, theme.json holds many of the same values, and we keep the two in step. On a page builder, it still helps anything built in code, such as custom blocks or landing pages.

What happens when our design changes?+

The file changes with it. It is plain text, so small edits are easy to make yourself. On a monthly plan, we make them for you.

Who owns the file?+

You do. It lives in your project, and you can take it anywhere.

Does a longer file cost more to run?+

Yes. The agent reads it on every design task, so we keep it as short as the job allows.

Let’s look at your site together.

30 minutes with Ali. Bring your site and the AI tools you use.

Book a call with Ali
Ali Demirci
Ali Demirci
Founder
What your file would need to cover
What we would leave out
Whether we are a fit