← Back to Design

🎨 Gradient Generator

Create Beautiful CSS Gradients with Live Preview

⚙️ Gradient Controls

📤 Export Code

CSS Code
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
Tailwind CSS
bg-gradient-to-br from-purple-500 to-purple-700
SVG Background
<svg>...</svg>

✨ Gradient Presets

📖 How to Use Gradient Generator

Design beautiful linear and radial gradients with multiple color stops, export as CSS, Tailwind, or SVG code:

1 Choose Gradient Type

Select Linear (directional) or Radial (circular from center). Adjust angle slider for linear gradients to control direction (0-360 degrees).

2 Add and Adjust Colors

Click color preview to change color. Drag position sliders to adjust where each color appears (0-100%). Add more stops with "+" button for complex gradients.

3 Use Presets or Customize

Click preset gradients (Purple Haze, Ocean Blue, Sunset) for instant beautiful combinations. Then customize colors and positions to match your needs.

4 Export Code

Copy CSS, Tailwind, or SVG code. CSS works everywhere, Tailwind for Tailwind projects, SVG for scalable graphics. Preview updates in real-time.

❓ Frequently Asked Questions

Linear gradients work great for backgrounds, headers, and directional designs. Radial gradients create spotlight effects, buttons, or circular elements. Linear is more common, radial adds drama and focus.
2-3 colors create clean, professional gradients. 4-5 colors add complexity and vibrancy. More than 5 can look muddy - use sparingly. Start simple, add stops only if needed for specific effects.
135° (diagonal top-left to bottom-right) is most popular - natural, balanced. 90° (horizontal) works for headers. 180° (vertical) for hero sections. Try 45°, 90°, 135°, 180° first before exotic angles.
Modern CSS gradients work on all browsers from IE10+, Chrome 26+, Firefox 16+. For older browsers, provide solid color fallback: background: #color; background: gradient; The first line is fallback.
Copy the gradient CSS, then add: background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; This clips gradient to text shape. Works great for headings!