CSS Box Shadow Generator Free

Adjust offset, blur, spread, colour and opacity — add layers for realistic depth — and copy production-ready CSS.

🔲 Shadow layers

👀 Preview

CSS
box-shadow: 0px 1px 2px 0px rgba(15,23,42,0.06), 0px 8px 24px -4px rgba(15,23,42,0.1);
Tailwind
shadow-[0px_1px_2px_0px_rgba(15,23,42,0.06),0px_8px_24px_-4px_rgba(15,23,42,0.1)]
Built by Pyalm

Pyalm designs and builds fast, conversion-focused websites in Next.js — the same stack these tools run on. If you'd rather have it built than fiddle with CSS, talk to us.

Pyalm serviceWebsite developmentFast, SEO-ready business websites and web apps built in Next.js — designed around the questions your buyers ask.See website development Pyalm serviceCustom softwareInternal tools, portals and business systems built around how your team actually works — not the other way round.See custom software

Layered shadows look real

A single dark shadow looks flat and dated. Real objects cast a tight, darker shadow close to the surface and a wide, faint one further out. Stacking two or three low-opacity layers produces the soft depth used by modern interfaces.

Keep it consistent

Define three or four elevation levels — resting cards, raised cards, dropdowns, modals — and reuse them across your product instead of inventing a new shadow for every component.

Related

More free tools you might need

📦

Flexbox PlaygroundFree

Learn and build CSS flexbox layouts visually — every property, live, with CSS and Tailwind output.

🌈

Color Converter & Contrast CheckerFree

Convert between HEX, RGB, HSL, HSV, CMYK and OKLCH — and check WCAG contrast.

🌬️

Tailwind CSS PlaygroundFree

Write HTML with Tailwind CSS classes and see it render live — with starter templates.

Browse all free tools

FAQ

Frequently asked questions

Do box shadows hurt performance?

Static shadows are cheap. Animating large blurred shadows can be expensive; animate opacity or transform of a pseudo-element with the shadow instead.

How do I use the Tailwind output?

Paste the class (e.g. shadow-[0_4px_12px_rgba(0,0,0,0.08)]) into your markup. For reuse, add the value to boxShadow in your Tailwind theme.

Want a website that ranks and converts?

Pyalm designs and builds fast, conversion-focused websites in Next.js — the same stack these tools run on. If you'd rather have it built than fiddle with CSS, talk to us.

See website development