background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
How to use
Choose Linear, Radial, or Conic
Switch between the three tabs at the top. Linear and conic types show an angle slider from 0 to 360 degrees; radial always draws a circle from the center.
Set your color stops
Each stop has a color picker, a hex field, and a position input in percent. Click + Add color stop for up to six, or Remove to drop one back to a minimum of two.
Copy the CSS
The full background property appears in the code box below the preview. Hit the copy button and paste the declaration straight into your stylesheet.
Why CSS Gradient Generator
- All three modern gradient types in one place.
- Live preview updates as you tweak.
- Outputs standards-compliant CSS.