ToolBark
Color & Design

Gradient Generator

Design beautiful CSS gradients with a live visual editor

CSS Gradient Generator

Click the bar below to add color stops · Drag handles to reposition
Type
135°
Color Stops3 stops
%
%
%
Editing Stop at 0%
100%
Presets
CSS property
background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
Gradient value only
linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%)

Tips: Drag handles on the gradient bar to reposition stops. Click an empty area on the bar to add a new stop. The Reverse button flips all stop positions. Use Random for instant inspiration.

About

Create professional CSS gradients in seconds with our free visual gradient generator. Build linear and radial gradients with unlimited color stops, fine-tune each stop's position and opacity, and get instant CSS output ready to paste into your project. Choose from curated presets or generate a random palette — then copy the CSS property or Tailwind arbitrary class with one click.

FAQ
What is the difference between a linear and radial gradient?+

A linear gradient transitions colors along a straight line at a set angle — for example, from left to right or diagonally. A radial gradient radiates colors outward from a central point, creating circular or elliptical patterns. Both are widely supported in all modern browsers.

How do I add or move color stops?+

Click anywhere on the gradient bar to add a new color stop at that position. To reposition a stop, drag its handle left or right along the bar. You can also use the sliders or number inputs in the stop list below the bar for precise control.

Can I use the generated gradient in Tailwind CSS?+

Yes — switch to the Tailwind tab in the output panel to get an arbitrary-value class like bg-[linear-gradient(...)]. Paste it directly on any element. This requires Tailwind v3 or later with JIT mode, which is the default for new projects.

How do I make a gradient with transparency?+

Select any color stop in the list and use the Opacity slider in the 'Editing Stop' panel below. Reducing opacity below 100% outputs rgba() values, allowing the gradient to blend with whatever is behind the element.

Related tools