Box-Shadow Anatomy: Offset, Blur, Spread, Colour and Inset
The CSS Box Shadow Generator builds the box-shadow property from an editable model. Each shadow is offset-x offset-y blur spread color: offset-x and offset-y move the shadow horizontally and vertically (negative values move it left or up), blur softens the edge (larger is bigger and lighter; it cannot be negative), and spread grows the shadow with positive values or shrinks it with negative ones. The colour is emitted as rgba() so opacity is a first-class control. The optional inset keyword draws the shadow inside the element’s padding box (following the border radius) instead of outside it. Each value is a live slider in the editor and the result renders instantly on a sample element whose colour, backdrop and corner radius you can change to test against real surfaces.
- Order of values: offset-x, offset-y, blur-radius, spread-radius, colour
- Negative offsets move the shadow left/up; blur cannot be negative
- Spread expands (positive) or contracts (negative) the shadow
- Colour is emitted as rgba() so opacity is directly editable
- inset draws the shadow inside the padding box (recessed) rather than outside
