Web features explorer

prefers-color-scheme media query

Widely available since 2022-07-15
Tags: css http Groups: CSS > Media queries

The prefers-color-scheme CSS media query sets styles based on the requested color scheme, light or dark.

Learning resources on MDN

Browser support