🔲 CSS Box Shadow Generator

Design CSS box shadows visually with live preview. Control offset, blur, spread, color, and inset. Layer multiple shadows. Copy CSS one click. Free box-shadow generator.

4px
4px
12px
0px
40%
Preview

      
      
    

How to Use

1

Adjust the sliders

Set X offset, Y offset, blur, and spread with the sliders. Toggle Inset for an inner shadow.

2

Pick a color

Click the color swatch to open the color picker. Adjust opacity for semi-transparent shadows.

3

Stack layers and copy

Add multiple shadow layers for depth. Click Copy CSS to get the complete box-shadow declaration.

Frequently Asked Questions

What are the box-shadow values? +
box-shadow takes: horizontal-offset vertical-offset blur-radius spread-radius color. Positive horizontal moves right, positive vertical moves down. Blur softens the shadow. Spread expands it. The optional inset keyword makes it an inner shadow.
What does "inset" do in box-shadow? +
The inset keyword turns the shadow from an outer drop shadow into an inner shadow that appears inside the element. Inner shadows are useful for creating pressed/sunken button effects, input field depth, and embossed designs.
Can I add multiple shadow layers? +
Yes — CSS box-shadow accepts multiple comma-separated values. Each layer adds depth. Stacking a tight hard shadow with a larger soft shadow creates realistic elevation effects like Material Design cards.
What is the difference between blur and spread? +
Blur determines how soft/fuzzy the shadow edges are (0 = hard sharp edge). Spread expands or contracts the shadow before blurring — positive spread makes the shadow larger than the element, negative shrinks it.
How do I copy the CSS to my project? +
Click the Copy CSS button to copy the full box-shadow declaration to your clipboard. The output is ready to paste directly into your stylesheet.


Guía: Generador de Sombras CSS (box-shadow)

¿Qué es?

box-shadow añade sombras a elementos sin afectar el flujo del documento. Acepta desplazamiento X/Y, radio de desenfoque, radio de dispersión, color e inset. Las sombras múltiples permiten efectos sofisticados como neuromorphism.

Cómo usar

  1. Ajusta los sliders de desplazamiento, desenfoque y dispersión.
  2. Elige el color con el selector.
  3. Activa Inset para sombras interiores.
  4. Copia el CSS generado.

Consejos

🧰 50+ Tools