--- title: "CSS Gradient Generator" description: "Free CSS gradient generator. Compose linear, radial, and conic gradients with multiple color stops, tweak the angle live, and copy the background-image CSS." url: https://devzap.io/tools/css-gradient-generator/ category: css status: live pricing: Free --- # CSS Gradient Generator > Build linear, radial, and conic gradients with a live preview. Copy production-ready CSS. Free CSS gradient generator. Compose linear, radial, and conic gradients with multiple color stops, tweak the angle live, and copy the background-image CSS. ## How to use 1. **Choose a gradient type** — Pick linear, radial, or conic. Linear is most common for backgrounds; radial works for spotlights; conic is great for unique decorative elements. 2. **Set the angle and stops** — Drag the angle slider for linear and conic gradients. Edit each stop's color and position to shape the transition. 3. **Copy the output** — Use 'Copy value' for just the gradient function, or 'Copy declaration' for a ready-to-paste background-image rule. ## FAQ ### What's the difference between linear, radial, and conic? Linear gradients fade along a straight line at a chosen angle. Radial gradients fade outward from a center point in concentric rings. Conic gradients sweep around a center point like a clock hand — useful for pie-chart effects, color wheels, and rainbow rings. ### Why do my gradients look banded? Banding happens when there's not enough color resolution between stops, especially in 8-bit color spaces. Fix it by adding intermediate stops or by using a wider gamut (OKLCH-based gradients via `color-mix`) on browsers that support it. ### How do I match the gradient on a Figma design? Figma exports gradients as CSS-compatible strings. Paste those values into the stop colors here and adjust the angle. The preview should match closely; small differences may be due to color-space conversion (Figma uses Display P3 by default). ### Can I add more than 6 stops? The tool caps at 6 stops to keep the UI usable. If you need more, copy the declaration and add stops manually — CSS supports as many as you want. ## Background ## Why a gradient generator Hand-writing gradients in CSS is tedious because the result lives entirely in your imagination until you reload the browser. A live preview cuts the iteration time from "type, save, reload, eh, undo" to "drag the slider until it looks right." This tool stays opinionated and small: linear, radial, conic. No skewed text overlays, no weird mesh effects. Just the three primitives every UI uses, tuned so you can ship the result. ## Linear, radial, conic — when to use each - **Linear** is the workhorse. Headers, cards, hero backgrounds, button states. Most UIs use linear gradients exclusively. - **Radial** creates depth and focus. Use it for spotlights, vignette effects, attention-grabbing CTAs. - **Conic** is unique — it sweeps around a center point. Use it for color wheels, ring charts, decorative accents. ## Use cases - **Hero backgrounds**: pair the brand accent with a darker variant for depth. - **Card states**: subtle gradients differentiate active/hovered cards from idle ones. - **Empty states**: a soft radial gradient draws the eye toward an action. - **Loading shimmer**: a moving linear gradient produces the classic skeleton-loading effect.