What is a DESIGN.md file?
A DESIGN.md is a Markdown file in a repository that sets out a product’s design system, its design tokens and the rules for using them, so developers and AI coding tools build UI that matches the design.
Why it matters
AI coding tools generate UI from whatever they are given. Without written rules they fall back to their own defaults, and every generated screen looks a little different. A DESIGN.md gives them the rules in a format they read well.
It also helps people: one file that answers “which color, which component, which state” is quicker than searching Figma.
How we deliver a DESIGN.md
We write the DESIGN.md next to the Figma files, from the same design system, and keep both in step while we work. It is part of every product design handoff in our product design work, and on the Agentic design plan the design arrives as code built to it.
Developers point their coding tool at it, or link it from the instructions file the tool already reads. Teams that want to write their own learn it in AI design training.
Related service: Product design · How we work
DESIGN.md in practice
A team uses Claude Code to build a new settings page. Without a DESIGN.md, it invents its own buttons. With one, it uses the team’s primary and secondary buttons, the right grays and the agreed empty state.
Common mistakes
- Copying the whole Figma file into text. Keep it to the rules that matter: roles, tokens, components, states.
- Letting it drift. A DESIGN.md that no longer matches the design is worse than none. Update both together.
- Raw values instead of roles. Name colors by role, such as action or text, not by hex code, so changes stay in one place.
How DESIGN.md works with AI coding agents
- 01
The file sits in the repository
A DESIGN.md lives in the project root, next to the code.
- 02
The instructions file points to it
The file your coding tool already reads, such as CLAUDE.md or AGENTS.md, links to the DESIGN.md.
- 03
The agent reads the tokens and rules
Colors, type, spacing and components come from the file, not from the agent’s defaults.
- 04
The agent builds to it
New screens use the agreed components and states; a lint step can check the file itself.
What goes in a DESIGN.md file
The Google Labs spec puts design tokens in YAML front matter and the reasoning in Markdown sections, in a set order.
| Section | What it says | Example |
|---|---|---|
| Front matter tokens | The values: colors, typography, spacing, rounded, components | action-primary: "#7FEE64" |
| Overview | The brand and style in a few lines | Straight, technical, dark by default |
| Colors | Each color role and when to use it | Green for action, focus and success only |
| Typography | Fonts, sizes and where each is used | Geist; Geist Mono for labels |
| Layout | Grid and spacing rules | One column between two rails |
| Components | Each component, its variants and states | Buttons: square, flat, a 2px focus ring |
| Do’s and Don’ts | The rules people and agents get wrong most | Never use green for decoration |
An example DESIGN.md
A short excerpt in the spec’s format, with values from this site’s own DESIGN.md.
---
version: alpha
name: STRAK
colors:
text-primary: "#E3E5E1"
action-primary: "#7FEE64"
---
## Colors
Green is for action, focus and success only.
## Typography
Geist; Geist Mono for labels, in capitals.
## Components
Buttons are square and flat. Focus: a 2px ring, 3px offset.DESIGN.md vs design system docs vs Figma
| DESIGN.md | Design system docs | Figma | |
|---|---|---|---|
| Who reads it | Developers and AI coding agents | Designers, developers and product teams | Designers, and developers inspecting screens |
| Where it lives | In the code repository | On a docs site or wiki | In the design tool |
| What it is for | A short, machine-readable summary of the rules | The full reference, with examples and guidance | The screens and components themselves |
Where the format comes from
Google Labs published DESIGN.md as an open format from its Stitch app on April 21, 2026, and the spec lives at github.com/google-labs-code/design.md. It is at version “alpha”, so the spec, its schema and its command-line tool may still change (checked December 2026).
Questions about DESIGN.md
Is DESIGN.md a standard?
Where does a DESIGN.md go?
Do coding tools read DESIGN.md automatically?
What is the difference between DESIGN.md and a design system?
Can STRAK write one for our product?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Related terms
Design system
A design system is the shared source of truth for how a product and its website are designed and built, combining design tokens, a component library, usage rules, content guidelines and a process for changing them.
Definition Design and UXDesign handoff
Design handoff is the moment designs pass from designers to developers, with everything needed to build them without guessing: specs, every state, components mapped to code and the rules behind them.
Definition Design and UXDesign tokens
Design tokens are named, platform-agnostic values for design decisions, such as colors, type sizes, spacing, radii and motion timings, stored once and used by design tools and code so a change in one place updates everywhere.
Definition