About the CSS Gradient Generator
Design a gradient background without writing code. Choose linear, radial or conic, add and drag color stops, set the angle, start from a preset, and copy CSS or a Tailwind class.
Key features
- Linear, radial and conic
- Up to 8 color stops
- Angle and shape control
- 8 ready-made presets
- CSS with solid fallback
- Tailwind arbitrary class
Make gradients without code
Gradients add depth to hero sections, buttons and cards. Choose a type, pick colors and drag the stops until it looks right, then copy the code.
Gradient types
| Type | Looks like | CSS function |
|---|---|---|
| Linear | Color changes along a straight line | linear-gradient() |
| Radial | Color spreads out from a center point | radial-gradient() |
| Conic | Color sweeps around a center, like a color wheel | conic-gradient() |
Angle cheat sheet
| Angle | Direction |
|---|---|
| 0° | Bottom to top |
| 90° | Left to right |
| 180° | Top to bottom |
| 135° | Top-left to bottom-right |
Related tools
Box shadow generator, color palette generator and CSS formatter.
How to use the CSS Gradient Generator
- Enter a color code, use the picker, or start from a preset.
- Adjust the options; the preview updates instantly.
- Check the result, including contrast and how it looks in context.
- Copy the CSS, Tailwind or HEX code, or download it.