Design CSS gradients in seconds
This CSS gradient generator lets you build smooth linear and radial gradients visually, without hand-editing values. Choose a type, drag the angle, and add as many color stops as you need — the preview and the ready-to-paste CSS update live with every change. It's perfect for hero sections, buttons, cards, and backgrounds where a flat color feels a little plain.
How to use the gradient generator
- Choose Linear or Radial as the gradient type.
- For linear gradients, drag the Angle slider to set the direction.
- Click a color swatch to change a stop, and edit its position percentage.
- Use Add color stop for more colors, or Randomize for a fresh pair.
- Click Copy CSS and paste the code into your stylesheet.
Linear vs. radial gradients
A linear gradient blends colors along a straight line you rotate with the angle control, while a radial gradient spreads outward from a center point. Both accept the same list of color stops, so you can switch types at any time and keep your palette.
Pair it with your palette
Great gradients start with great colors. Build a matching scheme with the color palette generator, then add depth to your components with the CSS box shadow generator. Everything runs in your browser, so you can experiment freely and privately.