Three kinds of gradient
Linear gradients blend along a line, at any angle. Radial gradients spread out from a point, like a glow. Conic gradients sweep around a center, like a color wheel or pie chart. This tool builds all three with draggable stops and gives you copy-ready CSS.
Turn on repeating mode for stripes and patterns.
Working with stops
A stop is a color at a position. Drag it along the bar, or click to add more. Two stops at the same position make a hard edge instead of a blend, which is how you get stripes.
A hint is a different thing: it moves the midpoint between two stops, shifting where the blend feels halfway. Use it to bias a gradient toward one color.
Direction
For a diagonal, use an angle such as 135deg, or keywords like to bottom right. 0deg points up and 90deg points right. Angles are easier to reason about than keywords once you've used them a few times.
Transparent stops
Fading to transparent is common for overlays and image fades. Use the same color at zero opacity, such as rgba(0,0,0,0), rather than the keyword transparent. Older behavior blended toward gray in some browsers, and the explicit form avoids that.
Smooth versus banding
Gradients between close colors can show visible bands on some screens. Adding a touch of noise as an overlay, or more mid stops, hides it. Check on a real display, and not just your own monitor.
Output and Tailwind
Output is standard CSS with no prefixes needed in current browsers. In Tailwind, paste it as an arbitrary value or define it in your theme, since built-in gradient utilities cover only simple linear cases.
Everything stays in your browser.
Three kinds, three jobs
Linear gradients blend along a line and suit backgrounds and buttons. Radial ones spread from a point, good for glows and spotlights. Conic gradients sweep around a center and give you pie charts and color wheels with no images.
Add color stops and drag them to control where each color sits. Two stops at the same position make a hard edge, which is how stripes are made.
Avoiding muddy blends
Blending two saturated colors can leave a gray zone in the middle. Add a third stop that's brighter or pick colors close in hue. Test on different screens, because gradients can band on cheaper displays.
Make sure text on a gradient stays readable at both ends, and not just in the middle.
Smoother gradients
Gradients between two colors can look muddy in the middle, especially across opposite hues. Add a middle stop with a brighter color to keep it clean. Banding appears on large, subtle gradients, and a touch of noise or an extra stop hides it.
Use gradients behind text sparingly, and check contrast at the lightest and darkest point.
For performance, a CSS gradient beats an image every time. It scales to any size and costs no extra request.
Layer gradients with commas for patterns. Stripes, grids and spotlights are only a few lines of CSS.