Who this helps
- People styling cards and buttons
- Developers learning shadow arguments
Developer Design Utility
Adjust CSS box-shadow values for cards, buttons, modals, and banners in real time, then generate natural SaaS-style shadow code and inline style examples.
Adjust the shadow position, blur, spread, color, and opacity to create the depth you want.
Black tones work well for natural card shadows, while colored tones are useful for glow effects.
Outer creates a shadow outside the element, while Inset creates an inner shadow.
The shadow effect you set is reflected here in real time.
Quickly apply commonly used shadow combinations for cards, banners, buttons, and glow effects.
Use the code below in a CSS file, component style, or inline style.
Select your settings, then click Generate CSS Code.
Set horizontal and vertical offsets, blur, spread, color and opacity for a card or button. Compare an outer shadow with inset, and export the shadow together with the preview corner radius.
Set X and Y offsets, then blur and spread.
Choose the HEX color and opacity.
Choose outer or inset and adjust the preview radius.
Generate CSS once; subsequent edits update the generated code.
Copy or download the CSS and check it against the actual page background.
Negative spread reduces the shadow's base size; blur softens its edge.
The shadow is drawn inside the box.
A single box-shadow value combines offsets, blur, spread and an RGBA color. HEX accepts #RGB or #RRGGBB; opacity is converted from percent to alpha. Output targets .shadow-box and includes border-radius. An inline HTML example is enclosed in a CSS comment.
Settings stay in browser memory. CSS copy and download contain the chosen values; the tool does not upload them.
Set corners individually.
Try a different card background.
Yes. The generated rule includes border-radius as well as box-shadow. Remove that declaration if the component already controls its radius.
Transparency blends with the background. Check the shadow against the real light and dark theme backgrounds.
No. Invalid color input clears the exportable result; fix the HEX value before copying or downloading.