CSS Gradient Generator

Tool

CSS Gradient Generator

Blend up to five colors into linear, radial or conic gradients. Start from a preset or shuffle, then copy the CSS.

Loading tool…

Build CSS gradients visually

CSS gradients paint smooth color transitions without image files. Linear gradients run along an angle, radial gradients spread out from the center and conic gradients sweep around a point. This generator lets you place up to five color stops, preview the result and copy CSS with a solid-color fallback.

How to use it

  1. Choose linear, radial or conic, then set the angle or the shape.
  2. Edit the color stops: change each color and its position, add colors or remove them.
  3. Copy the CSS. With Pro you can also export a Tailwind class or an SCSS variable.

Frequently asked questions

Why does the CSS include a solid background first?

The first line is a fallback color for old browsers and tools that don’t understand gradients. Modern browsers use the gradient on the next line.

How do I avoid muddy colors in the middle?

A gradient between opposite hues can turn grey halfway through. Add a bright, saturated color stop in the middle, or pick hues that sit closer together on the color wheel.

More free tools

SVG Pattern Studio

Dots, grids, stripes, waves and crosses exported as SVG or CSS data URI.

DevCraft Pro Pass

Everything in DevCraft, without interruptions.

$1.99 USD one-time payment
  • An ad-free workspace across every tool
  • Advanced exports: Tailwind, SCSS, CSS variables and JSON tokens
  • JSON key sorting for clean, diff-friendly output
  • Stays private: unlocked locally in this browser

Pro Pass active

Pro is unlocked in this browser. Thank you for supporting independent tools.

Secure checkout by Paddle, our Merchant of Record. Taxes may apply depending on your country. Pro is stored in this browser; to restore it on another device, email patrone.webstudio@gmail.com.