Task path / input to outcome
How to build a CSS box shadow
- 01
Position the shadow
1–8 Shadow layers · X/Y (px): −100…100 · Blur (px): 0–100 · Spread (px): −100…100 · Color · Opacity: 0–1 · inset
- 02
Tune blur and spread
One to eight box-shadow layers; each has offsets, blur, spread, color, opacity and inset state.
- 03
Set the color and opacity
Pick a six-digit Shadow color — the default #0b0d12 is a near-black — and set Shadow opacity from 0 to 1 in 0.01 steps. The opacity becomes the alpha channel of the rgba() color in the output, so 0.28 renders as rgba(11, 13, 18, 0.28).
- 04
Toggle the inset mode
Turn on Inset shadow to move the shadow inside the box, which reads as a pressed or recessed surface — useful for input fields and toggled buttons. The generated declaration prepends the inset keyword when the toggle is on.
- 05
Compare with the sample
Press Load sample for a sharp reference style: an 8 px offset on both axes with zero blur and zero spread in #0f4cff at 0.35 opacity — a hard-edged offset outline. Reset returns the soft default shadow, and the live preview re-renders on every change.
- 06
Copy or download the CSS
Press Copy CSS to copy the .shadow-card rule, or Download .css to save it as toolars-box-shadow.css. Copying is blocked while any value is out of range, so the declaration you paste always validates. HTML includes the current CSS and a working example. Native controls support keyboard input.