CSS Box Shadow Generator
Adjust shadow properties visually and copy the ready-to-use CSS box-shadow code.
Design CSS box shadows visually using intuitive sliders. Control horizontal and vertical offset, blur radius, spread, color, and inset settings — then copy the exact CSS property code ready for your stylesheet.
Features
Use Cases: When This Tool Helps
-
Create card designs
Add soft, realistic shadows to product cards, pricing tables, and dashboards.
Read the guide → -
Design button hover effects
Make buttons lift or press with shadow changes on hover and click.
-
Build neumorphic and modern UI
Experiment with inset and layered shadows for trendy interfaces.
-
Highlight form focus states
Create glow effects that show which input is active, improving usability.
-
Match a design mockup
Recreate exact shadows from Figma or Dribbble designs in CSS.
-
Learn shadow properties
See how offset, blur, spread, and opacity change a shadow live.
How to Use
- Choose a preset or start from scratch.
- Adjust the X/Y offset, blur, spread, and color sliders.
- Toggle inset for an inner shadow effect.
- Copy the CSS box-shadow property to use in your code.
FAQ
Can I add multiple shadows?▾
Yes — CSS allows comma-separated box-shadow values. Add layers for richer shadow effects.
What is the spread radius?▾
Spread radius expands or contracts the shadow. Positive values grow the shadow; negative values shrink it.
Box Shadow Tips
- Soft shadows (low blur, low offset) look modern and clean.
- Use multiple shadows to simulate material depth.
- Negative spread with large blur creates a subtle ambient shadow.