Skip to content

Box Shadow Generator

Build a CSS box-shadow from offsets, blur, spread, color and opacity, as an inset shadow if you like. Choose more than one layer to get a softer, more natural shadow made of several stacked shadows. The result comes as a CSS declaration and as a Tailwind arbitrary value class.

Reset

Frequently asked questions

What do offset, blur and spread do?

The horizontal and vertical offsets move the shadow right and down, or left and up with negative values. Blur softens its edge, and spread grows or shrinks the shadow before it is blurred.

How are layered shadows built?

With several layers the tool stacks shadows whose offsets, blur and spread double from one layer to the next, ending at the values you entered, and divides the opacity evenly between them. Stacking shadows this way gives a softer edge than one large shadow.

Which color formats can I use?

Any CSS color, such as #1f2937, rgb(0 0 0), hsl(220 40% 20%) or a named color. The output uses rgb() with the opacity you set as the alpha value, multiplied by any alpha the color already has.

What does inset do?

An inset shadow is drawn inside the element's border, which makes the element look pressed in. It is often used for input fields and pressed buttons.

How do I use the Tailwind class?

Add the shadow-[...] class to an element. Spaces in the value are written as underscores, which Tailwind turns back into spaces when it builds the CSS.

Do shadows affect layout?

No. box-shadow is drawn outside or inside the element without changing its size or position, so it never moves other elements. Large shadows can be cut off by a parent with overflow: hidden.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.