KickSolve • Free • Private

CSS Box Shadow Generator

Design CSS box shadows with a live preview. Adjust offset, blur, spread, color and opacity, stack up to five layers, and copy clean CSS or a Tailwind class in one click.

Live previewUp to 5 shadow layersCopy CSS or Tailwind

Presets

Layers

Each layer is one shadow. The controls on the right edit the selected layer.

CSS code

How to use CSS Box Shadow Generator on KickSolve

Three quick steps, no account needed.

Adjust the shadowMove the sliders for offset, blur, spread and opacity, then pick a shadow color.
Add layers or a presetTry Soft, Layered, Hard, Neumorphism, Inset or Glow, or stack up to five layers yourself.
Copy the codeCopy the box-shadow CSS or a Tailwind arbitrary value class.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designEverything runs in your browser. Nothing is uploaded or stored.
Real layered shadowsStack up to five shadows to build smooth, realistic depth.
Clean, ready codeReadable CSS with rgba colors, plus a Tailwind class.
Fast and freeNo sign up and no limits. The preview updates as you drag.

What you can do with CSS Box Shadow Generator

Everything this tool offers.

Offset slidersMove the shadow up to 100 pixels in any direction.
Blur and spreadControl softness and size independently.
Color and opacityPick any shadow color and set opacity from 0 to 100 percent.
Inset shadowsSwitch any layer to an inner shadow.
Multiple layersAdd and remove up to five shadow layers.
Six presetsStart from Soft, Layered, Hard, Neumorphism, Inset or Glow.
Preview stylingChange the box color, background color and border radius.
Copy CSS or TailwindOne click copies the code you need.

About CSS Box Shadow Generator on KickSolve

What it does and how to get the best results.

How the box shadow generator works

Each slider changes one part of a CSS box-shadow value. The shadow color and opacity are combined into a single rgba color, and the layers are joined with commas in the order you see them. The preview box and the code are updated together, so what you see is exactly what you copy. All of this runs in your browser.

Understanding box-shadow values

A shadow is written as offset-x, offset-y, blur radius, spread radius and color, with an optional inset keyword at the start. Positive horizontal values move the shadow right and positive vertical values move it down. A blur of 0 gives a hard edge, and a larger blur gives a softer one. A negative spread shrinks the shadow, which is a popular trick for shadows that appear only under a box.

How to make realistic shadows

  • Use several layers with low opacity instead of one heavy shadow.
  • Double the offset and blur from one layer to the next for a natural falloff.
  • Keep one consistent light direction across the whole interface.
  • Tint shadows toward the background color instead of using pure black.
  • Use larger, softer shadows for elements that float higher.

Box shadow vs drop shadow

The box-shadow property draws a shadow around the element's box and follows its border radius. The drop-shadow filter works on the visible pixels, so it follows the outline of a transparent PNG, an SVG or a clipped shape. Use box-shadow for cards and buttons, and drop-shadow for icons and cut-out images.

Performance and accessibility

Shadows do not change layout, but heavy blurs on many elements or animated shadows can slow painting on weak devices. Shadows are decoration, so do not rely on them alone to show that something is clickable or focused. Keep a visible outline or border for focus states.

Good to know

  • Colors are written as rgba, which works in all modern browsers.
  • Multiple shadows are drawn with the first one on top.
  • The Tailwind output uses an arbitrary value, which needs Tailwind CSS 3 or newer.

Box shadow values at a glance

What each part of the property does.

ValuePositionWhat it does
Horizontal offset1st lengthMoves the shadow right when positive and left when negative
Vertical offset2nd lengthMoves the shadow down when positive and up when negative
Blur radius3rd lengthLarger values make the edge softer. Cannot be negative
Spread radius4th lengthGrows or shrinks the shadow before blurring
ColorLast valueAny CSS color, usually rgba with some transparency
insetFirst keywordDraws the shadow inside the box

Frequently asked questions

Quick answers.

How do I make a box shadow in CSS?

Use the box-shadow property with an horizontal offset, a vertical offset, a blur radius, a spread radius and a color, for example box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2). Move the sliders in this generator and copy the finished line.

What do the box-shadow values mean?

The first two values move the shadow right and down. The third value is the blur radius, the fourth is the spread radius and the last is the color. Adding the word inset in front turns it into an inner shadow.

What is the difference between blur and spread?

Blur softens the edge of the shadow. Spread makes the whole shadow bigger when positive or smaller when negative, without changing how soft the edge is.

How do I add more than one shadow?

Separate shadows with commas. In this generator, press Add layer to create up to five layers and edit each one. The code output joins them in the right order.

How do I make an inner shadow?

Turn on Inset shadow. The generator adds the inset keyword, so the shadow is drawn inside the box instead of outside it.

What is the difference between box-shadow and drop-shadow?

Box-shadow follows the rectangular box and its border radius. The CSS filter drop-shadow follows the visible shape of the element, including the transparent parts of a PNG or SVG.

How do I make a smooth, realistic shadow?

Layer several shadows with low opacity and gradually increasing offset and blur, such as 1, 2, 4, 8 and 16 pixels. Try the Layered preset. Real shadows are also rarely pure black, so tint them toward the background color.

Can I use the result in Tailwind CSS?

Yes. Click Copy Tailwind to get an arbitrary value class such as shadow-[0_10px_30px_0_rgba(0,0,0,0.2)] that you can paste into your markup.

Does box-shadow hurt performance?

Shadows do not change layout, but large blur values on many elements, or animating them, can be expensive to paint. For animations, fade the opacity of a pseudo-element that carries the shadow instead.

Is anything uploaded or stored?

No. The generator runs in your browser and nothing is sent to a server.

More free tools from KickSolve

Related everyday tools.