AZ Tools

CSS Gradient Generator

Color

Design beautiful linear or radial CSS gradients visually: pick the type, set the angle or shape, add as many color stops as you like, and see a live preview. Copy the result as a plain CSS rule or as a Tailwind arbitrary-value class.

Type

Color stops

  • 0%
  • 100%
Preview
CSS
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
Tailwind
bg-[linear-gradient(135deg,_#3b82f6_0%,_#8b5cf6_100%)]

How to use

  1. Pick linear or radial.
  2. Adjust the angle (linear) or shape (radial).
  3. Edit the color stops and drag the position sliders.
  4. Copy the CSS rule or the Tailwind class.

Frequently asked questions

Why Tailwind arbitrary values?
Tailwind's bg-[…] arbitrary value class lets you drop a custom CSS gradient straight into a Tailwind project without writing a separate CSS file.
How many color stops can I add?
As many as you want — three to five usually looks best, but the tool supports any number.
Can I save a gradient?
Your last design auto-saves to your browser's local storage and reloads next time you open the tool.
Why does the Tailwind class use underscores?
Tailwind treats whitespace as a class separator, so arbitrary values use underscores in place of spaces.

Related tools