CSS Gradient Generator

Design linear, radial, and conic CSS gradients visually and export ready-to-use code.

Linear
Radial
Conic
90°

Color Stops

%
%

Preview

CSS Code

✓ Copied to clipboard!

How It Works

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.

Frequently Asked Questions

How do I create a CSS linear 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.

What is the difference between linear, radial, and conic gradients?

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.

How do I add color stops at specific positions in a gradient?

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.

Related Tools

Free tools by TUNA — energy supply from vetted manufacturers