CSS Shadow Generator
Visually generate CSS box-shadow with multi-layer support and real-time preview.
Shadow Layers
Shadow 1
Shadow Parameters
X Offset0px
Y Offset4px
Blur Radius6px
Spread Radius-1px
Opacity10%
Shadow Presets
Preview
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);Features
The CSS Shadow Generator visually creates box-shadow effects with multi-layer stacking, inset shadows, preset templates, and auto-generated CSS and Tailwind CSS v4 code. All processing happens locally in the browser.
- Multi-layer: Add multiple shadow layers, each with independent parameters, to stack complex effects.
- Parameters: X/Y offset, blur radius, spread radius, color, opacity, and inset are all adjustable.
- Presets: 8 common shadow presets, including subtle, medium, large shadows and neon effects.
- Preview Background: Switch between white, light gray, dark and black backgrounds to check different scenarios.
- CSS Code: Auto-generates standard box-shadow CSS code with one-click copy.
- Tailwind v4: Auto-matches Tailwind built-in shadow class names; custom shadows use arbitrary value syntax.
How to Use
- Manage Layers: Click "Add" to add a shadow layer, click a layer card to switch editing, click the trash icon to remove.
- Adjust Parameters: Drag sliders to adjust X/Y offset, blur, spread and opacity; check inset to enable inner shadow.
- Use Presets: Click any preset in the "Shadow Presets" card to quickly apply common shadow effects.
- Switch Background: The top-right of the preview area lets you switch between white/light gray/dark/black backgrounds.
- Copy Code: Click "Copy" in the CSS code area to get the box-shadow property value.
- Tailwind Usage: Auto-matches built-in class names (e.g. shadow-md); custom shadows use arbitrary value syntax (e.g. shadow-[...]).
Tip: Stacking multiple shadows creates more natural effects. Use large blur and low opacity for outer layers, small blur and high opacity for inner layers. When selecting a preset shadow, the Tailwind code auto-matches the corresponding built-in class name.
Related tools
More from the same category · Design Tools
Color Palette GeneratorGenerate palettes in one click and copy the hex values into your design.Color Format ConverterConvert HEX, RGB, HSL, CMYK and HSV live with one synced picker.QR Code GeneratorMake QR codes with your logo and colors, then export vector SVG.QR Code DecoderScan a QR from an image or camera and copy its link or text.Barcode GeneratorCreate Code128, EAN, UPC and more barcodes as vector files.Barcode DecoderRead the value of a 1D barcode image for fast stock checks.