A design system in 40 tokens
Our design system had 600 tokens and nobody knew which one to use. We deleted 560 of them and adoption doubled within three months.
Tokens are meant to encode decisions. When you have a token for every hex value in the brand guide, you haven't made a decision, you have only moved the problem from the design file to the codebase.
Three layers, few names
We rebuilt Halo around three layers:
- Palette: raw values that nobody uses directly.
- Roles:
surface,text,accent,borderand their states, 32 tokens in total. - Scales: eight spacing and radius steps that cover every layout.
css
:root {
--surface: #FFFFFF;
--surface-raised: #F7F6FB;
--text: #2A2838;
--text-muted: #6A687C;
--accent: #5B3DF5;
--border: #E3E1EE;
}
[data-theme=dark] {
--surface: #08080D;
--surface-raised: #12111B;
--text: #C9C8D8;
--text-muted: #8D8BA3;
--accent: #A193FF;
--border: #22212E;
}
Measure usage, not coverage
We added a small lint rule that counts raw color values in pull requests. Instead of blocking them, it posts a friendly comment with the closest token. Within three months raw values dropped by 80%, without a single argument in code review.