linear-gradient(135deg, #7C3AED, #06B6D4)radial-gradient(circle, #7C3AED, #06B6D4)conic-gradient(#7C3AED, #06B6D4, #F59E0B)linear-gradient(90deg, #7C3AED, #EC4899, #F59E0B)linear-gradient(rgba(124,58,237,0), rgba(124,58,237,1))repeating-linear-gradient(45deg, ...)| Setting | What It Controls | Options |
|---|---|---|
| Gradient Type | The shape of the gradient flow | Linear, Radial, Conic |
| Angle / Direction | Which direction the gradient flows (linear only) | 0°–360° or To Top, Right, Bottom, Left |
| Color Stops | Colors and their positions along the gradient | Unlimited stops, 0%–100% positions |
| Opacity | Transparency of each color stop | 0% (transparent) – 100% (solid) |
| Radial Shape | Shape of radial gradient center (radial only) | Circle or Ellipse |
| Radial Position | Where the radial gradient originates from | Center, Top-left, Custom % position |
Select Linear (flows in a direction), Radial (radiates from a center point), or Conic (rotates around a center) from the type selector.
Click color stop markers on the gradient bar to set colors. Drag them to change position. Add more stops with the + button for multi-color gradients.
Use the angle wheel or preset direction buttons (To Top, To Right, etc.) to control which way the gradient flows.
The live CSS code updates as you edit. Click Copy CSS to grab the background or background-image property code, ready to paste into your stylesheet.
Create vibrant gradient backgrounds for website hero sections and landing pages.
Apply gradient fills to call-to-action buttons for a modern, premium appearance.
Use gradients for navigation bars, card backgrounds, and splash screens in mobile apps.
Apply transparent-to-color gradients over photos for text readability in banners.
Add depth and light effects to digital illustrations using custom gradient fills.
Use gradients in bar charts, donut charts, and progress indicators for visual polish.
A 135° diagonal linear gradient feels dynamic and modern. 180° (top to bottom) feels calm and structured. Try different angles for different moods.
Add rgba() stops with 0 opacity to create fade-in/fade-out effects over images. Use a transparent stop at 0% and a solid color at 100% for a classic photo overlay.
Gradients between analogous colors (neighbors on the color wheel) look most natural. Complementary color gradients can produce muddy middle tones — add a white stop in the middle to fix this.
Always use background-image (not background-color) for gradients. Or use the shorthand background property. Gradients cannot be set with background-color.