Theming
Swapping token values to change appearance without rebuilding.
See it on the 3D treeGoing deeper
Components refer to roles such as background, text or accent instead of fixed values. Each theme supplies its own value for every role, so the same structure can serve light, dark, high-contrast or different brands. Type, radius and spacing can also vary, though larger changes may break layouts.
Why it matters
One set of components can serve several appearances, provided you check contrast and layout in each theme.
In practice
A software firm gives each client an accent colour and logo while buttons, forms and behaviour stay identical.
Common mistake
Hard-coding a few colours inside components, which then stay unchanged when the theme switches.
Connected terms
- Dark ModeA common theme, switched largely by changing colour values.
- Design TokensThemes work by assigning different values to the same token names.
- White LabelTheming lets one product take on each customer's brand.
- Semantic ColourRole-based colour names are what make swapping themes manageable.