How to use CSS Gradient Generator
- Pick the gradient typeChoose linear, radial or conic, and set the angle for linear and conic gradients.
- Set the colour stopsChoose up to six colours and drag each position slider. The preview updates as you go.
- Copy the CSSCopy the background rule. It includes a solid fallback colour for very old browsers.
Common uses
- Create a hero or button background
- Try colour combinations before adding them to a design
- Get gradient code without writing it by hand
Frequently asked questions
How do I use CSS Gradient Generator?
1. Pick the gradient type: Choose linear, radial or conic, and set the angle for linear and conic gradients. 2. Set the colour stops: Choose up to six colours and drag each position slider. The preview updates as you go. 3. Copy the CSS: Copy the background rule. It includes a solid fallback colour for very old browsers.
Which browsers support these gradients?
Linear, radial and conic gradients work in all current versions of Chrome, Edge, Firefox and Safari.
Why is there a second background line?
The first line is a solid colour that browsers without gradient support use instead.
Can I use the code commercially?
Yes. The generated CSS is yours to use in any project.