CSS Box Shadow Generator with Layered Shadows
Design smooth, layered shadows with sliders and see them on a live preview. Copy the finished box-shadow CSS in one click.
Loading tool…
How to use the Box Shadow Generator
- Start from a preset (Soft, Elevated, Sharp offset, Neumorphic, Inner glow) or adjust the sliders yourself.
- Pick a shadow colour and tick Inset if you want an inner shadow.
- Use Add layer to stack extra shadows, and change the page and box colours to match your design.
- Click Copy CSS, or Copy Tailwind class for an arbitrary value.
About this tool
The CSS box-shadow property takes an optional inset keyword, horizontal and vertical offsets, a blur radius, a spread radius and a colour. Blur softens the edge, and a negative spread shrinks the shadow so it sits mostly below the element, which is how many modern cards get their soft lift.
A single shadow often looks flat or heavy. Real light produces a tight dark shadow close to the object and a wider faint one further away, so layering two or three shadows with growing blur and falling opacity looks far more natural. Separate layers with commas, which is the format this tool outputs.
Shadows are painted outside the element and do not change layout. Large blur values on many elements can slow scrolling on low-end phones, so keep them moderate on long lists.
Frequently asked questions
What does spread do in box-shadow?
Spread grows or shrinks the shadow before blur is applied. A negative spread makes the shadow smaller than the box, which keeps it from showing on the sides.
How do I make a soft shadow?
Use a large blur, a small or negative spread, low opacity and a vertical offset. Two layers, one small and one wide, look the most natural.
What is an inset shadow?
An inset shadow is drawn inside the element's border, which suits pressed buttons and input fields.
Does box-shadow work on all browsers?
Yes. It is supported in every current browser, with no prefix needed.
Need a custom tool or website?
IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.









