10 Stunning CSS Text Shadow Effects You Can Copy Today
CSS text-shadow is often overlooked, but it can transform plain text into stunning visual elements. Here are 10 effects you can use right away.
1. Subtle Depth
A barely-there shadow that adds dimension without being distracting:
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);2. Neon Glow
The classic neon sign look, achieved by stacking multiple shadows:
text-shadow:
0 0 7px #fff,
0 0 10px #fff,
0 0 21px #fff,
0 0 42px #6366f1,
0 0 82px #6366f1,
0 0 92px #6366f1;
color: #fff;The key is layering white inner glows with colored outer glows. Change #6366f1 to any color for different neon hues.
3. Retro 3D Text
Stack multiple shadows with increasing offsets for a classic 3D look:
text-shadow:
1px 1px 0 #8b5cf6,
2px 2px 0 #7c3aed,
3px 3px 0 #6d28d9,
4px 4px 0 #5b21b6,
5px 5px 0 #4c1d95;4. Embossed Text
Create a pressed-into-surface effect:
color: #333;
text-shadow:
0 1px 0 rgba(255, 255, 255, 0.6),
0 -1px 0 rgba(0, 0, 0, 0.3);The light shadow below and dark shadow above mimic light hitting a carved surface.
5. Fire Text
Warm, flickering fire effect using orange and yellow shadows:
text-shadow:
0 0 4px #fff,
0 -5px 4px #ff3,
2px -10px 6px #fd3,
-2px -15px 11px #f80,
2px -25px 18px #f20;
color: #fff;6. Long Shadow
A trendy flat-design shadow that extends diagonally:
text-shadow:
1px 1px rgba(0, 0, 0, 0.1),
2px 2px rgba(0, 0, 0, 0.1),
3px 3px rgba(0, 0, 0, 0.1),
4px 4px rgba(0, 0, 0, 0.1),
5px 5px rgba(0, 0, 0, 0.1),
6px 6px rgba(0, 0, 0, 0.1);7. Outline Text
Simulate text stroke with four directional shadows:
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
color: #fff;8. Soft Glow
A gentle, approachable glow effect:
text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
color: #c7d2fe;9. Vintage Letterpress
Mimic ink pressed into textured paper:
color: transparent;
background: #e8e4d9;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
-webkit-background-clip: text;10. Multiple Color Layers
Artistic overlapping color shadows:
text-shadow:
3px 3px 0 #6366f1,
6px 6px 0 #ec4899,
9px 9px 0 #f59e0b;Want to experiment with these effects visually? Try our Text Shadow Generator — it lets you add multiple shadow layers with real-time preview and instant CSS export.