CSS Linear Gradient Generator
Build CSS gradients visually: linear, radial or conic type, angle slider and up to six color stops with a live full-width preview and copyable code.
Result
This page opens the gradient generator with the linear type already selected. Drag the angle slider to rotate the fade, adjust the color stops, and the full-width preview plus the CSS line update on every input.
linear-gradient() paints colors along a straight line — the most used gradient in CSS by far. 90deg runs left to right, 180deg top to bottom, and any angle in between gives a diagonal; the stop positions in percent decide where each color band starts blending into the next.
When the preview looks right, copy the background line into your stylesheet. If you want a starting point instead of a blank slate, the sunset, ocean and pastel preset pages open this same tool with proven color pairs already loaded.