Media Queries: prefers-color-scheme feature

Support the media query feature prefers-color-scheme from Media Queries Level 5 to let authors tailor content to color schemes like dark mode set by the user in the OS or browser. Keywords: light, dark, no-preference.


The extent to which this feature is useful on various OSs depends on the ability to change color theme in the given OS. The lack of possibility to set light/dark mode will result in only no-preference to match the media feature.

Status in Chromium


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Last updated on 2019-01-07