Three kinds of gradient
A linear gradient changes colour along a straight line, and is the one behind most page backgrounds, buttons and banners. A radial gradient starts at a centre point and spreads outward, as a circle or an ellipse: good for spotlights, glows and soft vignettes. A conic gradient sweeps around a centre point instead of outward from it, the way colours are laid out on a colour wheel or a pie chart. Switch between them and the same colours are redrawn, so it’s quick to see which suits what you’re making.
Angles and directions
A linear gradient’s angle says which way the colour travels. At 0deg it runs upward, so the first colour is at the bottom and the last at the top; 90deg runs left to right, 180deg top to bottom, 270deg right to left, and everything in between rotates clockwise. A conic gradient uses the angle differently: it’s the point where the sweep begins, with 0deg at twelve o’clock, and the colours then move clockwise around the centre. For radial and conic gradients the centre is set from a grid of nine positions.
Colour stops
Each colour in a gradient is a stop, with a position between 0% and 100% along the gradient. The browser blends smoothly between neighbouring stops. Enter them in any order and the tool writes them sorted by position. The Add a colour button puts a new stop in the widest gap, coloured halfway between the two stops either side of it, so you can refine a gradient without losing its shape. Two stops at the same position make a hard edge with no blend between them: the way to draw stripes, or to split a background into two flat halves.
Choosing a colour blend
Left alone, CSS blends two colours by averaging their red, green and blue values. That works well for colours that are near each other, and badly for ones that aren’t: the halfway point between blue and yellow in RGB is exactly (128, 128, 128), a flat grey, which is why some gradients seem to go dull in the middle. The OKLab and OKLCH options blend in a colour space designed around perception instead. OKLab keeps the change in lightness smooth. OKLCH moves around the colour wheel rather than cutting straight across it, which usually keeps the middle colours saturated. When you choose one, the tool writes the plain version first and the blended one after it, so any browser that doesn’t understand the newer syntax falls back to the plain line.
Fading to transparent
Colours accept eight-digit hex codes, where the last two digits set opacity, so a stop can be fully or partly see-through. Fading a colour to the same colour at zero opacity is the cleanest way to make an element dissolve into whatever is behind it, and the preview draws a checkerboard underneath so you can see exactly which parts are transparent.
Using the CSS
The code is a background declaration, so it can go on any element. Add background-size or background-repeat if you want the gradient to tile, and background-clip: text with a transparent text colour to fill lettering with it. Because the colour under a piece of text varies across a gradient, check contrast at the lightest and darkest points rather than in the middle.
Nothing leaves your browser
There’s no server involved. The gradient is drawn by your browser and the code is assembled in the page as you edit, so nothing you make is sent, stored or logged.