How to Write a DESIGN.md: the Complete Spec Guide
DESIGN.md is a plain-text file that travels with your code. It holds design tokens in YAML frontmatter and design rationale in Markdown prose. This guide covers every section of the @google/design.md 0.3.0 spec: token types, reference syntax, linting rules, and the canonical section order that validators enforce.
Start
Sections
Reference
Lint Rules
Lint Rules OverviewFixing broken-ref in DESIGN.mdFixing missing-primary in DESIGN.mdFixing contrast-ratio in DESIGN.mdUnderstanding orphaned-tokens in DESIGN.mdReading token-summary in DESIGN.mdUnderstanding missing-sections in DESIGN.mdFixing missing-typography in DESIGN.mdFixing section-order in DESIGN.mdFixing unknown-key in DESIGN.md
Upload a DESIGN.md and see your brand guideline rendered instantly.Open the tool