Light and dark mode
Definition
Light and dark display modes offer different color bases for the same digital interface.
Light and dark display modes are alternative color schemes of an application. They predominantly use light or dark backgrounds with matching foreground colors. A website can respect system preferences or offer its own selection. The switch itself is a separate control element.
Simply explained
You can use the same interface with a light or dark background while its functions remain intact.
Why it matters in practice
Different color modes allow personal preferences but must each be well readable and fully designed.
Example from business
A possible example: A customer portal initially adopts the system setting and then allows its own choice, which is retained on further visits.
Limits and pitfalls
- Simply inverting all colors is not enough. Texts, images, error messages, and controls must retain sufficient contrast and a clear meaning in both modes.
Origin & history
Digital interfaces can now query color preferences via standardized functions. On the web, prefers-color-scheme enables adaptation to a reported light or dark preference.
Use in mid-sized companies
- An operation systematically defines both color variants and tests important views as well as interaction states in both representations.
Frequently asked questions
Is a dark mode automatically accessible?
No. Contrasts, states, and content must also be checked there; a dark background color alone does not solve these tasks.
Sources
- prefers-color-scheme. · MDN Web Docs (o. J.): prefers-color-scheme.
Editorially reviewed on: