The CSS color adjustment module provides a model and controls automatic color adjustment by the user agent to handle user preferences, such as "Dark Mode", contrast adjustment, and other color scheme preferences.
Together with the @media features prefers-color-scheme, prefers-contrast and forced-colors, this module defines how and when colors are automatically adjusted by the browser.
Reference
Properties
color-schemeforced-color-adjustprint-color-adjust
Related concepts
<color>CSS data type- Related
@mediafeatures:prefers-color-schemeprefers-contrastforced-colors
- Properties affected by forced colors mode
accent-colorbackground-colorbackground-imageborder-colorbox-shadowcaret-colorcolorcolor-schemecolumn-rule-colorfillflood-colorflood-opacitylighting-coloroutline-colorscrollbar-colorstop-colorstroketext-decoration-colortext-emphasis-colortext-shadow-webkit-tap-highlight-color
Specifications
See also
- CSS colors module