CSS gradient generator

A CSS gradient is a smooth transition between two or more colors, made with linear-gradient(), radial-gradient() or conic-gradient(). Here you build one from your palette colors, choose the type and angle, and copy the code.

Updated

Click a HEX to copy it · lock to keep it

How to use it

  1. Tick the palette colors you want to use as gradient stops.
  2. Choose linear, radial or conic and set the angle with the slider.
  3. Copy the CSS. It includes a fallback color and a class for gradient text.

Frequently asked questions

What is the difference between linear, radial and conic gradients?

A linear gradient runs in a straight line at an angle. A radial gradient spreads out from a center as a circle or ellipse. A conic gradient sweeps around a point, like the slices of a pie chart.

Do CSS gradients work in every browser?

linear-gradient() and radial-gradient() work in all current browsers. conic-gradient() is supported by modern Chrome, Edge, Firefox and Safari. The fallback color covers older browsers.

How do I put a gradient on text?

Set the gradient as the background, add background-clip: text (and -webkit-background-clip: text) and make the text color transparent. The exported code already includes that class.