Box Shadow Generator
Design custom 3D elevation, soft UI cards, and neumorphic shadows visually. Fine-tune offsets, blur, spread, and opacity, then copy production-ready CSS or Tailwind code.
Shadow Parameters
Elevation Card
0px 18px 36px -8px
Quick UI Presets
box-shadow: 0px 18px 36px -8px rgba(19, 78, 58, 0.18);
shadow-[0px_18px_36px_-8px_rgba(19,78,58,0.18)]
HOW TO USE THIS TOOL
Creating Realistic UI Depth & Elevation
- Set the Light Direction (X & Y Offsets): Keep Horizontal Offset near
0pxand push Vertical Offset between8pxand24pxto simulate natural overhead lighting. - Soften with Blur & Negative Spread: Increase the Blur Radius (
24px–48px) and apply a negative Spread Radius (-4px to -12px) so the shadow tucks neatly beneath the card. - Tune Color & Opacity: Instead of pure black, pick a dark brand tint (like deep forest green or slate) at 10%–20% opacity for a clean, modern look.
- Copy Your Code: Click Copy CSS for stylesheets or Copy Class for Tailwind CSS projects.
CSS SYNTAX EXPLAINED
How CSS Box-Shadow Works
The CSS property follows the syntax: box-shadow: [inset] offset-x offset-y blur-radius spread-radius color;
Blur Radius controls how diffused the shadow edge appears ($0\text{px}$ creates a sharp brutalist edge), while Spread Radius expands or contracts the shadow's footprint before blurring begins. Converting HEX colors to rgba(r, g, b, alpha) ensures smooth alpha blending over any background.