CSS Shadow Generator
Generate CSS box-shadow and text-shadow code visually. Stack multiple layers, fine-tune offset, blur, spread, opacity, and color with live preview. Instantly copy the CSS output.
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.2);
Features
Multi-layer shadows
Stack unlimited shadow layers for realistic depth and glow effects
Box & text modes
Supports both box-shadow for elements and text-shadow for typography
Inset shadows
Toggle inset mode per layer to create inner shadow and pressed UI effects
Presets
Start from Soft, Sharp, Glow, Inset, or Lifted presets and customize from there
rgba output
Colors are output as rgba() with the exact opacity you set — no hex opacity hacks
Live preview
Instant visual feedback with customizable background and element colors
How to use
- 1
Choose mode
Select Box Shadow for elements or Text Shadow for typography at the top.
- 2
Pick a preset
Start from Soft, Sharp, Glow, Inset, or Lifted — or start fresh from None.
- 3
Adjust the layer
Use the sliders to set X/Y offset, blur, spread, opacity, and color for the selected layer.
- 4
Add more layers
Click "+ add" to stack additional shadow layers for depth and glow effects.
- 5
Copy CSS
Click Copy to grab the box-shadow property and paste it into your stylesheet.
Frequently asked questions
Can I use this for neumorphism designs?
Yes. Neumorphism requires two shadows — one light (top-left) and one dark (bottom-right). Set opposite offsets on two layers with matching low opacity to create a soft extruded look.
How do I create a colored drop shadow?
Change the shadow color from black to any hue using the color picker. Set opacity to around 40-60% and blur to 15-30px for a soft colored glow effect.
Why use opacity instead of a hex color with alpha?
This tool separates color and opacity for easier tuning. It outputs rgba() in the CSS — for example rgba(99, 102, 241, 0.3) — which is the correct CSS format for semi-transparent shadows.
Is there a limit to shadow layers?
CSS has no hard limit on shadow layers, though performance degrades with many layers on frequently repainted elements. For most designs, 2-3 layers are sufficient.