Start a project

Tool 07 of 29 · CSS

Shadow & Gradient Builder

Build soft, layered shadows and smooth gradients visually, see them live, and copy clean CSS. No more guessing four numbers and a colour.

Shadow & Gradient Builder

Preview

Card
CSS

Shadow layers

Several soft layers look more natural than one big shadow.

01

What it does

Layered, natural-looking box shadows and linear, radial or conic gradients with OKLCH blending, and clean CSS to copy.

  • Layered shadows with presets
  • Inset, spread and opacity per layer
  • Linear, radial and conic gradients
  • OKLab and OKLCH colour blending with a fallback

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

CSS, with a Copy and a Download button on every result.

  • box-shadow
  • Gradients
  • OKLCH
  • CSS

Why it matters

Real shadows are soft near the object and fade out gradually, which one CSS shadow can't do. Stacking several light shadows, each twice the size of the last, gives the natural depth you see in polished interfaces, but it's tedious to write by hand.

Gradients have their own problem: blending two bright colours in standard sRGB often passes through a dull grey middle. Modern CSS can blend in OKLab or OKLCH instead, which keeps colours vivid. This builder writes both versions, so older browsers still get a gradient.

How to use it

  1. Choose Box shadow or Gradient.
  2. Start from a preset, then adjust the layers or colour stops.
  3. Change the card and page colours to match your design.
  4. Copy or download the CSS.

FAQ

Why use several shadow layers?

Each layer adds a little depth at a different distance, which looks like real light. One large shadow tends to look like a grey smudge.

What does OKLCH blending do?

It mixes colours the way people see them, so a blue to green gradient stays bright in the middle instead of going muddy.

Will the gradient work in older browsers?

Yes. The CSS has a standard line first and the OKLab or OKLCH line second; browsers that don't understand the second keep the first.

Can I use the keyboard?

Yes. Every slider has a number box next to it, and the tabs work with the arrow keys.

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk