A machine-readable visual design system format that coding agents use to generate pixel-perfect UI, ships with a lint/diff/export CLI.
Before you start
You'll want a working sense of what a DESIGN.md file is before working through this guide.
Pick any public website whose design you want to match. Copy its URL. A portfolio site, a SaaS product, a brand you admire. Any publicly visible site works.
Paste this into a new Claude conversation. Claude will use the design.md pipeline to analyze the site and pull out the design values. Give it a moment. This can take 30-60 seconds for complex sites.
A well-formed DESIGN.md has four sections: Colors (hex values and semantic names), Typography (font families, sizes, and weights), Spacing (a base unit and a scale), and Components (how cards, buttons, and grids are built). Here's what a minimal one looks like. Yours will have more detail:
When Claude finishes, it will give you a block of text. Ask Claude to save it, or copy it yourself and paste it into a new file in your project folder. The file name matters. Call it exactly DESIGN.md. AI builders like Lovable and Bolt look for that specific name.
Once DESIGN.md is in your project, you can reference it any time you ask Claude to build something. Claude reads the file and uses those exact values when generating code or layouts.
design.md CLI commands for validating and converting your design token files.
| Command / Skill | What it does | When to use it |
|---|---|---|
design.md lint | Validate your DESIGN.md for structural correctness and WCAG contrast compliance | After generating or editing a DESIGN.md, catches broken tokens and accessibility failures before building |
design.md diffadvanced | Compare two DESIGN.md versions to detect regressions in colors, spacing, or typography | Before merging any design system update, surfaces unintended changes |
design.md exportadvanced | Convert DESIGN.md tokens to Tailwind config or W3C Design Tokens format | Wiring your design system into a Tailwind project or a cross-tool token pipeline |
design.md specadvanced | Output the format specification for inclusion in agent system prompts | When instructing a coding agent to produce valid DESIGN.md output |