DESIGN.md
DESIGN.md is the design system ground truth. Every AI session reads this file before touching any UI.
What it contains
1. Brand Identity
Name, location, industry, tagline, voice description, and feel. This prevents AI from defaulting to generic "professional" tone.
2. Color Tokens
--color-bg: #1A1A2E (page background)
--color-accent: #E94560 (CTAs, highlights)
--color-text-muted: rgba(255,255,255,0.45)Token names, not hex values. Rules: never hardcode hex in components.
3. Typography
Which fonts, which classes, what rules. "Serif for headlines, mono for technical specs."
4. Spacing Scale
Reference to the design system scale. No arbitrary pixel values.
5. Component Patterns
How buttons render, card styles, label classes. Prevents AI from inventing new patterns.
6. Motion
duration-300 ease-out. No bounce. No elastic. Always check prefers-reduced-motion.
7. Anti-Patterns
The forbidden list. Explicit things that will never appear in this project:
- Purple-pink gradients
rounded-xlon cards- "We are passionate about music"
- Stock-looking hero images
- Vague copy ("professional", "innovative")
How AI uses it
Claude Code loads DESIGN.md at session start (via CLAUDE.md instructions). When implementing UI:
- Checks color — must use token name, not hex
- Checks typography — must use specified font pairing
- Checks anti-patterns — refuses to implement anything on the list
- Proposes additions rather than inventing new patterns
Updating DESIGN.md
When you need a pattern that doesn't exist yet:
- Propose the addition to
DESIGN.mdfirst - Get approval (from yourself, or your team)
- Add to
DESIGN.md - Then implement
This forces deliberate design decisions instead of ad-hoc one-offs.