Text Shadow
Utilities for controlling the text shadow of an element.
CSS Property:
text-shadowClasses:4
Text Shadow Classes
| Class | CSS | |
|---|---|---|
text-shadow-sm | text-shadow: 0 1px 1px rgb(0 0 0 / 0.1); | |
text-shadow | text-shadow: 0 1px 2px rgb(0 0 0 / 0.2); | |
text-shadow-lg | text-shadow: 0 2px 4px rgb(0 0 0 / 0.2); | |
text-shadow-none | text-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.
| Breakpoint | Prefix | Example |
|---|---|---|
| 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 |
Related Utilities
Explore more Tailwind tools
Tailwind Grid Generator
Create grid layouts visually
Tailwind Flexbox Generator
Create flex layouts visually
Tailwind Gradient Generator
Create custom gradients
Aa
Tailwind Text Gradient
Gradient text effects
Tailwind Gradients Collection
275+ ready-to-use gradients
Tailwind Colors
Complete 240+ color palette
Tailwind Box Shadow Generator
Design multi-layer shadows
Aa
Tailwind Text Shadow
Add depth to text with shadows
Tailwind Filter Generator
Apply blur, brightness & more
Tailwind Transform Generator
Rotate, scale & translate elements
Tailwind Animation Generator
Create built-in & custom animations
Tailwind Transition Generator
Smooth hover transitions
Tailwind Config Generator
Generate your config file
Tailwind Input Generator
Design form inputs visually
Tailwind Class Sorter
Organize classes in order
Flexbox Cheatsheet
All flex utilities visualized
Overflow Cheatsheet
Control content overflow
