What is DESIGN.md and does your team need one

DESIGN.md is a Google Labs draft format that puts design tokens and the reasons behind them in one file for AI agents. What it holds and who needs one.

DESIGN.md is a plain file that describes a visual identity to a coding agent. It combines machine-readable design tokens with the written reasons behind them. Google Labs open-sourced the draft specification on April 21, 2026, and it is still labeled alpha.

Most teams do not need one today. The cases where it helps are narrow, and I list them below. Facts here are from Google's announcement and the project's README, as of October 31, 2026.

What is a DESIGN.md file?

It is a file with two layers. The README describes YAML design tokens, either at the top between --- fences or in YAML code blocks inside each section, and human-readable rationale in Markdown (google-labs-code/design.md README).

The tokens give an agent exact values. The prose says why those values exist and how to apply them. The README puts it this way: the tokens are the normative values, and the prose provides context.

Google's launch post says the format lets you export or import design rules from project to project in Stitch, a Google Labs design tool, and that the draft specification is open source so any tool can use it (Google blog, April 21, 2026). It also says agents can use it to check their choices against WCAG accessibility rules.

The repository uses the Apache-2.0 license, according to GitHub's license data for the repo.

What goes inside it?

A name, token groups, and Markdown sections in a fixed order. The schema in the README has colors, typography, rounded, spacing and components.

Colors can be any CSS color, including oklch(). Dimensions are a number plus px, em or rem. A token reference looks like {colors.primary}. Component entries may use backgroundColor, textColor, typography, rounded, padding, size, height and width.

Sections use ## headings, may be left out, and must appear in this order: Overview, Colors, Typography, Layout, Elevation and Depth, Shapes, Components, Do's and Don'ts.

Here is a small example I wrote to that schema. The blue comes from an example OKLCH scale at hue 265 that I converted with the standard OKLab matrices. The grays are plain neutrals.

---
name: Harbor
colors:
  primary: "#3967df"
  on-primary: "#ffffff"
  surface: "#ffffff"
  on-surface: "#1f2937"
  muted: "#6b7280"
typography:
  body-md:
    fontFamily: Inter
    fontSize: 1rem
    lineHeight: 1.5
rounded:
  sm: 4px
  md: 8px
spacing:
  sm: 8px
  md: 16px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    rounded: "{rounded.md}"
    padding: 12px
---

## Overview

Calm and plain. One blue accent on white, with dark gray text.

## Colors

- **Primary (#3967df):** The only interactive color. Buttons and links.
- **Muted (#6b7280):** Captions and helper text. Never on the primary blue.

## Do's and Don'ts

- Do use the primary blue for one main action per screen.
- Don't put muted text on a tinted background.

The contrast numbers behind it, from the WCAG 2.2 formula: white on #3967df is 5.02:1, #6b7280 on white is 4.83:1, and #1f2937 on white is 14.68:1. All clear the 4.5:1 minimum for body text.

I have not run this file through the project's linter, so treat it as an illustration of the schema, not a validated sample.

What tools come with it?

A command line tool, installed from npm as @google/design.md. The README lists four commands: lint, diff, export and spec.

lint runs eleven rules. They include a check for token references that point nowhere, a warning when no primary color exists, and a warning when a component's background and text colors fall below the 4.5:1 AA minimum.

diff compares two files and flags token and prose changes. export writes the tokens as a Tailwind v4 @theme block, a Tailwind v3 config object, or a W3C DTCG tokens.json. For what DTCG is, see the design tokens spec at one year.

The README's Status section says the format is at version alpha, and that the spec, token schema and CLI are under active development. Expect changes.

How is DESIGN.md different from W3C design tokens?

It borrows ideas and drops some rules. The README says DESIGN.md tokens are inspired by the W3C format, and the export command can write a DTCG tokens.json from the file.

The differences are plain in the examples. A DESIGN.md color is a CSS color string such as "#3967df" or oklch(...). A DTCG color is an object with a color space and components. DESIGN.md puts the reasoning in prose beside the values. A DTCG file has a $description field per token and no prose body.

So they do different jobs. DTCG moves values between tools. DESIGN.md explains a visual identity to a reader, human or agent. A team can keep both.

Does your team need a DESIGN.md?

You need one if an AI tool generates UI for you and nothing in your project states your visual identity in one place. A short file gives the tool exact values and the reasons behind them.

You can skip it if your design system already has documentation and tokens that your agent reads, or if you do not use agents to write UI. Adding a second source of truth means one more thing to keep in sync.

Two cautions. The format is alpha, so do not build a pipeline that depends on its exact shape. And it is one of several places where markdown now carries design context: Figma has its own, covered in Figma Specs and the move to markdown context.

If you want a starting file, UIX Design System's free web generator outputs a DESIGN.md for any brand color, next to Tailwind v4, CSS and DTCG code, and the free presets ship one too. Try the generator. Read the output before you commit it, since the format may change.

FAQ

Who made DESIGN.md?

Google Labs. Its blog post of April 21, 2026 announces it as an open-source draft specification that Stitch reads, and the spec is hosted on GitHub at google-labs-code/design.md.

Is DESIGN.md a standard?

No. It is a draft specification from one company. The README says the format is at version alpha and under active development.

What license does the DESIGN.md repository use?

GitHub lists the repository as Apache-2.0. Check the LICENSE file in the repo before you reuse its code.

Can a DESIGN.md check color contrast?

The linter's contrast-ratio rule warns when a component's background and text colors are below the WCAG AA minimum of 4.5:1. It checks the component pairs you define, not your whole product.

Keep reading

Try it on your own brand color. UIX is free to start in any Figma file, and Pro adds more when you need it.