Project design spec
Colors, type, spacing, radii, components, and a banned list in one file the agent reads before touching the UI.
DESIGN.mdmarkdown · 56 lines
# DESIGN.md · [project name]
> The agent reads this before changing any UI. Write values, not adjectives: "radius 6px," not "soft."
> Look for an existing component here first. If there isn't one, build it from these tokens and add it here.
## Character
- In one line: [e.g. a quiet workbench; information over decoration]
- Reference: [URL], take its [layout / type hierarchy]
- Should not feel like: [e.g. a marketing landing page, a gamified app]
## Color
| token | value | used for |
|---|---|---|
| --bg | [#FAFAF8] | page background |
| --surface | [#FFFFFF] | cards, popovers |
| --text | [#1D1F22] | body text |
| --text-muted | [#6B6E73] | secondary text, contrast at least 4.5:1 |
| --border | [#E5E5E3] | dividers, inputs |
| --accent | [#B4441B] | primary button, links, numbers that need action. At most [3] per screen |
| --danger | [#C0362C] | errors and destructive actions only |
- Dark mode: [a dark value for each token, or "not yet"]
- No gradients; no pure black #000 for body text
## Type
- Body: [family], [16px] / line height [1.6]
- Headings: [family], only [32 / 24 / 18]
- Numbers: tabular figures, font-variant-numeric: tabular-nums
- Weights: [400 / 600] only
## Spacing and shape
- Spacing scale: [4 / 8 / 12 / 16 / 24 / 32 / 48 / 64] only
- Radius: [6px], the same for buttons, inputs, and cards
- Shadows: [overlays only]; separate flat content with borders, not shadows
- Max content width: [1200px]; body lines no longer than [72] characters
## Components
- Buttons: one primary button per screen; secondary actions are outlined or text links
- Tables: numbers right-aligned; row height [40px]; no zebra stripes or vertical rules
- Forms: labels above inputs; errors below the input, saying how to fix it
- Icons: [icon set], [1.5px] stroke, sizes [16 / 20]; no emoji
- Every component has empty, loading, and error states
## Motion
- Only for state changes; [150–200ms], ease-out
- Respect prefers-reduced-motion
- No: staggered fly-ins, scroll parallax, scale on hover, auto-rotating carousels
## Banned
- [purple-blue gradients, glassmorphism, neon glow, a rounded card around every section]
- [the centered headline + three feature cards landing page]
- [emoji as icons or heading prefixes]
- [any accent color besides --accent]
## Before handoff
- Screenshots at [390px] and [1440px], light and dark
- Go through "Banned" item by item