A machine-readable visual design system format that coding agents use to generate pixel-perfect UI, ships with a lint/diff/export CLI.
When you want Claude to build something that matches a site you love, you need exact values, not screenshots, not descriptions. design.md is a structured format combining YAML design tokens (colors, typography, spacing, components) with markdown design rationale. It ships a CLI with lint (validates tokens and WCAG contrast), diff (catches design regressions), export (converts to Tailwind or W3C Design Tokens), and spec commands, giving you both a machine-readable brief for your coding agent and a validation toolchain.
Steps
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.
How do you know it worked?
If something looks off
Skills & Commands Reference
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 |