90°
Color Stops
CSS Output
How to use the CSS Gradient Generator
- Choose Linear or Radial gradient type.
- For linear, drag the Direction slider to set the angle.
- Pick colors for each stop. Click + Add Stop to add more. The preview and CSS update instantly.
- Click Copy to copy the ready-to-use CSS
backgroundproperty.
CSS gradient syntax
Linear gradients use linear-gradient(angle, color1, color2, …). The angle can be in degrees (90deg) or as a direction keyword (to right). Radial gradients use radial-gradient(shape, color1, color2, …). Both can have any number of color stops, optionally with explicit positions (e.g. red 20%, blue 80%).