What the angle slider measures
A linear gradient runs along an invisible line through the center of the box, and the angle sets that line's direction. 0deg points straight up, and the number grows clockwise, so the default of 90deg paints from left to right. People coming from design apps or trigonometry often expect 0 to mean "to the right", which is the usual source of gradients that end up rotated by a quarter turn.
The gradient line is also longer than you might guess. CSS sizes it so the corners of the box get exactly the first and last colors, using the formula |width × sin(angle)| + |height × cos(angle)|. For a box 300 pixels wide and 200 tall at 45deg, that is 300 × 0.707 + 200 × 0.707, or about 354 pixels. Because the length depends on the box, the same code looks subtly different on a wide banner and a square card.
Angles are not the only way to specify direction. The keywords "to right" and "to top right" also work in the code you paste, and "to top right" adapts to the box so that the midpoint color runs exactly through the two other corners, something a fixed 45deg only does on a square.
Placing colors with the Stops field
With nothing in Stops, four colors land evenly at 0%, 33.33%, 66.67% and 100%. The default output is:
background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
Type 0%, 30%, 70%, 100% into Stops and each color gets a fixed position:
background: linear-gradient(90deg, #667eea 0%, #764ba2 30%, #f093fb 70%, #f5576c 100%);
Positions pair with colors in order, and anything that is not a number followed by % is skipped, leaving that color to be placed automatically. Giving two neighbouring colors the same position removes the blend between them and draws a hard line. For example, 0%, 50%, 50%, 100% makes a clean split down the middle, and that is the basis of CSS stripes and two-tone backgrounds.
Ellipse or circle
Radial mode radiates outward from the center of the box. Ellipse, the CSS default, stretches to match the box's proportions, so a wide banner gets a wide oval. Circle keeps the rings round whatever the shape, as in this output:
background: radial-gradient(circle, #667eea, #764ba2, #f093fb, #f5576c);
By default the last color reaches the corner farthest from the center, a sizing mode called farthest-corner. To move the center, edit the code by hand: radial-gradient(circle at top left, ...) is a common way to make a soft glow come from one corner.
Why some blends turn grey
Browsers blend colors by default in the sRGB color space, moving each red, green and blue value in a straight line. Between two colors from opposite sides of the wheel, such as blue and yellow, all three channels meet near the middle and the halfway point comes out as a dull grey. Two fixes are available. You can add a third color at the midpoint, which is why Sunset-style gradients often look richer with an extra stop. Or, in current browsers, you can change the blending space in the code:
background: linear-gradient(in oklch, #2563eb, #facc15);
OKLCH interpolates hue and lightness in a way closer to human perception, so the path travels through vivid colors. The generator does not write this syntax for you, but it is a one-word edit after you paste.
Pasting it without breaking your layout
- The tool writes the background shorthand, which resets background-size, background-position and any image set earlier in the rule. If your element already has those, change the property to background-image.
- Gradients are images as far as CSS is concerned, so background-color cannot hold one. Setting a plain background-color alongside is still worthwhile: it shows through in the rare case the gradient fails to apply.
- White text on the lightest part of a gradient may be unreadable even when it looks fine on the darkest part. Check the contrast against both ends.
- For gradient text, add background-clip: text and color: transparent to the same element.
The six presets fill in linear gradients at 90deg and clear any custom stops. Night has three colors and the others have two, so the number of color pickers changes when you apply one.