Ad · 728x90

CSS Gradient Generator

Generate CSS linear, radial, and conic gradients visually. Copy the ready-to-use CSS code for any gradient with multiple color stops.

CSS Gradient Generator

Color Stops

Preset Gradients

Ad · 336x280

CSS Gradients: Linear, Radial, and Conic

CSS gradients let you create smooth color transitions without images — they're performant, resolution-independent, and fully customizable with CSS alone. Modern browsers support three types: linear-gradient, radial-gradient, and conic-gradient.

CSS Gradient Syntax

  • Linear: background: linear-gradient(direction, color1 pos%, color2 pos%)
  • Radial: background: radial-gradient(shape, color1 pos%, color2 pos%)
  • Conic: background: conic-gradient(color1 deg, color2 deg)

Direction Values

  • Keyword: to right, to bottom, to top, to bottom right (diagonal)
  • Angle: 0deg = upward, 90deg = rightward, 180deg = downward, 270deg = leftward
  • Example: linear-gradient(135deg, #667eea, #764ba2)

Multiple Color Stops

Add as many colors as you want: linear-gradient(to right, red 0%, yellow 50%, green 100%). Without position values, stops are evenly distributed. Add percentage positions to control where each color sits in the gradient.

Frequently Asked Questions