CSS Text Shadow Generator
Layer shadows on editable text, explore five presets, and copy CSS or a Tailwind arbitrary value.
How to use
- Choose Soft, Neon glow, Retro 3D, Outline, or Long shadow to load editable text-shadow examples. Presets replace layers and preview colors, not your text.
- Add up to six layers. Set X/Y offsets and nonnegative blur in pixels, then enter a color or use the picker. The opacity slider replaces embedded alpha.
- Move layers with the arrow buttons; the first paints on top. Edit the preview text and colors to judge contrast.
- Copy the CSS declaration or complete Tailwind arbitrary-property class. Removing every layer outputs none. Preview colors are separate from the exported shadow.
FAQ
How is text-shadow different from box-shadow?
Text-shadow follows the glyphs of your text, while box-shadow follows the element box. Text shadows accept offsets, blur and color, but no spread radius or inset. Use the related box-shadow generator for cards and panels.
How do I create neon text glow?
Start with the Neon glow preset: zero offsets keep the glow centered, while several blur radii spread light around bright text on a dark background. Adjust alpha to soften the outer glow.
Can I use text shadow CSS in Tailwind?
Copy the complete [text-shadow:…] arbitrary-property class into markup that Tailwind scans. Underscores encode spaces and commas separate layers. This sets text-shadow directly rather than the box-shadow generated by shadow utilities.
Is the outline preset the same as a text stroke?
No. Four opposing zero-blur shadows approximate a thin outline; they are not a true text stroke. The long-shadow preset similarly uses six one-pixel steps, so it is a compact extrusion rather than an unlimited-length shadow.