Box Shadow Generator
Create CSS box shadows visually with live preview. Adjust offset, blur, spread, and color to design perfect shadows.
Box Settings
Preset Shadows
How to Use Box Shadow Generator
How to Create Box Shadows
- Adjust offsets: Use sliders to set horizontal and vertical offset.
- Set blur: Increase blur radius for softer shadows.
- Set spread: Adjust spread to make the shadow larger or smaller.
- Pick color: Choose shadow color and opacity.
- Toggle inset: Check inset for inner shadows.
- Add layers: Click "Add Shadow" for multiple shadows.
- Copy CSS: Copy the generated code to use in your project.
Features
- Visual shadow editor
- Adjustable offset, blur, spread
- Color picker with opacity
- Inset shadow option
- Multiple shadow layers
- Real-time preview
- One-click CSS copy
- Preset shadow styles
- Live preview box
- Mobile-friendly controls
About Box Shadow Generator
CSS box shadows add depth and dimension to web elements, but getting the right shadow values by trial and error is tedious. Our visual generator lets you see your shadow in real-time as you adjust each property, then copy the perfect CSS code.
Shadow Properties Explained
Box shadows are controlled by several values:
- Horizontal offset: Shadow position left/right (positive = right)
- Vertical offset: Shadow position up/down (positive = down)
- Blur radius: How soft or sharp the shadow edge appears
- Spread radius: Expands or contracts the shadow size
- Color: Shadow color including opacity (use rgba for transparency)
Creating Effective Shadows
Realistic shadows come from understanding light sources. A light above and to the left creates shadows below and to the right. Subtle shadows (small offset, larger blur, low opacity) look more natural than hard shadows. Multiple shadows can create layered depth effects.
Design Pattern Examples
Material Design elevation: Multiple soft shadows at different distances. Button hover: Increase shadow on hover to show "lifting." Card depth: Subtle shadow to separate content from background. Inset shadows: Create pressed or recessed appearances.
Browser Compatibility
The box-shadow property is supported in all modern browsers. No vendor prefixes needed. The generated CSS works across Chrome, Firefox, Safari, and Edge.