Skip to content
ProductExplained

How to Write a DESIGN.md File in 2026

By ProductExplained Editorial TeamUpdated 8 steps, 6 tools

Short answer: A DESIGN.md is a Markdown file that tells AI agents how your product should look: YAML design tokens at the top, plain-language rules below. Generate a first draft from your website in Kite or Google Stitch, edit the tokens and sections in Google's order, run npx @google/design.md lint, then put it in your repository and tell your agents to read it.

How we make this guide: we compare pricing pages, product documentation and public user reviews, and list every source at the end. Our method.

Key takeaways

  • DESIGN.md is an open format from Google Labs, released as a draft specification in April 2026 under the Apache-2.0 license and still at version alpha.
  • A file pairs YAML tokens for colors, typography, corner radii, spacing, motion and components with Markdown sections that explain when and why to use them.
  • Kite and Google Stitch can both build one from an existing website, and Kite also turns an imported file into design-system variables, text styles and skills.
  • Google's free command-line tool lints a file against the spec, checks component contrast, compares two versions and exports tokens to Tailwind or DTCG JSON.

Steps

  1. Pick the source of truth

    Decide where your design rules really live today: a live website, a codebase, a design system in a design tool, or nowhere yet. The answer sets how you draft the file. A DESIGN.md should describe the product people already see, so start from that source rather than from a blank page whenever one exists.

  2. Generate a first draft

    From a website, choose New, then From a website in Kite, let it read the site, then Export, then Download DESIGN.md; Stitch also builds one from a URL or image. From code, paste Stitch's quick prompt into a coding agent. From nothing, describe the look to Stitch, or start from an awesome-design-md example.

  3. Write the tokens in YAML

    Put the exact values in YAML front matter, fenced above and below by a line of three dashes: a name, then colors, typography, rounded, spacing and, if you need them, motion. Give every color a role-based name such as primary or surface, and point related values at each other with references like {colors.primary} instead of repeating hex codes.

  4. Write the sections in Google's order

    Below the tokens, add ## sections in the spec's order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Motion & Micro-interaction, Voice & Content Strategy, Components, then Do's and Don'ts. Skip any you don't need, but keep the order. Explain what each value is for, since that is what agents can't guess.

  5. Add component tokens and rules

    Under components, map each part to tokens, such as button-primary with backgroundColor, textColor, rounded and padding. Write hover or pressed states as their own entries, like button-primary-hover. Then list concrete do's and don'ts, such as one primary action per screen, so agents know the limits as well as the values.

  6. Lint the file

    Run npx @google/design.md lint DESIGN.md in the folder. Google's tool checks eleven rules, including broken token references, a missing primary color, component contrast under WCAG AA's 4.5:1 and sections out of order, and exits with code 1 on errors so a build can stop. On Windows, use npx -p @google/design.md designmd lint DESIGN.md.

  7. Put it where your agents read it

    Save it in your repository, usually at the root; Stitch's own flow uses .stitch/DESIGN.md. Then point agents at it: a line in AGENTS.md for Codex, or @DESIGN.md in CLAUDE.md for Claude Code. In Kite, choose New, then From DESIGN.md, so every agent in the workspace draws with it.

  8. Keep it in step with the design

    Change the design system in one place, then regenerate the file: download it again from Kite, or edit it in Stitch's Design System panel, which updates the DESIGN.md too. Run npx @google/design.md diff on the old and new versions to see which tokens changed and whether new warnings appeared.

Tools for this job

#ToolBest forStarting priceFree plan
1Steps 2, 7 and 8: import, generate and export$16 per editor/month billed yearly ($20 monthly)Yes
2Step 2: a draft from a prompt or URLFreeYes
3Steps 6 and 8: lint, diff and exportFree (open source)Yes
4Step 2: extracting a file from codeFree (open source)Yes
5Step 7: building UI from the file$20/month (ChatGPT Plus, for CLI and IDE)Yes
6Step 2: starting from an exampleFree (MIT)Yes

1. Kite

DESIGN.md import and exportNo AI credits

Profile, changelog and pricing history

Best for steps 2, 7 and 8: import, generate and export

Visit kite.new (opens in a new tab)
Starting price
$16 per editor/month billed yearly ($20 monthly)
Free plan
Yes
Website
kite.new

Kite is the pick when you want the DESIGN.md to stay tied to a design system that people and agents actually design with. Its docs describe importing one with New, then From DESIGN.md: colors, radii and spacing become variables, typography becomes text styles, and the prose becomes skills that agents read before they draw. An Instructions section becomes rules every agent follows.

It also writes the file. Kite can read your live website, a frame you like or a CSS block into a design system, then Export, then Download DESIGN.md puts the tokens in Google's format, followed by the system's instructions, variables as CSS with every mode, and its skills. DTCG JSON is a separate export for build pipelines.

The limits are honest ones. Google's schema holds one value per token, so a dark mode is added in Kite after import. Kite's free plan covers 3 design systems and 3 files, and the agents that use the system run on your own Claude, ChatGPT, Codex or Cursor plan, since Kite charges no AI credits.

What we like

  • Imports and exports Google's format
  • Generates a system from your website
  • Prose becomes skills agents read
  • Modes and DTCG JSON export

Watch out for

  • Dark mode added after import
  • Free plan limited to 3 design systems
  • AI work needs a separate agent plan

2. Google Stitch

Google LabsBeta

Profile, changelog and pricing history

Best for step 2: a draft from a prompt or URL

Visit stitch.google.com (opens in a new tab)
Starting price
Free
Free plan
Yes
Website
stitch.google.com

Google Stitch is where the format started, and the easiest way to get a DESIGN.md with no tokens written by hand. Stitch's docs give three paths: describe the look and let the agent generate a design system, give a URL or image so it extracts your palette and type, or write the file yourself. It summarizes the system as a DESIGN.md.

You edit the palette, fonts and corner radii in the Design System panel, which updates both the tokens and the file, and edit the Markdown directly for component rules and do's and don'ts. Exporting a project adds the DESIGN.md to the zip. Stitch is a free Google Labs beta, and Google's Stitch skills can upload a DESIGN.md to Stitch and apply it to screens.

What we like

  • Free, and the format's home
  • Drafts from a prompt, URL or image
  • File ships in every project export

Watch out for

  • Panel edits cover only a few properties
  • Still a beta Labs product
  • Existing screens don't update automatically

3. DESIGN.md CLI

Open sourceCLI

Best for steps 6 and 8: lint, diff and export

Visit github.com (opens in a new tab)
Starting price
Free (open source)
Free plan
Yes
Website
github.com

Google's command-line tool, published on npm as @google/design.md, is the check every DESIGN.md should pass. Its lint command runs eleven rules, from broken token references and a missing primary color to component contrast below WCAG AA and sections out of order, and returns JSON that an agent or a build step can act on.

Its diff command compares two versions and flags regressions, export turns tokens into a Tailwind v3 config, a Tailwind v4 theme block or W3C DTCG JSON, and spec prints the format for pasting into an agent's prompt. The repository is Apache-2.0, and Google says the format, schema and CLI are at alpha, so expect changes.

What we like

  • Free and open source
  • Contrast and reference checks
  • Exports to Tailwind and DTCG

Watch out for

  • Format still at alpha
  • Needs Node and a terminal
  • Checks structure, not design quality

4. Stitch Design Skills

Agent skills

Best for step 2: extracting a file from code

Visit github.com (opens in a new tab)
Starting price
Free (open source)
Free plan
Yes
Website
github.com

Stitch Design Skills are Google's agent skills for Stitch, and the route when your design language is buried in a codebase. The extract-design-md skill scans your source and writes a DESIGN.md, design-md analyzes a Stitch project into one, and manage-design-system uploads the file to Stitch and applies it to screens.

They install in Codex, Claude Code, Cursor and other agents that follow the Agent Skills standard, but they need the Stitch MCP server set up first with a key or OAuth. Without that setup, Stitch's docs offer a plain prompt you can paste into any coding agent to write the file from your code.

What we like

  • Extracts a file from real code
  • Works across several coding agents
  • Official, from Google Labs

Watch out for

  • Requires the Stitch MCP server
  • Skills depend on each other
  • Output still needs a person's review

5. OpenAI Codex

Coding agent

Best for step 7: building UI from the file

Visit chatgpt.com (opens in a new tab)
Starting price
$20/month (ChatGPT Plus, for CLI and IDE)
Free plan
Yes
Website
chatgpt.com

Codex stands for the coding agents that read a DESIGN.md and build with it. OpenAI's docs say Codex reads AGENTS.md files before doing any work, so one line there telling it to follow DESIGN.md for every interface change makes the file part of each task. Claude Code does the same through an @DESIGN.md import in CLAUDE.md.

Codex can also write the first draft: Stitch's docs give a prompt that any coding agent can run from a project folder to collect colors, type and spacing from stylesheets and Tailwind configs. OpenAI lists the CLI and IDE extension from Plus at $20 a month, and the desktop app on Free and Go.

What we like

  • Reads AGENTS.md before every task
  • Can draft the file from your code
  • CLI, IDE extension and desktop app

Watch out for

  • Won't use the file unless told to
  • CLI and IDE need a paid plan
  • Builds code, not a design file

6. awesome-design-md

Open sourceExamples

Best for step 2: starting from an example

Visit github.com (opens in a new tab)
Starting price
Free (MIT)
Free plan
Yes
Website
github.com

awesome-design-md is an MIT-licensed collection of DESIGN.md files that VoltAgent extracted from well-known websites, and a quick way to see how other people structure the format in practice. Its README suggests dropping a file into your project root and asking a coding agent for a page that looks like it.

Treat it as a reference, not your brand. The files are analyses of public websites rather than those companies' own design systems, so copying one gives you someone else's look. Use one to learn the shape of a good file and how others name tokens, then replace every value with your own and run Google's linter on the result.

What we like

  • Free examples to learn from
  • Kite's docs suggest it as a starting point
  • Shows real token naming

Watch out for

  • Not the brands' official systems
  • Someone else's look, not yours
  • Files may not pass the linter cleanly

How we chose

We started from Google’s own specification and repository, because the format is still at alpha and third-party explanations drift from it quickly. Then we looked for tools that help with each part of the job: drafting a file from something that already exists, checking it against the spec, and getting agents to use it.

Each pick had to work with Google’s format as published, not a look-alike. Tools that both read and write DESIGN.md ranked highest, then tools that generate a draft, then the validator, then the agents that consume the file and a collection of examples. Kite and Stitch lead because they cover the most steps.

Specifications, commands, plan rules and prices were checked on Google’s GitHub repositories, npm, Stitch’s docs and each vendor’s own documentation and pricing pages on December 1, 2026. Our picks rest on published features, pricing and documentation rather than hands-on testing. Where a vendor’s pages are silent, such as on where the file must live, we say so rather than guess.

Mistakes to avoid

Inventing a token format. Agents and tools parse Google’s keys: colors, typography, rounded, spacing, motion and components. A key like colours triggers a lint warning and may be ignored.

Writing only tokens. Values without reasons leave agents guessing. Say what each color is for and what never to do.

Repeating hex codes. Use references such as {colors.primary} in components, so one change follows through.

Shuffling sections. The spec fixes their order. You can leave sections out, but not reorder them.

Copying a famous brand’s file. Examples in public collections describe someone else’s look, and they may not pass the linter cleanly.

Letting the file drift. A DESIGN.md that no longer matches the product is worse than none. Regenerate it from your design system and diff the versions.

A minimal DESIGN.md to start from

This short file follows the structure the spec describes: tokens first, then sections in order. Replace every value with your own.

---
version: alpha
name: Harbor
colors:
  primary: "#0F3D5E"
  on-primary: "#FFFFFF"
  surface: "#F5F7F9"
typography:
  body-md:
    fontFamily: Inter
    fontSize: 16px
rounded:
  md: 10px
spacing:
  md: 16px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    rounded: "{rounded.md}"
---

## Overview
Calm and practical. Plenty of white space, one strong color.

## Colors
Primary is only for actions and links.

## Do's and Don'ts
- Do use one primary button per screen.
- Don't put primary text on primary backgrounds.

From here, add Typography, Layout and Components sections as your product needs them, each in the spec’s order, and give every new color a component that uses it, or the linter flags it as orphaned. When the file reads like the brief you would give a new designer, it is ready for agents.

Frequently asked questions

What is a DESIGN.md file?

A DESIGN.md is a Markdown file that describes a design system to AI agents. YAML tokens at the top give exact values for colors, type, corner radii and spacing, and Markdown sections below explain how and why to use them. Stitch's docs compare it to AGENTS.md, but for how a product looks.

Who created DESIGN.md?

Google Labs, for its Stitch design tool. Google introduced it in March 2026 as an agent-friendly Markdown file for moving design rules between tools, and open-sourced the draft specification on April 21, 2026. The specification and CLI live in the google-labs-code/design.md repository on GitHub under the Apache-2.0 license.

Is the DESIGN.md format stable?

Not yet. Google's repository says the format is at version alpha, with the specification, token schema and CLI under active development, and to expect changes. The CLI is at version 0.4.0 on npm. Run the linter after updates, and keep files simple so they survive changes to the schema.

Where should a DESIGN.md go?

Google's spec names no folder. Most projects keep it at the repository root, which the awesome-design-md collection suggests, and Stitch's own codebase flow writes it to .stitch/DESIGN.md. What matters more is that your agents are told to read it, through AGENTS.md, CLAUDE.md or your tool's settings.

Is DESIGN.md the same as design tokens?

It contains design tokens and adds the reasons behind them. The YAML part is close to the W3C design tokens idea, and Google's CLI exports it to DTCG JSON or Tailwind. The Markdown part carries rules a token file can't, such as when to use the accent color or how dense screens should be.

Which tools read a DESIGN.md?

Google Stitch imports and exports it, and Kite turns one into a design system and downloads one back out. Coding agents such as Codex, Claude Code and Cursor read it like any file in the repository once you point them at it. Google's CLI validates, compares and converts it.

Sources we checked (16)

  1. DESIGN.md repository and README, Google Labs (GitHub). Checked December 1, 2026.
  2. DESIGN.md format specification, Google Labs (GitHub). Checked December 1, 2026.
  3. @google/design.md, npm. Checked December 1, 2026.
  4. Stitch's DESIGN.md format is now open source, Google. Checked December 1, 2026.
  5. Introducing the new AI-native Stitch, Google. Checked December 1, 2026.
  6. What is DESIGN.md?, Google Stitch. Checked December 1, 2026.
  7. View, edit, and export, Google Stitch. Checked December 1, 2026.
  8. Import from your codebase, Google Stitch. Checked December 1, 2026.
  9. Stitch Design Skills, Google Labs (GitHub). Checked December 1, 2026.
  10. Bring a DESIGN.md in, and take one out, Kite. Checked December 1, 2026.
  11. Design systems, Kite. Checked December 1, 2026.
  12. Kite pricing, Kite. Checked December 1, 2026.
  13. Custom instructions with AGENTS.md, OpenAI. Checked December 1, 2026.
  14. Codex pricing, OpenAI. Checked December 1, 2026.
  15. How Claude remembers your project, Anthropic. Checked December 1, 2026.
  16. awesome-design-md, VoltAgent (GitHub). Checked December 1, 2026.

ProductExplained Editorial Team, Editors

The ProductExplained editorial team researches design software from pricing pages, product documentation, changelogs and public user reviews, and re-checks every guide on a schedule. We do not accept payment for rankings; paid placements are labeled Featured. How we review.

How to Make On-Brand Designs with AI in 2026

Give ChatGPT, Claude or Cursor your brand once so every design follows it: design systems, DESIGN.md and skills in Kite, Figma, Canva and Claude Design.

6 tools compared, updated