Drag color stops, set the angle, watch the preview update live. Copy production-ready CSS in one click — supports all modern browsers.
background-color fallback.Linear, radial, and conic — switch with one click and the editor adapts to each.
See every change in real time. No render cycles, no surprise.
Copy clean CSS that works in every modern browser. Includes syntax for Tailwind arbitrary values.
Linear, radial, or conic — each has its own controls (angle vs shape vs sweep).
Up to 5 stops. Click any color to change it, drag the slider to set its position.
Drag the angle slider for linear, pick a shape for radial, or just use a preset.
One click and it's on your clipboard, ready to paste into your stylesheet.
Gradients went from "nice-to-have" to "table-stakes" the moment Stripe, Notion, and Linear made them central to their identities. Done well, a gradient adds depth, motion, and warmth that flat colors can't touch — at zero performance cost. Done poorly, gradients look like 2008 web design or a slot machine. This guide covers the whole spectrum.
A CSS gradient is a smooth color transition rendered by the browser engine. No image file, no HTTP request, no bandwidth. They scale to any size without pixelation, animate cheaply, and respect opacity, blend modes, and CSS variables. Three types exist: linear (straight-line transitions), radial (transitions outward from a center point), and conic (transitions sweeping around a center, like a clock hand).
Linear gradients are the workhorse — 95% of brand gradients are linear at 135° (top-left to bottom-right). They feel directional and dynamic without being flashy.
Radial gradients create focus. Use them when you want a single point of light — a logo, a CTA, a hero illustration. They mimic real-world lighting.
Conic gradients shine for data visualization (pie charts, progress rings) and bold abstract art. They're rarer in production UI, which makes them stand out when used right.
Pick colors that share a hue family. Two colors close on the color wheel produce smooth gradients. Two opposite colors produce muddy "midpoint" greys where they meet. If you must use opposites, add a third color in between to mask the muddy zone.
Watch luminance, not just hue. A gradient from a dark blue to a light yellow will pass through grey in the middle. Keep the lightness of your stops similar (or transition smoothly through it) for clean blends.
Use gradients on surfaces, not text. Gradient text is a fad that hurts readability. Use it for one or two oversized headlines max — never body copy.
Add subtle noise. A 1-2% noise overlay (a tiny tiled PNG) eliminates banding in low-luminance gradients. Ship the noise as a base64 data URI for zero extra requests.
background-color first.Animate gradients with background-size: 200% 200% + a @keyframes shifting background-position. Smooth, GPU-accelerated, and far cheaper than animating colors directly.
Combine gradients with mix-blend-mode: overlay on top of imagery — instant duotone effect, popular in editorial design.
Use CSS variables for gradient stops: background: linear-gradient(135deg, var(--brand), var(--accent)). When you swap themes, every gradient updates automatically.
For dark mode, don't just darken your gradient — re-balance the luminance. A gradient that pops in light mode often looks dingy in dark mode without rebalancing.
A gradient should be a token, not a one-off. Define it once in your design tokens (alongside colors, spacing, typography), reference it across components, and you guarantee consistency. Our web design service builds gradient systems with light/dark variants, animation guidelines, and accessibility baked in.
Read more: design system 101, CSS performance tips, dark mode design. Pair this with our color palette generator, favicon generator, and QR code generator.
A smooth color transition rendered by the browser without any image file. It scales infinitely, loads instantly, and uses zero bandwidth.
Linear flows in a straight line (you set the angle). Radial radiates from a center point outward. Conic sweeps around a center point like a clock — useful for pie charts and color wheels.
Linear and radial have ~99% support. Conic is supported in Chrome 69+, Safari 12.1+, Firefox 83+. Provide a solid background-color fallback.
Two for clean and professional. Three for depth. Four-to-five for rich mesh-like effects but only if colors harmonize.
Yes — paste the gradient into Tailwind's bg-[gradient(...)] arbitrary value syntax, or define it in tailwind.config.js.
Banding happens when stops are too similar in brightness. Increase contrast or add a tiny noise overlay PNG to break up the bands.
Free 30-minute consultation — we'll review your site live and pinpoint the design issues hurting conversion.
Book your free consultationNo credit card. No commitment. Just real advice.