color-scheme
Widely available since 2024-08-03
The color-scheme
CSS property sets which color schemes (light or dark) an element uses and may prevent automatic dark mode adjustments by the browser.
Learning resources on MDN
Browser support
- Chrome 98 Released on 2022-02-01
- Chrome Android 98 Released on 2022-02-01
- Edge 98 Released on 2022-02-03
- Firefox 96 Released on 2022-01-11
- Firefox for Android 96 Released on 2022-01-11
- Safari 13 Released on 2019-09-19
- Safari on iOS 13 Released on 2019-09-19