Design linear, radial, and conic CSS gradients visually and export ready-to-use code.
✓ Copied to clipboard!
CSS gradients are generated using linear-gradient(), radial-gradient(), or conic-gradient() functions. For linear gradients, the angle determines the direction of color transition (0deg = bottom to top, 90deg = left to right). Radial gradients expand outward from a defined origin point using either circular or elliptical shapes. Conic gradients sweep clockwise from a starting angle around a center position. Each color stop specifies a color at a specific percentage position (0–100%), and the browser smoothly interpolates between them to produce the final gradient.
Use the CSS linear-gradient() function with a direction (angle or keyword like 'to right') and two or more color stops. For example: background: linear-gradient(90deg, #ff0000, #0000ff); creates a horizontal gradient from red to blue.
Linear gradients transition colors along a straight line. Radial gradients transition colors outward from a central point in circular or elliptical shapes. Conic gradients transition colors around a center point in a circular sweep, like a clock face.
Add a percentage value after each color in your gradient declaration. For example: linear-gradient(to right, red 0%, yellow 50%, blue 100%). This places red at the start, yellow in the middle, and blue at the end of the gradient.