Skip to content
Sumly

CSS Box Shadow Generator

Craft smooth, multi-layer elevation shadows with CSS and Tailwind code.

Presets
Shadow layers (2)
Horizontal Offset (X)0px
Vertical Offset (Y)1px
Blur Radius2px
Spread Radius0px
Opacity6%
Live preview
Elevated Surface2 layers applied
CSS `box-shadow`
box-shadow: 0px 1px 2px 0px rgba(31, 74, 63, 0.06), 0px 2px 4px -1px rgba(31, 74, 63, 0.08);
Tailwind arbitrary class
shadow-[0px_1px_2px_0px_rgba(31,_74,_63,_0.06),_0px_2px_4px_-1px_rgba(31,_74,_63,_0.08)]

How CSS Box Shadow Generator works

Allows layering multiple shadows for realistic light falloff and elevation.

Computes standard CSS box-shadow declarations and arbitrary Tailwind classes.

Renders live on light cream, pure white, and deep dark backgrounds.

Worked example

Stack a crisp 1px ambient border with a soft 12px blur shadow for modern UI card depth.

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

Generate modern CSS clamp() formulas for smooth fluid typography and spacing.

HEX, RGB and HSL in one place — plus the contrast verdict.

Convert raw SVG vectors into background-image CSS and Base64 data URIs.

Frame the shot — numeric crop with a live selection overlay.

Generate multi-size favicons and preview them in browser tab mockups.

Test foreground and background color combinations against WCAG 2.2 AA and AAA standards.

  • css
  • shadow
  • box-shadow
  • elevation
  • tailwind
  • design