Box Shadow Generator
Runs locallyDesign layered CSS box shadows with inset, presets and Tailwind/SwiftUI/Compose export.
What is Box Shadow Generator?
Craft natural, multi-layered box shadows with negative/positive offsets, blur, spread, color opacity, inset toggle, and Material/soft-UI presets. Export for CSS, Tailwind, SwiftUI, and Jetpack Compose.
How to use Box Shadow Generator
- Step 1
Add or select shadow layers and adjust X, Y, blur, spread, color, and inset.
- Step 2
Preview against light or dark surface backgrounds.
- Step 3
Apply Material elevation or soft shadow presets for instant starting points.
- Step 4
Copy CSS, Tailwind, SwiftUI .shadow, or Compose elevation code.
Features
- Multi-layer shadow stack with per-layer visibility and reordering
- Negative and positive X/Y offsets, blur, spread, and inset support
- Color picker with alpha/opacity control
- Curated elevation presets (subtle card, modal, soft glow, brutalist)
- Export CSS, Tailwind arbitrary values, SwiftUI, and Compose
Example
Input
Layer 1: 0 2px 6px rgba(0,0,0,0.12), Layer 2: 0 12px 28px rgba(0,0,0,0.18)
Output
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18);
Combining a tight contact shadow with a wide ambient shadow produces realistic depth.
Frequently asked questions
Why use multiple shadow layers?
Real-world elevation combines a tight dark shadow near the object and a softer diffuse shadow.
Does it support inset shadows?
Yes, any layer can be toggled to `inset` for recessed surfaces or inner highlights.
Can I copy Tailwind CSS classes?
Yes, Tailwind arbitrary `shadow-[...]` output is generated alongside standard CSS.
Does it work offline?
Yes, everything runs locally in your browser.
Related tools
CSS Gradient Generator
Design linear, radial, conic and OKLCH gradients with export to CSS, Tailwind, SwiftUI and Compose.
Border Radius & Blob Generator
Generate 4-corner and 8-value elliptical border-radius blobs with live preview.
CSS Formatter & Minifier
Format or minify CSS/SCSS, sort properties, compute specificity and convert to JS or Tailwind.
Color Converter & Contrast Checker
Convert HEX, RGB, HSL, HWB, OKLCH, OKLab, Display-P3, check WCAG/APCA contrast and export scales.