CSS Box Shadow Generator

Client-Side New

Create beautiful CSS box shadows with a visual editor. Adjust horizontal offset, vertical offset, blur radius, spread radius, color, and opacity with live preview. Layer multiple shadows for depth and dimension. Toggle inset mode for inner shadows. Choose from presets like subtle elevation, material design, and neumorphism, or build custom shadows from scratch. Copy the generated CSS code instantly.

Presets

Shadow Layers (1)

Layer 1

Preview

CSS Output

.box-shadow {
  box-shadow: 4px 4px 10px 0px #00000040;
}

How to Use

  1. 1

    Adjust Shadow

    Set offset, blur, spread, and color for each shadow layer.

  2. 2

    Layer Shadows

    Add multiple shadow layers for depth. Toggle inset for inner shadows.

  3. 3

    Copy CSS

    Copy the box-shadow CSS property with all configured layers.

Examples by Niche

Card Elevation

box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)

Neumorphism

box-shadow: 8px 8px 16px #1a1a2e, -8px -8px 16px #2a2a4e — soft 3D on dark bg

Focus Ring

box-shadow: 0 0 0 3px rgba(59,130,246,0.5) — blue focus ring effect

Frequently Asked Questions

Can I layer multiple shadows?

Yes, add multiple shadow layers to create depth and complex effects. Each layer has independent controls for offset, blur, spread, color, and inset mode.

What are the preset styles?

Presets include subtle (light elevation), medium (card shadow), heavy (dramatic drop shadow), material design levels 1-5, neumorphism (soft UI), and inner shadow (inset).

What is the inset option?

Inset shadows appear inside the element rather than outside, creating a pressed or recessed effect. Useful for input fields, buttons, and neumorphic designs.

How do I create a smooth, layered box shadow effect?

Layer multiple box shadows with increasing spread and decreasing opacity for a natural, elevated look. For example, use 2-4 shadow layers where each successive layer has a larger offset, more blur, and lower opacity. This mimics real-world lighting more accurately than a single heavy shadow.

Related Tools

Related Articles