Designing a Token Budget for Dark Interfaces
How a small, named set of surface and text tokens keeps a dark UI legible without resorting to glow and coloured shadows.
- Design Systems
- Tokens
- Accessibility
- CSS
Dark interfaces are seductive: every colour looks expressive against near-black. That is exactly why they need a budget. Without one, a design accumulates a dozen greys, three accents and a glow on every card, and nothing communicates priority any more.
Pick a ladder, then stop adding steps
Four surfaces are usually enough: base, sunken, card and raised. Each step should be visually distinguishable in a screenshot but quiet in a room. If two steps need a side-by-side comparison to tell apart, merge them.
:root {
--surface-base: #0a0a0a;
--surface-sunken: #141414;
--surface-card: #1a1a1a;
--surface-raised: #202020;
--text-muted: #8d867e;
}
Spend the accent deliberately
Reserve the accent for one interactive state per view: selected tab, focused field, primary action. If everything is highlighted, the reader has to read every label to find the action. A monochrome accent — white in a grey ramp — is often enough.
Test contrast on the darkest and lightest surfaces
A muted grey that passes on #0a0a0a can fail on #202020. Check the token, not the intention, and define the muted colour against the surface it will actually sit on. Hairline borders do the structural work that a lighter fill would otherwise do.
Delete effects before adding tokens
Blur, glow and coloured shadows are usually compensating for a weak hierarchy. Fix the ladder first; then see which effects remain necessary. Most dark interfaces look better with fewer effects and one more level of contrast.