Generate linear, radial, and conic CSS gradients visually. Add unlimited color stops, adjust angles, use presets, copy ready CSS.
A gradient is a list of colour stops and a direction, and the CSS for it is short enough to write by hand and fiddly enough that nobody wants to. The CSS Gradient Generator gives you a live preview, draggable stop positions, and the exact declaration to paste, updating on every change rather than behind a build button.
Three gradient types are available. linear takes an angle in degrees, where 0 runs bottom to top and 90 runs left to right. radial spreads from the centre outward and ignores the angle entirely, which is why the slider disappears when you select it. conic sweeps around the centre and uses the angle as its starting point, which is what makes pie charts and colour wheels possible in pure CSS.
Six presets sit above the controls, each rendered in its own gradient so the button is the swatch. Midnight is the one worth opening: it carries 3 stops rather than 2, with the middle one at 50%, which is how you build a gradient that holds a colour before moving on.
linear-gradient(...) function to drop into an existing declaration, or Copy Full CSS for a ready-made block.-webkit-background line, which is not a real property and is ignored by every browser. The background and background-image lines around it are the ones doing the work.Presets
Color Stops
Generated CSS
background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
-webkit-background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
background-image: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);