Visually build CSS gradients. Drag the angle, tweak color stops, toggle between linear and radial. Copy the CSS in one click.
linear-gradient(direction, color-stop1, color-stop2, ...) —creates a gradient that transitions along a straight line. The direction can be an angle (e.g., 135deg) or keyword (to right, to bottom left).
radial-gradient(shape, color-stop1, ...) —creates a circular or elliptical gradient radiating from a center point. Default is ellipse at center.
Color stops can include an optional percentage after the color to control where the transition happens. Example: linear-gradient(135deg, #667eea 0%, #764ba2 100%). Modern CSS also supports conic-gradient and repeating-linear-gradient.
Why gradients beat background images. A linear-gradient CSS rule is a few dozen bytes of text. An equivalent PNG/SVG background image is kilobytes, requires an HTTP request, and doesn't scale cleanly across screen sizes. Gradients are resolution-independent — they render at the device's native pixel density with no blur or artifacting. They animate smoothly with CSS transitions (changing the gradient angle or color stop positions), which would require JavaScript canvas work with images. And they compose with other CSS backgrounds via the layered background property: you can stack a gradient over a background-image for a tint effect. For hero sections, button hover states, and card backgrounds, a well-tuned CSS gradient is always the faster, lighter choice compared to serving image assets.
Conic gradients for charts and spinners. conic-gradient() rotates color stops around a center point like slices of a pie. This is the CSS-native way to build: pie/donut charts (one div, one conic-gradient, no chart library), circular progress indicators, color wheels, and radar sweep animations. Combined with CSS custom properties (@property) for animation, you can smoothly transition conic gradient angles to create a spinning loader entirely in CSS — no JavaScript, no canvas, just declarative styling. This pattern is increasingly replacing GIF spinners on modern sites because CSS animations run on the GPU compositor thread and don't block the main thread.
Gradient text — background-clip trick. Apply a gradient to text with three CSS rules: background: linear-gradient(...); background-clip: text; -webkit-text-fill-color: transparent;. The gradient fills the text shape instead of a box. This works for headings, logos, and icon fonts. Caveats: it requires the -webkit- prefix (all modern browsers support it, but it's non-standard), it doesn't work with text-shadow simultaneously in all browsers, and it's not accessible if used as the only visual distinction for links (the gradient might have low contrast). Use it for decorative headings where the plain-text fallback is still readable.
See also: Color Converter · Box Shadow Generator · Border Radius