Skip to main content

Forced Color Adjust

Utilities for controlling how an element's colors are forced by the user agent.

CSS Property:forced-color-adjust
Classes:2

Forced Color Adjust Classes

ClassCSS
forced-color-adjust-autoforced-color-adjust: auto;
forced-color-adjust-noneforced-color-adjust: none;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[forced-color-adjust:value]

Responsive Variants

Apply forced color adjust utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:forced-color-adjust-auto
768px+md:md:forced-color-adjust-auto
1024px+lg:lg:forced-color-adjust-auto
1280px+xl:xl:forced-color-adjust-auto
1536px+2xl:2xl:forced-color-adjust-auto