Skip to main content

Mask Type

Utilities for controlling the type of SVG mask rendering.

CSS Property:mask-type
Classes:2

Mask Type Classes

ClassCSS
mask-type-luminancemask-type: luminance;
mask-type-alphamask-type: alpha;

Arbitrary Values

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

[mask-type:value]

Responsive Variants

Apply mask type utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:mask-type-luminance
768px+md:md:mask-type-luminance
1024px+lg:lg:mask-type-luminance
1280px+xl:xl:mask-type-luminance
1536px+2xl:2xl:mask-type-luminance