Live preview
CSS output
Start from a preset
Tap any preset to load it into the sliders, then fine-tune it.
Frequently asked questions
What does each slider do?
Horizontal and vertical offset move the shadow, blur radius softens its edges, spread grows or shrinks it, and opacity fades it. The color pickers set the shadow and box colors, and the inset toggle flips the shadow inside the box.
When should I use an inset shadow?
Inset shadows sit inside the element, which is perfect for pressed buttons, form fields, or panels that should look carved in rather than lifted off the page.
Will this CSS work in all browsers?
Yes. box-shadow is supported by every modern browser with no vendor prefixes needed. Paste the copied CSS straight into your stylesheet and it just works.
Preview
Related free tools
Free CSS Button Generator | Style Buttons Online
Free CSS button generator. Customize colors, padding, and radius with live preview, then c
Free HEX RGB HSL Color Converter
Free color converter. Convert between HEX, RGB and HSL instantly, preview the color and co
Free Color Contrast Checker | WCAG Accessibility Tool
Free color contrast checker. Test text and background colors against WCAG AA and AAA stand