FlashcardNot attempted
Design tokens
Recall it before you reveal
What are semantic design tokens, and why do they make dark mode easy?
Space to reveal
Show answer & explanation
Tokens are named design decisions: colours, spacing, radii. Primitive tokens name raw values (slate-900); semantic tokens name intent (text-main, surface, brand).
Components only use semantic tokens (as CSS variables). Dark mode then becomes one block that remaps the variables (.dark { --surface: #171a20 }), with no per-component changes. This app is built exactly that way.