mAIbmAIbTools

CSS Box-Shadow Generator

Design a CSS box-shadow visually and copy the code in one click.

How to use

  1. Drag the sliders for offset, blur and spread.
  2. Pick a shadow color and opacity.
  3. Copy the generated box-shadow CSS.

How the CSS Box-Shadow Generator works

Builds CSS box-shadow values with live preview, covering offset, blur, spread, colour and inset.

A box-shadow takes horizontal and vertical offsets, an optional blur radius, an optional spread, and a colour. Multiple shadows can be comma-separated, which is how realistic layered depth is achieved.

box-shadow: offset-x offset-y blur spread color [inset]

Worked example

box-shadow: 0 4px 6px rgba(0,0,0,0.1) is the standard subtle card lift — no horizontal offset, small downward offset, soft blur, low opacity black.

Things worth knowing

Frequently asked questions

What does spread do?

Spread grows or shrinks the shadow before the blur is applied — negative values tuck it under the element.

Can I add multiple shadows?

This builds one shadow; you can stack several by separating them with commas in your CSS.

How do I put a shadow inside the element?

Add the inset keyword. Inset shadows read as depressions rather than elevation.