Dark mode with web standards
- Jun 12, 2026 Respecting the user’s OS setting is straightforward: use the prefers-color-scheme media query in CSS.
- Arguably, that isn’t enough: users should also be able to customise their choice on a per-site basis.
- A user might want dark mode for the UI of an application, but light mode for reading long-form text on content-heavy sites, for example.
Unverified
- Jun 12, 2026 Respecting the user’s OS setting is straightforward: use the prefers-color-scheme media query in CSS.
- Arguably, that isn’t enough: users should also be able to customise their choice on a per-site basis.
- A user might want dark mode for the UI of an application, but light mode for reading long-form text on content-heavy sites, for example.
Sources: Olliewilliams