CSS Gradient Generator

Add to my tools

Easily create linear or radial CSS gradients. Choose your colors, the direction and copy the generated CSS code instantly.

Choose two colors and the gradient type to generate the corresponding CSS code.

I need a demo !

Create a CSS gradient

Your CSS gradient

Gradient preview

 

CSS code

CSS Gradients: Complete Guide

CSS gradients allow you to create smooth transitions between two or more colors without using images. They are supported by all modern browsers.

Linear gradient

A linear gradient creates a color transition along a straight line. You can choose the direction.

Radial gradient

A radial gradient creates a transition that radiates from a central point outward.

Usage in CSS

Simply copy the generated CSS code and paste it into your stylesheets:

.my-element {
  background: linear-gradient(to bottom, #3498DB, #9B59B6);
}
Similar tools