A repo’s root now holds two instruction files. AGENTS.md says how to build: commands, conventions, forbidden moves. Its new sibling says how it should look: colors, type, spacing, component rules — in one markdown file your agent reads before generating a single pixel of UI.
What DESIGN.md is
The format was introduced by Google Stitch and open-sourced in April under google-labs-code/design.md. The idea: a markdown file with two layers.
- YAML front matter — machine-readable design tokens: named colors, typography scales, rounded and spacing scales, and components that reference tokens like
{colors.primary}. Exact values, zero guessing. - Markdown body — the rationale. Sections in a canonical order (Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do’s and Don’ts) that explain the why: what the accent color is reserved for, when shadows are allowed, what never goes on a button.
Tokens give agents precision; prose gives them taste. That combination is why the format clicked: JSON token files were already exportable from any design tool, but they never carried intent.
Why now
Two forces converged. Agents got good enough to build entire UIs from a sentence — and inconsistent enough to rebuild them differently every session. Meanwhile the AGENTS.md standard proved that one plain file, committed to the repo, beats vendor-specific config. DESIGN.md applies the same move to visual identity: versionable, reviewable in a PR, readable by every tool. The community math followed fast: curated libraries like awesome-design-md (73 files extracted from real sites like Linear, Stripe, Vercel) and designmd.app (500+ files) appeared within weeks, alongside Chrome extensions that extract a DESIGN.md from any live site.
The tooling is real
The spec ships a CLI that treats design like code:
npx @google/design.md lint DESIGN.md # structure + WCAG contrast checks
npx @google/design.md diff DESIGN.md DESIGN-v2.md # token regressions
npx @google/design.md export --format css-tailwind DESIGN.md
The linter catches broken token references, out-of-order sections, and button color pairs that fail WCAG AA — design review as a CI gate. Exports go to Tailwind v3/v4 or W3C DTCG tokens, so the file slots into existing pipelines instead of replacing them.
Where we land
The Q3 report found the discipline gap is where quality dies. Context files close the workflow gap; DESIGN.md closes the visual one. Same pattern, same payoff: corrections stop evaporating and start compounding — this time for taste.
So we built the natural next step: a DESIGN.md maker that composes a spec-valid file from curated palettes and style formats — the design-side companion to our AGENTS.md generator. Pick a palette, pick a format, adjust, download, commit. Then run the linter and let the machine check your taste.