CSS color-scheme Property Reference

The CSS color-scheme property is a standard property in CSS Color. Review its formal syntax, computed behavior, and practical declarations.

CSS color-scheme Property Reference

The CSS color-scheme property is a standard property in CSS Color. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

color-scheme overview

The CSS color-scheme property is a standard property in CSS Color. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

color-scheme formal syntax
FieldValue
Formal syntaxnormal | [ light | dark | <custom-ident> ]+ && only?
Initial valuenormal
Applies toallElementsAndText
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Color
StatusStandard

Practical examples

These declarations demonstrate valid ways to set color-scheme. The initial and inherit global keywords remain available even when a property-specific value is preferable.

color-scheme live example
CSS .reset-example { color-scheme: initial; } .inherit-example { color-scheme: inherit; } @supports (color-scheme: initial) { .supported { color-scheme: initial; } }

Related references

Description

The CSS color-scheme property is a standard property in CSS Color. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: color-scheme
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies