Both are markdown files that describe a design system for coding agents. The difference is depth and structure. One captures intent, the other provides deterministic, production-ready token definitions.
A design.md file captures design intent in natural language — color names, font choices, and layout descriptions. It gives AI agents basic design context in a format that's easy to write. A typical design.md is 20–30 lines of high-level guidance: primary colors, font families, and brief component descriptions.
~20–30 linesA designtoken.md extends this concept with structured, production-ready token definitions. Instead of “Primary: Blue” you get a full 50–900 color scale. Instead of “Font: Inter” you get a 9-level type hierarchy with sizes, weights, line heights, and letter spacing. 150–200 lines of deterministic, parseable tokens.
~150–200 linesA design.md gives you the broad strokes. A designtoken.md gives your agent everything it needs to build consistent UI without guessing.
A detailed comparison of what each file format covers.
| Dimension | design.md | designtoken.md |
|---|---|---|
| Color depth | 4–6 named color roles | Full 50–900 scales for 4 color roles + semantic aliases |
| Typography | 2–3 font/size entries | 9-level type scale with weights, line heights, letter spacing |
| Components | Natural language descriptions | Structured component token sets with states |
| Elevation | Not typically addressed | Shadow scale from sm to xl |
| Spacing | Mentioned in layout text | Named scale (4px–96px) with use annotations |
| Border radius | Inline in component text | Radius scale with semantic names |
| Visual preview | None | Visual reference card |
| Agent parsing | Requires NLP interpretation | Deterministic markdown — headings + tables |
| Typical size | ~30 lines | ~150–200 lines |
Both formats have a place. Here's how to choose.