Free Tool

CSS Gradient Generator

Create beautiful CSS gradients with live preview. Linear and radial. Copy the CSS.

135°

Presets

CSS

background: linear-gradient(135deg, #667eea, #764ba2);

Types of CSS gradients

  1. Linear gradients — colors transition along a straight line at a specified angle
  2. Radial gradients — colors radiate outward from a center point in a circle or ellipse
  3. Conic gradients — colors rotate around a center point like a color wheel

CSS gradient syntax

TypeSyntax
Linearlinear-gradient(angle, color1, color2)
Radialradial-gradient(shape, color1, color2)
Conicconic-gradient(from angle, color1, color2)

Frequently Asked Questions

What angle should I use for a gradient?

The most common angles are 0° (bottom to top), 90° (left to right), 135° (top-left to bottom-right), and 180° (top to bottom). 135° is the most popular for modern UI design as it creates a natural diagonal flow.

Can I use more than two colors?

Yes. CSS gradients support unlimited color stops. Add more colors separated by commas: linear-gradient(135deg, #667eea, #764ba2, #f5576c). This tool focuses on two-color gradients for simplicity, but you can extend the output.

Do CSS gradients work in all browsers?

Yes. CSS gradients are supported in all modern browsers including Chrome, Firefox, Safari, and Edge. No vendor prefixes are needed for current browser versions.

Want beautiful branded content?

Quillly creates on-brand blog content that matches your design system. Try it free.