Skip to main content

Text Shadow

Utilities for controlling the text shadow of an element.

CSS Property:text-shadow
Classes:4

Text Shadow Classes

ClassCSS
text-shadow-smtext-shadow: 0 1px 1px rgb(0 0 0 / 0.1);
text-shadowtext-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
text-shadow-lgtext-shadow: 0 2px 4px rgb(0 0 0 / 0.2);
text-shadow-nonetext-shadow: none;

Arbitrary Values

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

[text-shadow:value]

Responsive Variants

Apply text shadow utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:text-shadow-sm
768px+md:md:text-shadow-sm
1024px+lg:lg:text-shadow-sm
1280px+xl:xl:text-shadow-sm
1536px+2xl:2xl:text-shadow-sm