CSS · Properties — CSS Color

color-scheme

The CSS color-scheme property. Initial value: normal. Inherited.

Syntax
color-scheme: normal | [ light | dark | <custom-ident> ]+ && only?

Example

Try it

Notes

Media: visual. Applies to: allElementsAndText. Computed value: asSpecified.

More in this group

dynamic-range-limit forced-color-adjust print-color-adjust

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course