forced-color-adjust
The CSS property that lets an element opt out of forced colors mode with forced-color-adjust: none.
In more detail
Opting out keeps the author's colours for that element. It should be used only where the colours are the content, such as a colour picker swatch or a drawing canvas, because it overrides a choice the user made for accessibility.
Related terms
- forced colors mode — A browser mode, turned on by settings such as Windows Contrast Themes, that replaces a page's colours with a small palette the user chose.
- system colour — A CSS colour keyword, such as Canvas, CanvasText, ButtonText or Highlight, that takes its value from the user's operating system palette.
Taught in
- Dark Mode Strategies: System Preference, Class & High-Contrast — Design Systems & Component Engineering