CSS Box Shadow Generator

Adjust offset, blur, spread, color and opacity and see the shadow update live. Copy the CSS, or a Tailwind class if your project uses Tailwind.

1. Shadow Dimensions

2. Color & Opacity

Live Preview

Shadow Target

Generated CSS

How to Use the CSS Box Shadow Generator

The box-shadow property is one of the most effective ways to add depth, hierarchy, and dimension to your web elements. It accepts several values to define the shadow's appearance:

How do I create a glowing effect?

To create a neon glow, set both the Horizontal and Vertical Offsets to 0px. Choose a slight positive Spread Radius (e.g., 2px) and a high Blur Radius (e.g., 20px). Using a bright, vibrant color (like Cyan or Neon Pink) with high opacity will make the element appear to emit light.

What is an Inset shadow?

By default, shadows are "outset" (falling outside the element's bounding box). Toggling the type to "Inset" draws the shadow inside the element, which is perfect for creating pressed buttons, hollow input fields, or etched text effects.

CSS copied to clipboard!