What is DESIGN.md?
DESIGN.md는 Google Labs(google-labs-code/design.md)에서 제안한 오픈 포맷 명세로, 시각적 디자인 시스템을 하나의 일반 텍스트 파일로 기술합니다. 색상, 타이포그래피, 간격, 모서리 반경, 컴포넌트 규칙을 담은 구조화된 YAML design tokens와 계층, 톤, 시각적 Do's and Don'ts를 설명하는 Markdown 산문을 결합해 AI 코딩 에이전트가 매 프롬프트마다 스타일을 추측하지 않고 일관된 UI를 생성하도록 합니다.
Why DESIGN.md exists
When you ask an AI coding agent to build a page or add a component, it has no persistent memory of your visual system. Without a shared spec, every prompt drifts into default blues, mismatched radii, and generic spacing. Committing a DESIGN.md file gives both humans and agents one plain-text source of truth that diffs cleanly in git.
YAML design tokens
Machine-readable values in the frontmatter or fenced YAML blocks so agents and exporters use exact numbers rather than approximations.
- Color roles and hex values (primary, surface, ink, borders, semantic states)
- Typography families, sizes, weights, and line heights
- Spacing scale, border radii, elevation shadows, and component props
Markdown guidelines
Structured prose sections that explain when to apply each token and what to avoid—judgment that a flat JSON file cannot carry.
- Visual hierarchy, grid structure, and responsive density rules
- Component anatomy, interactive states, and motion pacing
- Explicit Do's and Don'ts that prevent common AI UI mistakes
Anatomy of a DESIGN.md file
---
version: alpha
name: Heritage
colors:
primary: "#1A1C1E"
surface: "#FAF9F7"
tertiary: "#B8422E"
typography:
display:
fontFamily: "Newsreader, Georgia, serif"
fontSize: 40
body:
fontFamily: "Inter, sans-serif"
fontSize: 16
---## Colors
- **Primary (#1A1C1E):** Deep ink for headlines and core body text.
- **Surface (#FAF9F7):** Warm off-white page canvas.
- **Tertiary (#B8422E):** Accent reserved for primary actions and focus rings.
## Do's and Don'ts
- Keep primary buttons to one per viewport section.
- Do not introduce pure #000000 backgrounds or neon gradients.Standard sections
- 1.Overview
- 2.Colors
- 3.Typography
- 4.Layout
- 5.Elevation & Depth
- 6.Shapes
- 7.Motion & Micro-interaction
- 8.Voice & Content Strategy
- 9.Components
- 10.Do's and Don'ts
How DESIGN.md compares to other files
| Format | Primary role | What it contains | Use when |
|---|---|---|---|
| DESIGN.md | Visual system for AI agents & teams | YAML tokens + Markdown layout, component, and do/don't rules | Agents generate or restyle UI in a repository |
| AGENTS.md / CLAUDE.md | Repository engineering rules | Build commands, test conventions, architecture constraints | Directing agent workflows; point it to DESIGN.md for UI work |
| DTCG tokens.json / Figma Variables | Tool-to-tool token interchange | Structured JSON key-value maps without prose rationale | Syncing Figma with code compilers; pair with DESIGN.md for AI |
| tailwind.config / globals.css | Framework styling implementation | Compiled CSS custom properties and utility configuration | Shipping styles in production; generate it from DESIGN.md |
How to start using DESIGN.md
- 1
Pick or extract a DESIGN.md
Download a hand-reviewed DESIGN.md from the DesignMD Pro directory—free sites require no account—or extract one from a live URL.
- 2
Add it to your repo and validate
Save the file as DESIGN.md at the repository root and check its YAML syntax, section order, and token references with the validator or CLI.
- 3
Wire it into your AI agent or export code
Reference DESIGN.md from CLAUDE.md, AGENTS.md, or .cursor/rules, connect the DesignMD Pro MCP server, or convert tokens directly to Tailwind v4, CSS variables, or shadcn/ui.
Compatible AI coding agents
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- OpenAI Codex
- Kiro
- Vercel v0
- Google Stitch
- Bolt
- Google Antigravity
Specification & tools
Official Apache-2.0 specification repository and sample files on GitHub.
Format reference for frontmatter schemas, tokens, and section structure.
Frontmatter, token syntax, component rules, and annotated examples.
Hand-checked DESIGN.md files extracted from real production websites with revision history.
Common questions about DESIGN.md
View all FAQsWho created the DESIGN.md specification?
Google Labs published the open DESIGN.md specification under the Apache-2.0 license in the google-labs-code/design.md repository, alongside documentation in Google Stitch.
Should the file be named DESIGN.md or design.md?
Use uppercase DESIGN.md at the repository root—the same convention as README.md, AGENTS.md, and CLAUDE.md. People also search for design.md, design-md, or designmd, which all refer to the same specification.
Do Claude Code and Cursor read DESIGN.md automatically?
Not by default. Add a one-line pointer in CLAUDE.md, AGENTS.md, or .cursor/rules telling the agent to read DESIGN.md before creating or editing UI, or run npx designmdpro init to wire those rule files automatically.
Does DESIGN.md replace Figma or Tailwind CSS?
No. DESIGN.md sits between design tools and application code as the agent-readable contract. Keep Figma for visual exploration and export DESIGN.md tokens into CSS variables, Tailwind v4 @theme blocks, or shadcn/ui themes.
How can I check if my DESIGN.md file is valid?
Paste your file into the free DesignMD Pro validator at /validator or run npx designmdpro lint in CI. Both check YAML frontmatter syntax, token references, contrast ratios, and section coverage.