dark mode
A colour theme with light text on dark backgrounds, offered alongside the usual light theme.
In more detail
Operating systems let users choose light or dark, and pages can read that choice with the prefers-color-scheme media query. Many apps also offer a three-way toggle: light, dark or follow the system. With semantic tokens, dark mode only repoints tokens such as surface and text to different palette values.
Related terms
- prefers-color-scheme — The CSS media feature that reports whether the user has asked their operating system for a light or dark appearance.
- theming — Giving the same components different looks, such as light, dark or a different brand, by swapping the token values they use.
- semantic token — A token named for its purpose, such as color.action.bg or color.surface, that points at a global token.
Taught in
- Design Tokens: W3C Specs, Global, Semantic & Component Tokens — Design Systems & Component Engineering
- Dark Mode Strategies: System Preference, Class & High-Contrast — Design Systems & Component Engineering