Presets
Text shadow
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
How to use
Pick a preset or add layers
Click a preset such as Outline, Neon or Retro, or edit the default layer. Add up to twelve layers and switch on Long shadow for a stepped shadow along an angle.
Tune the text and shadow
Set X offset, Y offset, Blur, Opacity and color for each layer. Type your preview text and set the text color, background, font size, weight and font to match your design.
Copy the code
Pick CSS, With color, Tailwind or SCSS and press Copy or Download. Copy share link keeps the layers, text and colors in a URL.
Why CSS Text Shadow Generator
- Up to twelve text shadow layers with offset, blur, color and opacity.
- A long shadow builder with any angle, length and an optional fade.
- Twelve presets, from a subtle lift to neon, outline, emboss and fire.
- Preview on your own text, then copy CSS, Tailwind or SCSS.
text-shadow values explained
A single shadow has up to four parts. Offsets are required, blur and color are optional. When the color is left out, the browser uses the text color.
| Part | Example | What it does |
|---|---|---|
| X offset | 2px | Moves the shadow right (positive) or left (negative) |
| Y offset | 2px | Moves the shadow down (positive) or up (negative) |
| Blur | 4px | Softens the edge; 0 gives a hard copy of the letters |
| Color | rgba(0, 0, 0, 0.4) | Shadow color; the alpha sets how strong it is |
Copy-ready text shadow recipes
These are values from the presets, written the way the tool outputs them. Paste them after text-shadow: in your CSS and adjust the colors to your palette.
| Look | Value |
|---|---|
| Subtle | 0 1px 2px rgba(0, 0, 0, 0.25) |
| Hard offset | 3px 3px 0 #111827 |
| Letterpress (on light gray) | 0 1px 0 rgba(255, 255, 255, 0.7) |
| Glow | 0 0 12px rgba(56, 189, 248, 0.9) |
| Retro | 3px 3px 0 #f472b6, 6px 6px 0 #38bdf8 |