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.

In more detail

In forced colors mode, author background and text colours, including those from CSS custom properties, are overridden with system colours. Backgrounds and shadows used to show boundaries vanish, so components need real borders or outlines. The forced-colors media query lets you adjust for it.

Related terms

Taught in

References