What is the CSS Gradient Generator?
Gradients add depth to buttons, headers and backgrounds. Choose the type (linear, radial or conic), the angle and the colours, see a live preview, then copy the CSS or download the gradient as a PNG image.
Features
Three types
Linear, radial and conic.
Copy CSS
Paste straight into your stylesheet.
Download PNG
Use it as an image anywhere.
How to use the CSS Gradient Generator
- 1
Pick the type and colours.
- 2
Watch the preview change.
- 3
Copy the CSS, or download a 1200 × 630 picture.
Who it is for
Web developers
Hero sections and buttons.
Designers
Background images for slides and posts.
Tips for better results
- Neighbouring colours (blue to purple) give smooth gradients. Opposite colours can look muddy in the middle.
Questions people ask
Do all browsers support CSS gradients?
Yes, all current browsers do.
Do all browsers support it?
Linear and radial work everywhere. Conic works in all current browsers; the first line of the CSS is a plain colour for very old ones.