Searches for "design md" are up about a hundredfold on last year, going by Google's Keyword Planner. Everyone building UI with coding agents has heard they should have one. Fewer people know what goes in it, and the biggest collection of real examples has some problems nobody mentions.
So here's the plain answer first, a complete file you can copy, and then what we found when we read and measured all 84 files in awesome-design-md, the collection most people copy from. (We make Floo, a design canvas that coding agents work on over MCP, the Model Context Protocol. We've written four DESIGN.md templates and tested the format against a plain brief, so we have opinions.)
What is DESIGN.md?
DESIGN.md is a plain Markdown file that describes a product's visual identity to AI agents: its colours, type, spacing, components and the reasoning behind them. It started in Google Stitch, and Google Labs publishes the format as an open spec (google-labs-code/design.md, Apache 2.0, version "alpha" as of November 2026).
A file has two layers:
- Tokens: YAML front matter with exact values, such as
colors,typography,rounded,spacing,motionandcomponents. Components can point at other tokens with references like{colors.primary}. - Prose: Markdown sections under
##headings, in a fixed order. Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Motion, Voice & Content Strategy, Components, and Do's and Don'ts. You can skip sections, but the ones you keep stay in that order.
The tokens make the agent precise, and the prose stops it being generic. The spec is blunt that the tokens are the normative values and the prose explains how to use them.
A complete DESIGN.md you can copy
This one is short, valid and passes contrast. Swap the values for yours.
---
version: alpha
name: Ledgerly
description: "Calm bookkeeping for small studios: paper white, ink dark, one green that means money in."
colors:
primary: "#1f6f4a"
on-primary: "#ffffff"
surface: "#fbfaf7"
on-surface: "#1c1b19"
muted: "#6b6860"
typography:
headline-lg:
fontFamily: Fraunces
fontSize: 40px
fontWeight: 600
lineHeight: 1.1
body-md:
fontFamily: IBM Plex Sans
fontSize: 16px
fontWeight: 400
lineHeight: 1.5
rounded:
md: 8px
spacing:
md: 16px
components:
button-primary:
backgroundColor: "{colors.primary}"
textColor: "{colors.on-primary}"
rounded: "{rounded.md}"
padding: 12px
---
## Overview
Ledgerly is for designers who hate doing their books. It should feel like a
well-kept paper ledger: quiet, exact, nothing shouting. Green means money in
and is used for nothing else.
## Colors
Paper-white surfaces, near-black ink, one green. No gradients.
## Typography
Fraunces for page titles only. IBM Plex Sans for everything else.
## Do's and Don'ts
- Do show real amounts with two decimals, right-aligned.
- Don't use green for anything that isn't income.
The contrast works out: white on that green is 6.1:1 and the muted grey on the surface is 5.3:1, both above the 4.5:1 that WCAG asks for normal text. Lint it before you commit, the same way you'd lint code:
npx @google/design.md lint DESIGN.md
On Windows that command can do nothing at all, because of the .md in the tool's name. The spec's README gives an alias for that case: npx -p @google/design.md designmd lint DESIGN.md. The same CLI exports your tokens to a Tailwind theme or a tokens.json file with export --format css-tailwind or --format dtcg.
Where it goes and who reads it
Put DESIGN.md at the root of the repo, next to README.md. Google Stitch can import and export it. Claude Code, Cursor, Codex and Gemini CLI don't load it automatically the way they load CLAUDE.md or AGENTS.md, so add two lines there that point at it:
## Design Before any UI work, read DESIGN.md and follow it.
| File | Read by | Says |
|---|---|---|
README.md | People | What the project is |
AGENTS.md / CLAUDE.md | Coding agents, every session | How to build and test it |
DESIGN.md | Agents, when pointed at it | How it should look and sound |
We measured all 84 files in awesome-design-md
awesome-design-md, by VoltAgent, is a collection of DESIGN.md files written for well-known products, from Apple and Stripe to Vercel and Linear. It has 129,000 GitHub stars and a site at getdesign.md. Its own pitch is that you copy a file into your project and tell your agent to build something that looks like it. We pulled every file at the repository's latest commit on 27 November 2026 and parsed them all with the same rules a strict tool would use.

What a real DESIGN.md looks like, by the numbers:
- They're long. The median file is 3,151 words of prose, and the longest is 5,588. Our templates run about 600 to 800 words, tokens included.
- Most use tokens. 74 of the 84 have YAML front matter. The other 10 (Spotify, Tesla, Lovable and seven more) use an older layout with different section names and no tokens.
- Typical size: 23 colour tokens and 14 type styles, counting the files that have tokens.
- Two sections are missing everywhere. Motion and Voice & Content Strategy appear in none of the 84, and no file defines a single motion token. If you care how your product moves or talks, that's still on you.
- Three unofficial sections are nearly standard. "Responsive behavior" (61 files), "Iteration guide" (50) and "Known gaps" (43). "Known gaps" is the best idea in the collection: a list of the questions the file can't answer, so the agent asks instead of guessing.
- Inter is everywhere, but not dominant. 17 of the 71 files that name fonts use Inter, and 28 pair the main face with a monospace. Most use the product's own typeface.
- These aren't the companies' own files. They're analyses written from the outside, and 30 of them say so in their opening lines ("an inspired interpretation of…").
Three things that break, and how to avoid them

1. One colon can wipe out every token. In three files (ElevenLabs, Raycast and Supabase) the front matter isn't valid YAML. Each has a description with a colon in the middle of an unquoted sentence, and Raycast's also starts with a stray 属于: key where description: should be. We checked with two different YAML parsers and both reject all three.
A strict tool drops the whole token block, so an agent using one gets the prose and none of the colours. Fix: put quotes around any value with a colon in it, and lint.
2. White text on a bright brand colour. 70 files define a primary colour and the on-primary text that sits on it. In 10 of them that pair falls below the 4.5:1 WCAG asks for button-size text: Al Jazeera's orange at 2.32:1, Claude's coral at 3.28:1, Cursor's and Airbnb's at 3.52:1.
To be fair, that's often how the real sites look. But an agent following the file will build buttons that are hard to read, and it won't question a token. Fix: check every on- pair before you commit, or switch to dark text. Black on the same three colours scores between 5.97 and 9.05.
3. Copying someone else's look copies their tells too. The collection's Claude file describes "a tinted cream canvas with serif display headlines, warm coral CTAs". That's the exact combination Anthropic's own frontend-design skill lists as a tell of machine-made design, because it's Claude's interface colour. (We compared that skill with three others in Taste vs Impeccable vs UI UX Pro Max vs frontend-design.)
The same goes for any famous brand: copy the file and your product looks like theirs. Use the collection to learn the structure, then write your own values.
How to write a good DESIGN.md
- Start from your product, not someone else's. Write the Overview first: who it's for, the mood, the one thing it shouldn't feel like. That paragraph does more than the hex codes.
- Quote every string that has punctuation in it, and lint before you commit.
- Check every
on-pair against its background: 4.5:1 for normal text, 3:1 only for large text. - Keep it short enough to follow. Tokens carry the exact values. Prose should explain choices, not repeat the tokens in sentences.
- Write every rule as if it will be followed literally. It will. In our DESIGN.md test, one line asking for a product "slightly cropped by the viewport edge" made two of three pages scroll sideways.
- Add a Known gaps section. It costs five lines, and it turns guesses into questions.
Templates and examples
- Our four templates (SaaS dashboard, mobile app, landing page, docs site), each lint-clean, with the screen an agent built from it: DESIGN.md templates. The raw files are at /templates/design-md/.
- The spec, linter and exporter: google-labs-code/design.md.
- Real-world structure to learn from: awesome-design-md. Read a few, then close the tab and write your own.
FAQ
Is DESIGN.md an official standard? It's an open spec from Google Labs, at version "alpha". Google Stitch can import and export it, and any agent can read it because it's Markdown. Expect the format to change.
Does Claude Code read DESIGN.md automatically? No. Claude Code loads CLAUDE.md by itself. Point to DESIGN.md from there, or mention it in your prompt.
What's the difference between DESIGN.md and design tokens? The tokens are one half of a DESIGN.md. The file adds the reasoning that tokens can't hold, and the CLI converts its tokens to Tailwind themes or the Design Tokens Community Group's tokens.json format.
Can I use a DESIGN.md from awesome-design-md for my product? The repository is MIT licensed, so you can copy the files. But each one describes another company's brand, so treat it as a study, not a costume.
On Floo, the same idea lives on the canvas: each canvas can hold a style guide that your agents read before they draw, right next to the frames they make. Connect your agent and give it one.
