prefers-contrast

The CSS media feature that reports whether the user has asked their operating system for more or less contrast.

In more detail

@media (prefers-contrast: more) lets a design system switch to a high-contrast theme with stronger borders and text. The lesson checks it before the colour-scheme preference, so accessibility needs win.

Related terms

Taught in

References