CompleteSEOTools
Home › Image & Design Tools › CSS Shadow Generator

CSS shadow generator

Shape a box shadow or a frosted glass card with sliders, then copy the CSS.

About CSS Shadow Generator

Box shadows take up to six layers, each with an offset, a blur, a spread, a colour with opacity, and an inset switch. Start from a preset such as layered, hard offset, inset or glow, and change what you need. The Glass tab builds a frosted panel using backdrop-filter, a translucent tint, a thin edge and a soft shadow, shown over a colourful background. The preview updates as you move the controls, and the CSS is ready to copy.

  • Getting a soft, natural shadow for cards and buttons.
  • Trying a hard-edged shadow for a flat, poster look.
  • Building a glass panel for a hero section or a modal.
  • Learning what each part of the box-shadow value does.

How to use CSS Shadow Generator

1

Step 1

Choose a preset or start with the default layers.

2

Step 2

Move the sliders and watch the preview.

3

Step 3

Copy the CSS into your style sheet.

Good to know

  • Several faint layers look more natural than one heavy one.
  • backdrop-filter works in current browsers, but give older ones a plain semi-opaque background so the text stays readable.
  • Large blur values on many elements can slow scrolling on weak phones. Use them where they help.

Common questions

What is the spread value?

It grows or shrinks the shadow before the blur is applied. A negative spread keeps a soft shadow closer to the box.

Why does my glass card look flat?

Glass only shows when something colourful sits behind it. On a plain white page there is nothing to blur.

Does it add vendor prefixes?

The glass CSS includes the -webkit- version of backdrop-filter, which some Safari versions still need.