Box Shadow & Neumorphism Generator
Craft layered box shadows, soft-UI neumorphism and 3D text shadows in real time — drag the light source, stack unlimited layers, then copy production-ready CSS, Tailwind or HTML. Live preview and presets included.
Estimated visual depth from blur, spread and offset.
box-shadow works in every modern browser
The free Box Shadow & Neumorphism CSS generator
This box-shadow generator lets you design beautiful CSS shadows visually — from a single soft drop shadow to stacks of layered shadows, smooth neumorphism (soft UI) components and dramatic 3D text shadows — then export clean, copy-paste CSS, Tailwind or HTML in seconds. Drag the element to set the offset, spin the light-source dial, add as many shadow layers as you like, and watch the live preview update instantly. No sign-up, no watermark, completely free.
What is the CSS box-shadow property?
The box-shadow property adds one or more shadows around an element's frame. Each shadow takes up to six values: offset-x offset-y blur spread color, plus an optional inset keyword to draw the shadow inside the box instead of outside. A positive offset-x pushes the shadow right, a positive offset-y pushes it down, blur softens the edge, and spread grows or shrinks the shadow. Because the property accepts a comma-separated list, you can layer multiple shadows to build rich, realistic depth.
How to create a box shadow with CSS
- Set the offset — choose
offset-xandoffset-y, or simply drag the element on the preview to position the shadow like a light source. - Soften the edge — raise the
blurfor a diffuse, natural shadow; keep it at0for a hard, graphic edge. - Tune the spread — a positive spread enlarges the shadow, a negative spread tucks it under the element.
- Pick a colour & alpha — soft shadows usually use a low-opacity black or a tinted colour for a coloured glow.
- Layer more shadows — add extra layers (and an
insetlayer or two) to fake real-world ambient and key lighting. - Copy the code — grab the CSS, Tailwind or HTML and paste it into your project.
What is neumorphism (soft UI)?
Neumorphism, or "soft UI", is a design style where elements appear extruded from — or pressed into — a single background colour. The trick is two shadows: a darker shadow on the side away from the light and a lighter highlight on the side facing it, both derived from the element's own colour. Because the element and its background share the same base colour, the result looks like soft, moulded plastic. This generator computes both shadow colours automatically by lightening and darkening your base colour, and lets you switch the light to any corner or flip between raised, pressed, flat and concave styles.
Layering multiple shadows
The biggest difference between a flat, amateur shadow and a convincing one is layering. Real objects cast several overlapping shadows: a tight, dark contact shadow near the surface and a wider, softer ambient shadow further out. By stacking two or three box-shadow layers with increasing blur and decreasing opacity, you get depth that feels physically grounded. This tool supports unlimited layers — add, remove and re-tune each one, including inset layers for inner shadows and 3D text effects.
Features of this shadow generator
- Three modes — box shadow, neumorphism (soft UI) and layered text shadow in one tool.
- Unlimited layers — stack, edit and remove as many shadow layers as you need.
- Drag-to-offset — drag the element or spin the light-source dial to set the shadow direction.
- Inset shadows — toggle any layer to an inner shadow for pressed and embossed looks.
- Smart neumorphism — automatic light/dark shadow colours from a single base colour.
- Export anywhere — copy as CSS, Tailwind arbitrary values or ready-made HTML.
Browser support for box-shadow and text-shadow
Both box-shadow and text-shadow are supported in every modern browser — Chrome, Edge, Firefox, Safari and mobile — with no vendor prefixes required. Multiple comma-separated layers, inset shadows and the spread radius all work everywhere, so the code this generator produces is safe to ship straight to production.
Box shadow & neumorphism — frequently asked questions
Is this box-shadow generator free to use?
Yes. The generator is 100% free with no sign-up, no watermark and no limits. Design your shadow, neumorphism component or text effect and copy the CSS as many times as you like.
What do the box-shadow values mean?
The order is offset-x offset-y blur spread color, with an optional inset keyword. Offset-x and offset-y move the shadow horizontally and vertically, blur softens its edge, spread grows or shrinks it, and color (usually a low-opacity rgba) sets the tint. Adding inset draws the shadow inside the element instead of outside.
How do I add multiple box shadows?
The box-shadow property accepts a comma-separated list of shadows, so you can stack as many layers as you want. In this tool, click "Add shadow layer" to create another layer and edit each one independently — a great way to build realistic, multi-step depth.
How does the neumorphism (soft UI) mode work?
Neumorphism uses two shadows generated from a single base colour: a darker shadow and a lighter highlight placed on opposite sides, based on where the light comes from. This tool lightens and darkens your base colour automatically, so you only pick one colour, a light direction and a type (raised, pressed, flat or concave).
Can I use the generated CSS with Tailwind?
Absolutely. Switch the output tab to Tailwind and you'll get an arbitrary-value utility such as shadow-[...], with multiple layers joined by underscores, that drops straight into your markup.