CSS box-shadow generator.

Create soft, layered or hard shadows for cards and buttons. Stack several layers for a natural look and copy the CSS.

Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.

More design tools · All 55 free tools

How to use it

  1. Start from a preset such as Layered or Soft.
  2. Adjust each layer’s offsets, blur, spread, colour and opacity, or tick Inset.
  3. Change the background and box colours to match your design.
  4. Copy the CSS into your stylesheet.

Questions

Why use several shadow layers?

Real shadows are sharp near an object and soft further away. Combining a tight, faint layer with a larger, softer one looks more natural than one big blur.

Do shadows slow pages down?

Static shadows are cheap. Animating large, blurry shadows can cost performance on low-end devices; animate opacity of a pseudo-element instead.

How do shadows work in dark mode?

Dark shadows barely show on dark backgrounds. Many dark themes use lighter surfaces or subtle borders to show elevation instead.

Let’s build something great.

Tell us what you want to build, who it is for and what it needs to do. We’ll help you define a practical next step.

Start a project