CSS box-shadow Generator
Generate advanced CSS shadows (box-shadow) with an intuitive UI.
A free tool that supports multiple layers and the latest design trends.
Layer settings
Shadow parameters
Preview
About
The CSS box-shadow Generator is a free tool that creates essential shadow styles (box-shadow) for web design with an intuitive UI.
Not only simple shadows, but also rich shadows with multiple layers, smooth shadows like those used by Apple and modern web services, 3D Neumorphism, and flat Neo Brutalism can be created instantly from presets.
The generated code can be output in three formats: standard CSS properties, CSS variables (custom properties), and Tailwind CSS utility classes (supports arbitrary values), and can be copied with a single click.
How to use
Choose a preset from the top that is close to the image you want to create. Of course, you can also build from scratch by adding layers.
Adjust X/Y offsets (position), blur strength, spread, color, and opacity. By stacking multiple shadows with "Add layer", you can create more natural and luxurious shadows.
Select "CSS" or "Tailwind" from the output panel according to your environment, and press the clipboard button to copy the code.
Properties
Syntax and properties of box-shadow
box-shadow: [inset] <offset-x> <offset-y> <blur-radius> <spread-radius> <color>;
- offset-x / offset-y
- The horizontal and vertical position of the shadow. Positive values move the shadow to the right/down, negative values move it left/up.
- blur-radius
- The blurriness of the shadow. The larger the value, the wider and lighter the shadow spreads. At 0, it becomes a sharp boundary (solid shadow).
- spread-radius
- Expands or shrinks the size of the shadow itself. Positive values result in a larger shadow than the element, negative values result in a smaller shadow.
- inset (inner shadow)
- When this keyword is specified, the shadow falls inside the element rather than outside. Used for expressing indented UIs.
FAQ
Q. Does box-shadow affect performance?
Q. What is the difference between box-shadow and filter: drop-shadow?
Q. In what expressions is inset used?
Q. What are the benefits of stacking multiple shadows?
Use cases
Card UIs and modals
Makes elements stand out from the background, visually conveying to the user that they are clickable elements or important content.
Button hover/active states
By spreading the shadow on mouse hover or switching to `inset` on click, you can implement an interactive button with a pressing feel.
Neumorphism design
By placing a light shadow and a dark shadow diagonally on an element of the same color as the background, you create a texture that makes the element appear pushed out or indented.
Glow effect
By setting the offset to 0 and spreading it with vivid colors, you can achieve an effect as if the element is emitting light using only CSS.
Send Feedback
Please let us know your thoughts to help us improve the tool.
Feedback is temporarily suspended
The server is busy or spam protection is active. Please try again later.