HubTools

CSS Gradient Generator

Create beautiful CSS gradients with a visual editor. Supports linear, radial, and conic gradients with live preview and one-click CSS copy.

What are CSS Gradients?

A CSS gradient is a smooth color transition rendered by the browser's painting engine — no images needed, infinitely scalable, and dynamically animatable. The CSS Images Module defines three types: linear-gradient (colors blend along a straight line at any angle), radial-gradient (colors blend outward from a point in a circle or ellipse), and conic-gradient (colors rotate around a center, useful for pie-chart effects). All three accept any number of color stops with explicit positions, support modern color spaces like OKLCH, repeat to fill larger surfaces (repeating-linear-gradient), and stack on top of each other for layered effects. This generator builds all three types visually with a live preview at full panel size, then copies the CSS or Tailwind class to your clipboard. Need to pick perfect color stops? Use the Color Picker; want to animate the gradient? Try the CSS Animation Generator.
Gradient Preview
Color Stops
0%
100%
Settings
Gradient Type
Angle135deg
Generated CSS
Presets

How to use this tool

  1. 1
    Pick a gradient type
    Choose linear (most common), radial (for spotlights), or conic (for angular effects). The control panel adapts to the type.
  2. 2
    Add and tune color stops
    Use the visual stop editor to add colors and drag them along the gradient. Each stop has an exact percentage position.
  3. 3
    Adjust angle, position, or shape
    Linear gradients take an angle (0–360°). Radial and conic gradients take a position. Tweak until the preview matches your design.
  4. 4
    Copy the output
    Hit Copy CSS or Copy Tailwind. The generated string is paste-ready for your stylesheet or React className.

Frequently asked questions

What CSS gradient types does this support?
All three: linear-gradient (with custom angle or direction keyword like 'to right'), radial-gradient (with shape, size, and position), and conic-gradient (with starting angle and from-position). Each type has its own visual controls so you can pick the right one for the effect you need.