CSS Gradient Generator

Design a linear gradient and copy the CSS.

Quick answer: Generate beautiful CSS linear gradients online. Visually design color transitions, adjust angles, and copy the CSS code instantly.

cssbackground: linear-gradient(135deg, #0B5FFF, #A21CAF);

Visually design a linear gradient between two colors at any angle, with a live preview, and copy the ready-to-use CSS.

How it works

  1. Select two beautiful colors using the visual color pickers.
  2. Drag the angle slider to determine the precise direction of the gradient.
  3. Instantly preview the result and copy the generated CSS rule.

Frequently asked questions

What does the angle slider control?

It controls the directional vector: 0deg flows bottom-to-top, 90deg flows left-to-right, and 135deg creates a diagonal sweep.

Can I use more than two color stops?

This generator targets the most common two-color use case. To add more stops, simply inject extra colors into the CSS string manually.

Is the generated CSS fully production-ready?

Yes. The `linear-gradient` specification is universally supported natively across all modern browsers.

More in Developer Tools