What is CSS Box Shadow Builder?
box-shadow is one of the most commonly used CSS properties for adding depth and elevation to elements, but its multi-value syntax can be confusing, especially when combining offset, blur, spread, color, and the inset keyword. This tool makes the property visual by showing a live preview as you adjust each value, so you can see exactly how the shadow behaves before adding it to your stylesheet.
quickAnswer
Generate a box-shadow declaration by adjusting offset, blur, spread, color, and inset. The live preview shows the shadow on a static div so you can tune the values before adding them to your stylesheet.
Last updated: 2026-06-11
limitations
- The preview is a static div with no surrounding context. A shadow that looks correct in isolation may appear different against a real page background or near other elements.
- The tool generates one shadow at a time. For layered or multiple shadows you must combine the values manually in your stylesheet.
- The box-shadow property creates shadows that follow the element CSS box, not the visible shape. For non-rectangular elements with transparent backgrounds or CSS clip-path shapes, use the drop-shadow filter instead for a shadow that follows the visible contours.
Sources:MDN Web Docs · W3C Specifications · jquery.app on GitHub
How to use this tool
- Adjust the horizontal and vertical offset to move the shadow position.
- Set the blur radius and spread to control softness and size.
- Pick a shadow color and toggle inset if the shadow should appear inside the element.
- Copy the generated CSS declaration and paste it into your stylesheet.
What you can use it for
- Add subtle elevation to cards, modals, and dropdown menus.
- Create inset pressed effects for buttons and form fields.
- Build layered shadows by combining multiple box-shadow values for realistic depth.