DESIGN.MD & AI

What is DESIGN.md?

DESIGN.md is a plain Markdown file that describes a design system for AI coding agents: color, type, spacing and component tokens at the top, short usage rules below.

“One file your AI can follow.” A website leads into a DESIGN.md file with colors, type, spacing and components, which leads into an AI agent’s code editor.
A website’s design, written down as one file.

In short

  • One file an agent reads to match your look: tokens on top, plain-English rules below
  • Google Stitch introduced it in March 2026 and open-sourced the spec in April 2026
  • Check any file with npx @google/design.md lint DESIGN.md
  • Agents don’t load it on their own: link it from CLAUDE.md, AGENTS.md or your rules

Try it free · DESIGN.md generator

Free. No install.

01

Make the file

Paste a website link into Sitepeel’s free DESIGN.md generator, or write the file by hand in the format below.

02

Review the tokens

Check the primary color, headings and buttons against the site. Delete one-off campaign styles you don’t want copied.

03

Lint it

Run npx @google/design.md lint DESIGN.md to catch broken token references, a missing primary color and low contrast.

04

Link it to your agent

Save it in the project root and reference it from CLAUDE.md, AGENTS.md, GEMINI.md or a Cursor rule.

05

Build one screen first

Ask for one page and compare it with DESIGN.md. Fix the file or the prompt before building more.

What goes in a DESIGN.md file

The file has two layers. YAML front matter between --- lines holds the tokens: exact values an agent can copy. The Markdown body explains when and how to use them. When the two disagree, the spec says the tokens win.

The DESIGN.md format at a glance
PartWhat it holds
Front matterversion, name, description, then colors, typography, rounded, spacing and components
Token referencesComponents point at tokens, such as {colors.primary}, instead of repeating values
Body sections, in orderOverview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do’s and Don’ts
RulesA primary color is required. You can leave sections out, but the ones you keep stay in order
Design MD generator in the Sitepeel interface
Design MD generator in actionExplore the tool

A small DESIGN.md example

This file passes Google’s linter with no errors or warnings. A file made from a real site carries more tokens: surface colors, a fuller type scale and more components.

DESIGN.md
---
version: alpha
name: Acme
description: Calm light interface with one blue accent.
colors:
  primary: "#2563EB"
  on-primary: "#FFFFFF"
  background: "#FFFFFF"
  on-background: "#111827"
typography:
  headline-lg:
    fontFamily: Inter
    fontSize: 40px
    fontWeight: 600
    lineHeight: 1.1
  body-md:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
rounded:
  md: 8px
spacing:
  sm: 8px
  md: 16px
  lg: 32px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-md}"
    rounded: "{rounded.md}"
    padding: 12px 20px
---

## Overview
Calm, product-first pages with plenty of white space.

## Colors
Blue marks primary actions only. Text is near-black on white.

## Typography
Inter throughout. One headline size per screen.

## Layout
Spacing steps of 8, 16 and 32px. Content column up to 1120px.

## Shapes
8px corners on buttons, cards and inputs.

## Components
Primary button: blue fill, white text, 12px by 20px padding.

## Do's and Don'ts
- Do keep one primary button per view.
- Don't add gradients or glows.

How AI agents use DESIGN.md

An agent copies exact values from the tokens and uses the prose for judgment calls, such as when the accent color belongs. Most agents won’t open a file just because it’s called DESIGN.md, so connect it once in the file your agent already loads.

TipAGENTS.md says how to work on the code; DESIGN.md says how the result should look. Keep both.

Where to link DESIGN.md for each agent
AgentFile it loads
Claude CodeCLAUDE.md, with an @DESIGN.md import
Cursor.cursor/rules/*.mdc or AGENTS.md
OpenAI CodexAGENTS.md
GitHub Copilot.github/copilot-instructions.md, .github/instructions/*.instructions.md or AGENTS.md
Windsurf (Devin Desktop).windsurf/rules/*.md, .devin/rules/*.md or AGENTS.md
Gemini CLIGEMINI.md, with an @./DESIGN.md import
v0, Lovable, Bolt, ReplitInstructions, Knowledge or replit.md

Use DESIGN.md with Claude Code

Use DESIGN.md with Cursor

Use DESIGN.md with OpenAI Codex

Use DESIGN.md with GitHub Copilot

Use DESIGN.md with Windsurf

Use DESIGN.md with Gemini CLI

Use DESIGN.md with v0, Lovable, Bolt and Replit

Check a file with the official linter

Google publishes a linter and exporter as the npm package @google/design.md. Lint exits with code 1 when it finds errors, so it can run in CI.

TipThe format is still at version alpha, so expect changes to the spec and the tool.

  • npx @google/design.md lint DESIGN.md checks token references, the primary color, contrast and section order
  • npx @google/design.md diff DESIGN.md DESIGN-v2.md shows what changed between two versions
  • npx @google/design.md export --format dtcg DESIGN.md turns the tokens into DTCG design tokens; Tailwind formats exist too
  • On Windows PowerShell, run npx -p @google/design.md designmd lint DESIGN.md

Make a DESIGN.md from any website

Paste a link into Sitepeel’s free DESIGN.md generator. Sitepeel opens the page and measures it after it fully loads: computed colors and where they appear, the type scale, spacing, corner radii, shadows and button hover states.

The file follows the Stitch format and passes the official linter. For pages behind a login, several pages in one file or local edits, use the Design MD tool in Sitepeel for Chrome.

Make a DESIGN.md from a link, free

Review a generated DESIGN.md before you use it

Design MD in Sitepeel for Chrome

Further reading

Google Labs: the DESIGN.md format and CLI on GitHubGoogle Labs: the DESIGN.md specificationGoogle: Stitch’s DESIGN.md format is now open source (April 2026)Google: the Stitch update that introduced DESIGN.md (March 2026)@google/design.md on npm

A few useful answers.

What is a DESIGN.md file?

A Markdown file that describes a design system for AI coding agents. YAML tokens at the top give exact colors, fonts, spacing, corner radii and component styles; the sections below explain how to apply them.

Who created DESIGN.md?

Google Labs introduced DESIGN.md in Stitch, its AI design tool, in March 2026. In April 2026 Google open-sourced the draft spec and a linter under the Apache 2.0 license.

Is DESIGN.md the same as AGENTS.md?

No. AGENTS.md tells coding agents how to work in a repository: commands, conventions and checks. DESIGN.md describes how the interface should look. Many projects keep both and point to DESIGN.md from AGENTS.md.

Do AI agents read DESIGN.md automatically?

Usually not. Claude Code, Codex, Cursor, Copilot and Gemini CLI load their own instruction files. Import or mention DESIGN.md there, or attach it to the chat.

TAKE A CLOSER LOOK

Your next starting point is already on the web.

Inspect it. Understand it. Build something of your own.

Add to ChromeFree installTry the free tools