css.properties

color-scheme

The color-scheme property specifies which color schemes the element supports.

Formal Syntax

normal | [ light | dark | <custom-ident> ]+ && only?

See specification

JavaScript Access

// Access via element.style
element.style.colorScheme = 'normal';

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
color-scheme81961381
dark81961381
light81961381
normal81961381
only98961398

Related Properties