Tool

Gradient Generator

Design beautiful CSS gradients. Customize colors, angles, and positions, then copy the CSS instantly.

90°

Color Stops

0%
100%

CSS Output

background: linear-gradient(90deg, #ff0080 0%, #7928ca 100%);

About the Gradient Generator

The gradient generator is a visual tool that lets you design intricate CSS backgrounds without writing the code manually. It provides an intuitive interface for managing color stops, angles, and gradient types, and outputs highly optimized CSS ready to paste into your stylesheets.

Gradient Types

Linear Gradients

Colors transition smoothly along a straight line. You can control the direction using an angle (e.g., 90deg for left-to-right or 180deg for top-to-bottom). Perfect for subtle backgrounds and button hover states.

Radial Gradients

Colors transition outward from a central point, creating a circular or elliptical shape. Excellent for drawing attention to the center of a section or creating lighting effects.

How to use

  • Add colors: Click anywhere on the gradient bar to add a new color stop.
  • Adjust positions: Drag the handles along the bar to change where the colors transition.
  • Remove colors: Select a handle and click the Delete button to remove it.
  • Change angle: For linear gradients, use the angle slider to rotate the direction of the gradient.

CSS Compatibility

The generated CSS uses standard linear-gradient() and radial-gradient() functions. These are natively supported by all modern browsers (Chrome, Firefox, Safari, Edge) without requiring vendor prefixes like -webkit-.

Frequently Asked Questions