Glossary · AI

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

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.

Our approach

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

Example

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.

Avoid

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.
Steps

How DESIGN.md works with AI coding agents

  1. 01

    The file sits in the repository

    A DESIGN.md lives in the project root, next to the code.

  2. 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.

  3. 03

    The agent reads the tokens and rules

    Colors, type, spacing and components come from the file, not from the agent’s defaults.

  4. 04

    The agent builds to it

    New screens use the agreed components and states; a lint step can check the file itself.

Contents

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.

SectionWhat it saysExample
Front matter tokensThe values: colors, typography, spacing, rounded, componentsaction-primary: "#7FEE64"
OverviewThe brand and style in a few linesStraight, technical, dark by default
ColorsEach color role and when to use itGreen for action, focus and success only
TypographyFonts, sizes and where each is usedGeist; Geist Mono for labels
LayoutGrid and spacing rulesOne column between two rails
ComponentsEach component, its variants and statesButtons: square, flat, a 2px focus ring
Do’s and Don’tsThe rules people and agents get wrong mostNever use green for decoration
Example

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.
Compare

DESIGN.md vs design system docs vs Figma

DESIGN.mdDesign system docsFigma
Who reads itDevelopers and AI coding agentsDesigners, developers and product teamsDesigners, and developers inspecting screens
Where it livesIn the code repositoryOn a docs site or wikiIn the design tool
What it is forA short, machine-readable summary of the rulesThe full reference, with examples and guidanceThe screens and components themselves
Background

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).

FAQ

Questions about DESIGN.md

Is DESIGN.md a standard?
It is an open format with a published spec from Google Labs, still at version alpha, so expect changes.
Where does a DESIGN.md go?
In the repository root, next to the instructions file your coding tool reads, such as CLAUDE.md or AGENTS.md.
Do coding tools read DESIGN.md automatically?
Do not count on it. Link it from the instructions file your tool already reads, so every session picks it up.
What is the difference between DESIGN.md and a design system?
The design system is the whole set of tokens, components and rules; DESIGN.md is its readable summary for people and agents.
Can STRAK write one for our product?
Yes, in every product design handoff. On the Agentic design plan, at $8,000 a month, the design arrives as code built to it.
Thomas OldenburgerFounder, design and build lead

Still deciding? A 30-minute call answers most of it.

Got a brief, or half of one?

Book a free 30-minute call. You leave with a straight answer on scope, price and timing, even when we are not the right fit.