system colour
A CSS colour keyword, such as Canvas, CanvasText, ButtonText or Highlight, that takes its value from the user's operating system palette.
In more detail
In forced colors mode the browser uses these keywords for everything, and authors can use them too so custom components match the user's chosen colours. Canvas is the page background and CanvasText the text on it.
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.
- forced-color-adjust — The CSS property that lets an element opt out of forced colors mode with forced-color-adjust: none.
Taught in
- Dark Mode Strategies: System Preference, Class & High-Contrast — Design Systems & Component Engineering