Skip to main content

Grayscale

Utilities for applying grayscale filters to elements.

CSS Property:filter: grayscale()
Classes:2

Grayscale Classes

ClassCSS
grayscale-0filter: grayscale(0);
grayscalefilter: grayscale(100%);

Arbitrary Values

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

[filter: grayscale():value]

Responsive Variants

Apply grayscale utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:grayscale-0
768px+md:md:grayscale-0
1024px+lg:lg:grayscale-0
1280px+xl:xl:grayscale-0
1536px+2xl:2xl:grayscale-0