Overview
This box shadow generator helps you build accurate CSS shadows with a live preview and instant code output. It is useful for buttons, cards, dialogs, images and other UI elements that need depth and visual separation.
Use cases
- Design shadows for cards, buttons and modals.
- Create subtle elevation effects for dashboards and landing pages.
- Generate inset shadows for inputs and panels.
- Test different shadow styles quickly without manual CSS tweaking.
How it works
- 1
Set the horizontal and vertical offsets.
- 2
Adjust blur, spread and opacity to match the style you want.
- 3
Choose shadow color and optional inset mode.
- 4
Preview the shadow live as you edit.
- 5
Copy the generated CSS and paste it into your stylesheet.
Examples
Soft card shadow
Input: 0 8px 24px 0 rgba(0,0,0,0.12)
Output: box-shadow: 0 8px 24px 0 rgba(0,0,0,0.12);
A soft shadow for cards and content blocks.
Strong button shadow
Input: 0 4px 12px -2px rgba(0,0,0,0.25)
Output: box-shadow: 0 4px 12px -2px rgba(0,0,0,0.25);
A more defined shadow for interactive elements.
FAQ
What CSS property does this generator create?
It creates box-shadow values that you can use directly in CSS.
Can I make inset shadows?
Yes. Enable inset mode to generate an inner shadow effect.
Is the output ready to copy?
Yes. The generated CSS is formatted for quick copy and paste.
Does it work for multiple shadows?
You can combine values manually if you need more than one shadow layer.
