A good shadow lifts a card off the page; a bad one looks like dirt. The difference is mostly blur and opacity, and this tool lets you feel both before you paste anything — drag, generate, look at the preview, and only then copy the line.
Try the sample first
- Look at what is already there. “Horizontal offset (px)” is 0, “Vertical offset (px)” is 12, “Blur (px)” is 28, “Spread (px)” is 0, “Shadow colour” is a dark swatch, “Opacity” is 25, and “Inset shadow” is unchecked.
- Read the code. The Output box shows box-shadow: 0px 12px 28px 0px rgba(35, 33, 30, 0.25); — the four numbers in order are horizontal offset, vertical offset, blur, spread, then the colour with its opacity.
- Look at the preview. A white, rounded-corner rectangle in a light-grey box, with a soft dark shadow falling below it. That is what 12px down, 28px of blur and 25% opacity looks like.
Change a value — then click Generate
- Changing a slider does not change the code on its own. Move anything and the Output box still shows the old line until you click “Generate shadow”. The preview waits for the same click.
- Try no blur at all. Set “Blur (px)” to 0 and click “Generate shadow”: the code becomes box-shadow: 0px 12px 0px 0px rgba(35, 33, 30, 0.25); and the preview shows a hard-edged grey strip under the box, with no softness. That is the difference blur makes — 28 softens it, 0 makes it a solid edge.
- Vertical offset sets the direction. A positive number drops the shadow below the box; a negative number lifts it above. Horizontal offset works the same way — positive pushes right, negative pushes left.
- Spread grows or shrinks the shadow. Positive spread makes the shadow bigger than the box; negative spread pulls it in smaller. At 0, the shadow is the same size as the box.
- Opacity is the softness control. The slider shows 25, and the code shows it as 0.25 in the rgba colour — 25% opaque. Most shadows that look good sit between 10 and 30; above 50 they start to look heavy.
- The colour picker shows no hex label. The swatch is just a colour — pick from it, and read the colour back from the code, where it appears as rgba(35, 33, 30, 0.25) for the near-black default.
- Tick “Inset shadow” for a shadow inside the box. The word inset appears at the start of the line, and the shadow moves inside the edges instead of falling outside them — useful for pressed-in buttons and input fields.
- Copy or download it. “Copy output” copies the one line; “Download” saves it as shadow.css.
- Your values stay on your device. Everything runs in the browser, so nothing you set is uploaded.