🔲 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.
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.
Guide : Générateur de Box Shadow CSS
Qu'est-ce que c'est ?
Le Générateur de Box Shadow CSS crée des ombres portées personnalisées avec un aperçu en direct. Ajustez le décalage, le flou, la taille et la couleur visuellement.
Il génère le code CSS correspondant, y compris les préfixes vendeurs si nécessaire.
Comment utiliser
- Utilisez les curseurs pour ajuster décalage X/Y, rayon de flou et d'étalement.
- Choisissez la couleur et l'opacité de l'ombre.
- Activez l'option inset pour une ombre intérieure.
- Copiez le CSS généré dans votre feuille de style.
Conseils professionnels
- Combinez plusieurs box-shadows séparées par des virgules pour des effets de profondeur réalistes.
- Utilisez des ombres colorées (non grises) pour des designs modernes et vibrants.