A CSS gradient is the single most efficient way to add visual depth to any website. One line of code replaces a background image, loads instantly, and scales to any screen size. A visual gradient builder lets you design it by eye and copy the CSS — no memorizing syntax.
| Type | CSS Syntax | Visual Effect | Best For |
|---|---|---|---|
| Linear | linear-gradient(direction, color1, color2) | Color flows in a straight line (top→bottom, left→right, diagonal) | Hero sections, buttons, cards, headers |
| Radial | radial-gradient(shape, color1, color2) | Color radiates outward from a center point | Spotlight effects, circular highlights, vignettes |
| Conic | conic-gradient(from angle, color1, color2) | Color sweeps around a center like a clock hand | Pie charts, color wheels, decorative rings |
The CSS Gradient Generator supports all three. Pick the type, set colors, adjust direction and stops, see the preview, copy the code.
| Name | CSS Code | Use Case |
|---|---|---|
| Sunset | linear-gradient(135deg, #f093fb 0%, #f5576c 100%) | Hero banners, CTA sections |
| Ocean Blue | linear-gradient(180deg, #667eea 0%, #764ba2 100%) | Headers, navigation bars |
| Dark Mode | linear-gradient(180deg, #0d1117 0%, #161b22 100%) | Dark theme backgrounds |
| Neon Glow | linear-gradient(90deg, #00f260 0%, #0575e6 100%) | Gaming sites, accent bars |
| Warm Amber | radial-gradient(circle, #f7971e 0%, #ffd200 100%) | Spotlight highlights, badges |
| Soft Pastel | linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) | Light theme cards, soft UI |
| Cool Mint | linear-gradient(to right, #00b09b, #96c93d) | Success states, fresh accents |
| Deep Space | linear-gradient(to bottom, #000428, #004e92) | Full-page backgrounds, overlays |
Open the gradient generator, paste these hex values as starting points, then customize to match your brand.
Two-color gradients are simple. Real-world designs often need three, four, or more stops:
linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%) — warm to cool transitionlinear-gradient(90deg, #f5576c 0%, #f093fb 33%, #667eea 66%, #4facfe 100%)linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%) — text overlay on imagesThe generator handles multi-stop syntax for you. Add as many color stops as you need, position each one, and the CSS is generated automatically.
| Property | Example | What It Controls |
|---|---|---|
| Direction | 135deg, to right, to bottom-left | Angle or keyword for linear flow direction |
| Color stop | #667eea 0% | Color and its position along the gradient |
| Shape (radial) | circle, ellipse | Shape of radial gradient spread |
| Size (radial) | closest-side, farthest-corner | How far radial gradient extends |
| From angle (conic) | from 90deg | Starting angle for conic sweep |
| Repeating | repeating-linear-gradient(...) | Tiles the pattern for stripes |
CSS gradients are powerful, but they have boundaries:
Build CSS gradients visually — pick colors, set direction, copy the code.
Open Gradient Generator