How to use CSS box shadow generator
- 1
Start from a preset such as Soft, Large or Glow, or adjust the first layer.
- 2
Move the offset, blur, spread and opacity sliders, pick a colour, and add more layers for depth.
- 3
Copy the box-shadow declaration or the Tailwind class into your project.
What this tool does
The box shadow generator helps you create the shadows that give cards, buttons, menus and dialogs depth. You adjust sliders while watching a live preview, then copy one line of CSS, instead of guessing values in your editor.
Features
- Full control of horizontal and vertical offset, blur, spread, colour and opacity for each shadow.
- Up to 6 layers, stacked in order, for natural, multi-level shadows.
- Inset shadows for pressed and inner effects.
- Presets: Soft, Medium, Large, Hard edge, Glow and Inset.
- Preview settings for the box colour, page colour and corner radius.
- Output as a CSS declaration and a Tailwind arbitrary-value class.
Limits
- Shadows follow the element's box and rounded corners. For shadows that follow transparent images or text, use the CSS drop-shadow() filter or text-shadow instead.
- Many large blurred shadows on a page can slow down scrolling on older phones, so keep layers to what you need.
Where your design is processed
This tool works in your browser: the preview and code are made on your own device, so nothing is sent to our server for this tool. Some other tools on UtiloNest do use our server, and their pages say so.
Frequently asked questions
What do offset, blur and spread do?
The horizontal and vertical offsets move the shadow right and down (negative values move it left and up). Blur softens the edge; zero gives a hard shadow. Spread makes the shadow bigger or, with a negative value, smaller than the element, which is how subtle, tight shadows are made.
Why use several shadow layers?
Real shadows have a sharp, dark part close to the object and a soft, faint part further away. Stacking two or three layers, a small one and a large blurred one, gives a much more natural look than one big shadow. The Medium preset shows this.
What is an inset shadow?
An inset shadow is drawn inside the element instead of outside, so it looks pressed in. It's used for input fields, pressed buttons and inner glows.
How do I use the Tailwind class?
Paste it into an element's class list. It uses Tailwind's arbitrary value syntax, where underscores stand for spaces, so it works in Tailwind CSS 3 and 4 without changing your config.
Is my design sent anywhere?
No. The preview and code are made in your browser.