---
title: "What Is DESIGN.md and How Do You Use It With Claude Code?"
canonical: https://skillselion.com/guides/what-is-design-md-claude-code
content_type: text/markdown
description: "DESIGN.md is a Google Labs file format that describes your visual identity to coding agents: YAML tokens for colors, typography, spacing and components."
---

# What Is DESIGN.md and How Do You Use It With Claude Code?

> DESIGN.md is a Google Labs file format that describes your visual identity to coding agents: YAML tokens for colors, typography, spacing and components.

Canonical: https://skillselion.com/guides/what-is-design-md-claude-code

DESIGN.md is a Google Labs file format that describes your visual identity to coding agents: YAML tokens for colors, typography, spacing and components, followed by markdown prose on how to apply them. Google's own Claude Code skill for writing one is Stitch's design-md, with 67,658 installs (skills.sh registry, GitHub).

## Key facts

- Last updated: September 11, 2026

## Article

Ask Claude Code for a "clean, premium" page with no reference and it tends to fall back on a centered hero, stacked feature cards and a purple gradient. A DESIGN.md file fixes that by writing your colors, type, spacing and component rules down where the agent can read them, and the [design-md skill](/skills/google-labs-code/stitch-skills/design-md) will draft one for you.

## Key takeaways
- DESIGN.md is a format spec from Google Labs, published in the [google-labs-code/design.md repo](https://github.com/google-labs-code/design.md) (Apache-2.0, created 2026-04-10, 27,847 stars, GitHub, September 2026). Its version is still `alpha`.
- A file has two layers: YAML front matter with tokens (`colors`, `typography`, `rounded`, `spacing`, `components`) and a markdown body that explains how to use them.
- Stitch's `design-md` skill has 67,658 installs and `stitch::extract-design-md` has 12,670 (skills.sh registry, GitHub).
- VoltAgent's awesome-design-md repo lists 73 brand DESIGN.md files in its README and has 115,285 stars (GitHub, September 2026).
- `npx @google/design.md lint DESIGN.md` runs 11 rules, including a WCAG AA contrast check at 4.5:1, and prints JSON.

## What is a DESIGN.md file?
A DESIGN.md is a plain markdown file that describes a design system to a coding agent. Google Stitch introduced it, and the full rules live on the [Stitch DESIGN.md specification page](https://stitch.withgoogle.com/docs/design-md/specification).

The awesome-design-md README draws the split well. AGENTS.md tells an agent how to build the project; DESIGN.md tells it how the project should look and feel.

Claude Code loads CLAUDE.md automatically. It does not load DESIGN.md on its own, so add a line to CLAUDE.md that points at the file, or name it in your prompt. If the goal is getting Claude to respect a system across a large codebase, the [adopt an existing design system guide](/guides/adopt-existing-design-system-claude-code) covers that workflow.

## What goes inside a DESIGN.md file?
Tokens go in the YAML front matter, and the reasoning goes in `##` sections below it. The spec calls the tokens normative, so when prose and YAML disagree, the YAML is the value that counts.

The front matter holds:
- `name`, plus optional `version` and `description`
- `colors`, as any CSS color, with hex recommended
- `typography`, as objects with `fontFamily`, `fontSize`, `fontWeight`, `lineHeight` and `letterSpacing`
- `rounded` and `spacing`, as named levels such as `sm` and `md` in px, em or rem
- `components`, with entries like `button-primary` whose values can point at other tokens, for example `{colors.tertiary}`

Hover and pressed states get their own entries, such as `button-primary-hover`. Body sections are optional, but the ones you keep must follow this order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts. A duplicate section heading makes the file invalid. An unknown heading is kept without an error.

## What is the best skill for creating a DESIGN.md in Claude Code?
The official pick is Google's [design-md skill](/skills/google-labs-code/stitch-skills/design-md) from stitch-skills, with 67,658 installs and 12,698 stars (skills.sh registry, GitHub). Install the collection with:

`npx skills add google-labs-code/stitch-skills`

Check the prerequisites first. Its SKILL.md needs the Stitch MCP server and a Stitch project with at least one designed screen. It pulls screen HTML and the project theme through Stitch tools, then writes numbered sections (Visual Theme & Atmosphere, Color Palette & Roles, Typography Rules, Component Stylings, Layout Principles) with hex codes in parentheses.

If your design lives in code instead of Stitch, use the [stitch::extract-design-md skill](/skills/google-labs-code/stitch-skills/stitch%3A%3Aextract-design-md) (12,670 installs, skills.sh registry, GitHub). It reads stylesheets, Tailwind configs and theme files without building the app, saves the result to `.stitch/DESIGN.md`, and its SKILL.md says the file must open with YAML front matter holding `name` and `colors`. Pulling tokens from a live website is a separate job, covered in the [extract a design system guide](/guides/extract-design-system-claude-code). If you want the DESIGN.md file itself from a live site, the catalog lists firecrawl-website-design-clone (33,700 installs, skills.sh registry) for that job.

The most-installed skill that writes a DESIGN.md is Leonxlnx's stitch-design-taste (284,450 installs, skills.sh registry, GitHub), but it writes a taste-driven style guide for Google Stitch instead of documenting a design you already have. Two smaller options exist. The [open-design design-md skill](/skills/nexu-io/open-design/design-md) (3,422 installs, 109,343 stars, skills.sh registry, GitHub) is a short catalogue entry that points back to the Google Labs upstream, and NousResearch's hermes-agent ships its own `design-md` (543 installs, skills.sh registry, GitHub). The wider field is ranked on [best skills for frontend design](/best/skills-for-frontend-design).

![GitHub avatar of google-labs-code, the Google Labs org behind the DESIGN.md spec and stitch-skills](https://github.com/google-labs-code.png?size=200)

## Where do you get ready-made DESIGN.md files?
Start with [VoltAgent/awesome-design-md](https://github.com/VoltAgent/awesome-design-md), an MIT-licensed collection with 115,285 stars (GitHub, September 2026) and 73 brand entries in its README, including Stripe, Linear, Vercel and Ferrari. Each brand folder has a `DESIGN.md` plus `preview.html` and `preview-dark.html` swatch pages. The README links every entry to getdesign.md, which also takes requests for new sites.

These files extend the Stitch format to nine sections and add Responsive Behavior and an Agent Prompt Guide. The README's instructions are two steps: copy a site's DESIGN.md into your project root, then tell your agent to use it.

VoltAgent also runs awesome-claude-design, whose GitHub description lists 68 design system inspirations in DESIGN.md format (3,726 stars, GitHub, September 2026). For Japanese interfaces, the `awesome-design-md-jp` skill (557 installs, skills.sh registry, GitHub) adds CJK font stacks and kinsoku shori line-break rules, and its SKILL.md says it bundles 24 reference files for services such as MUJI and Mercari.

## How do you lint and diff a DESIGN.md?
Run Google's CLI through npx:

`npx @google/design.md lint DESIGN.md`

The linter applies 11 rules and prints JSON findings. `broken-ref` is an error for token references that resolve to nothing. `contrast-ratio` warns when a component's `backgroundColor` and `textColor` fall below the WCAG AA minimum of 4.5:1, and `orphaned-tokens` warns about colors no component uses. Lint exits with code 1 on errors, so it can gate CI.

To catch regressions between two versions:

`npx @google/design.md diff DESIGN.md DESIGN-v2.md`

It reports added, removed and modified tokens per group and exits with code 1 when the new file has more errors or warnings. The same package can export tokens, for example `npx @google/design.md export --format css-tailwind DESIGN.md > theme.css` for a Tailwind v4 `@theme` block. On Windows PowerShell, the README suggests `npx -p @google/design.md designmd lint DESIGN.md`, because the `.md` in the command name clashes with the Markdown file association.

## A complete starter stack
- `design-md` from stitch-skills, when your design starts in Stitch.
- `stitch::extract-design-md`, when it starts in an existing frontend codebase.
- One awesome-design-md brand file as a structural reference.
- `npx @google/design.md lint` in CI to hold contrast and token references.
- The [design systems hub](/design/design-systems) for skills that turn tokens into components.
- The [Google Stitch design-to-code guide](/guides/google-stitch-design-to-code-claude-code-2026) when you want Stitch to generate screens from the file.

## Common pitfalls
- Shipping a brand's file unchanged. The awesome-design-md license note says the tokens are publicly visible CSS values and that it claims no ownership of any site's visual identity. Borrow the structure, then replace the palette and type with your own.
- Letting prose and tokens drift apart. If the Colors section still describes an old accent after `tertiary` changed, the agent reads two conflicting instructions. Run `diff` whenever the design changes.
- Mixing formats. Stitch's `design-md` template writes numbered headings and no front matter, while the spec and `stitch::extract-design-md` expect YAML tokens. Without front matter, the contrast and broken-reference rules have nothing to check, so pick one format per project.

Keep DESIGN.md in version control next to CLAUDE.md, and lint it before each change reaches Claude Code.

## Related

- [/best/skills-for-frontend-design](https://skillselion.com/best/skills-for-frontend-design)
- [/design/design-systems](https://skillselion.com/design/design-systems)
- [/category/frontend-design](https://skillselion.com/category/frontend-design)
- [/guides/google-stitch-design-to-code-claude-code-2026](https://skillselion.com/guides/google-stitch-design-to-code-claude-code-2026)
- [/guides/extract-design-system-claude-code](https://skillselion.com/guides/extract-design-system-claude-code)
- [/guides/design-tokens-claude-code-2026](https://skillselion.com/guides/design-tokens-claude-code-2026)

## FAQ

### What is design.md?

DESIGN.md is a Google Labs format spec for describing a visual identity to coding agents, published in google-labs-code/design.md (Apache-2.0, 27,847 stars, GitHub, September 2026). It pairs YAML design tokens with markdown rationale. Stitch's design-md skill writes one and has 67,658 installs (skills.sh registry, GitHub). See the [design-md skill](/skills/google-labs-code/stitch-skills/design-md).

### What is awesome-design-md?

awesome-design-md is VoltAgent's MIT-licensed collection of DESIGN.md files based on public brand websites, with 115,285 stars (GitHub, September 2026) and 73 entries in its README. Each entry ships a DESIGN.md plus light and dark preview pages. For skills that build on those files, browse the [design systems hub](/design/design-systems).

### What is getdesign.md?

getdesign.md is the site that the awesome-design-md README links each of its 73 brand DESIGN.md files to, and it accepts requests for new sites. The source repo has 115,285 stars (GitHub, September 2026). To write a file from your own design instead, compare skills in the [frontend design category](/category/frontend-design).

### How do I use DESIGN.md with Claude Code?

Put DESIGN.md in your project root and reference it from CLAUDE.md, because Claude Code loads CLAUDE.md automatically. To generate the file, install stitch-skills: design-md has 67,658 installs and stitch::extract-design-md has 12,670 (skills.sh registry, GitHub). The full workflow is in the [adopt an existing design system guide](/guides/adopt-existing-design-system-claude-code).

### How do you lint a DESIGN.md file?

Run npx @google/design.md lint DESIGN.md. The CLI applies 11 rules, warns on component color pairs below the WCAG AA contrast minimum of 4.5:1, and exits with code 1 on errors. Use the diff command to compare two versions. More design skills are ranked on [best skills for frontend design](/best/skills-for-frontend-design).

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
