Skip to content

CSS Gradient Generator

Design linear, radial and conic CSS gradients visually: set the angle or position, add and reorder colour stops with sliders, watch the live preview, and copy the result as a CSS background declaration with a solid fallback or as a Tailwind arbitrary value class.

Runs in your browserFreeNo sign-up

Processed on your device. Files and text stay in your browser and are not uploaded to our servers. How privacy works

How to use the css gradient generator

  1. Pick a preset or start with the default two-stop gradient.
  2. Choose linear, radial or conic, then set the angle (linear/conic), shape (radial) and position.
  3. Add, recolour, reposition, reorder or remove colour stops; the preview updates live.
  4. Switch the output to CSS or Tailwind and copy it into your stylesheet or markup.

Features

  • Linear, radial (circle/ellipse at nine positions) and conic gradients
  • Up to ten colour stops with pickers, HEX input and position sliders
  • Presets for common looks and a live preview box
  • CSS output with a solid fallback colour computed from your stops
  • Tailwind bg-[...] arbitrary value output

Gradient syntax at a glance

All three functions take a list of colour stops; what differs is the geometry:

  • linear-gradient(90deg, #000 0%, #fff 100%): colours change along a line. 0deg points up, 90deg to the right, 180deg down.
  • radial-gradient(circle at top left, …): colours radiate from a point. circle keeps equal radii; ellipse stretches to the box.
  • conic-gradient(from 0deg at center, …): colours sweep around a centre like a pie chart; ending on the same colour you started with makes a seamless wheel.
  • Stops with the same position create hard edges; stripes and colour bands are made this way.

Why the CSS includes a fallback line

Gradients are supported everywhere modern, but a plain background colour declared before the gradient means anything that cannot render the gradient (very old browsers, some email clients) still shows a sensible solid colour. Browsers that understand gradients simply use the second declaration.

Frequently asked questions

How do I make a smooth, seamless conic gradient?

Repeat the first colour as the last stop at 100%. The Colour wheel preset shows this pattern.

Can I use these gradients on text?

Yes: apply the gradient as the background, then add background-clip: text and color: transparent. Tailwind has bg-clip-text and text-transparent utilities for this.

Why does the Tailwind output have underscores?

Tailwind arbitrary values cannot contain spaces, so underscores are used instead. Tailwind converts them back to spaces when it generates the CSS.

Why do stops sometimes reorder themselves in the output?

CSS requires stops in ascending position. The tool sorts by position when generating the code, so a stop dragged past another one is listed in its visual order.

Other tools people use alongside CSS Gradient Generator.

You might also like

Something useful from another corner of VoltKit.