Utilmango › CSS gradient generator

CSS gradient generator

Pick colors and copy the CSS gradient code.

Ad space

How CSS gradients work

A linear gradient blends colors along a straight line at an angle: 0deg goes bottom to top, 90deg goes left to right, 180deg top to bottom. A radial gradient blends outward from the center in a circle.

Paste the generated line into any CSS rule for an element, for example a button, a hero section or a page background. Gradients are drawn by the browser, so they cost no image download.

FAQ

Where do I paste the CSS?

Inside a rule such as .hero { ... } or in the style attribute of an element.

Can I use more than two colors?

Yes, by hand: add more color stops separated by commas.

Do gradients work in all browsers?

Yes, all modern browsers support them without prefixes.