Tools / CSS Gradient and Shadow Generator

CSS Gradient and Shadow Generator

Build CSS gradients and box shadows with sliders and a live preview. Switch between linear and radial gradients, stack shadow layers, and copy a declaration you can paste straight into a stylesheet.

Frequently asked questions

Which gradient types are supported?

Linear and radial, each with an optional repeating variant. Linear gradients take an angle in degrees; radial gradients take a circle or ellipse shape.

How many color stops can I add?

Up to eight. Stops are sorted by position before the CSS is written, because a stop placed before the previous one gets clamped by the browser and quietly changes the result.

Can I stack multiple shadows?

Yes, up to four layers. They are joined with commas in the order you add them, and each layer can be inset independently.

Why is my blur value never negative?

CSS rejects a negative blur radius, so the generator clamps it to zero. Offsets and spread can be negative and are passed through as typed.

What exactly gets copied?

A full declaration — `background-image: ...;` for gradients and `box-shadow: ...;` for shadows — ready to paste into a stylesheet.

Let's build something you're proud of

I help businesses launch, optimize and maintain their online presence, from code to SEO.

Let's talk

Related tools