CSS shadow generator
Build box-shadow and text-shadow CSS visually. Adjust offset, blur, spread, color and opacity with sliders, then copy production-ready CSS. Free, no sign-up.
Design box-shadow and text-shadow values with sliders — offset, blur, spread, color and opacity — and copy clean rgba() CSS the moment it looks right. Standard-compliant output for any modern browser.
Each output is a single shadow rule. CSS stacks multiple shadows with commas, so you can build a layered elevation by combining two or three generated values in one declaration.
For dark mode, design shadows separately rather than reusing light-mode values: on a dark surface the shadow color should stay near-black but drop to roughly half the opacity, because the background itself already absorbs the contrast a shadow needs to read. If a dark card looks flat, widen the blur before raising the opacity.
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);Want the full design system from a color? Open the color palette generator to create accessible palettes, semantic tokens, light and dark themes, and production-ready CSS — all from a single color.
How to use this tool
- Choose box-shadow or text-shadow.
- Adjust offset, blur, spread and color with the sliders.
- Copy the generated CSS and paste it into your stylesheet.
Frequently asked questions
- What shadow types are supported?
- Box shadows (for elements) and text shadows (for text). Both support offset X/Y, blur radius, color and alpha. Box shadows also include spread radius.
- Is the output production-ready?
- Yes — the CSS uses standard rgba() color notation and is ready to paste into any stylesheet. It works in all modern browsers.
- Can I create layered shadows?
- This tool generates single shadows. For layered effects, generate multiple shadows and combine them with commas in your CSS.
- What is spread for, and when should I leave it at zero?
- Spread grows or shrinks the shadow's footprint before blur is applied — useful for solid borders that glow (focus rings) or for shrinking a shadow tighter than its element. For elevation shadows that mimic real light, leave spread at zero and control the shape with offset and blur instead.
Related tools
Related guides
Short lessons · 19 Aug 2026
Shadows that suggest elevation, not blur
A good shadow is layered, directional and subtle. Here's the elevation recipe most UIs are missing.
Tutorials · 4 Nov 2026
Elevation shadows for cards, modals, and menus
Resting, raised, overlay: three shadow levels, zero mud.
Tutorials · 5 Nov 2026
Focus rings and glows people can actually see
Rings that survive every background: visible focus by construction.
CSS shadow generator runs entirely in your browser — nothing you enter is sent to a server.