CSS Gradient Generator

Build linear or radial gradients and copy the ready-made CSS code.

What is a CSS gradient

A CSS gradient is a smooth transition between two or more colors, rendered directly by the browser with no images needed. It is widely used in section backgrounds, buttons and cards to add visual depth without slowing page load.

Linear vs. radial gradient

A linear gradient (linear-gradient) follows a straight line, with a configurable angle (0° to 360°) — 90° produces a top-to-bottom gradient (default), 0° produces left-to-right. A radial gradient (radial-gradient) starts from a center point and spreads outward in a circle.

Generated syntax

The generated code follows CSS3 standards, e.g.: background: linear-gradient(90deg, #2C65F2, #FF7A3D);. Just copy and paste it into your CSS background property.

Usage tips

Gradients with complementary colors (opposite on the color wheel) tend to have more visual impact; gradients with nearby colors (analogous) create subtler, more professional transitions.

Frequently asked questions

Does the gradient work in all modern browsers?

Yes, linear-gradient and radial-gradient are fully supported in all modern browsers, with no vendor prefixes needed.

How do I use the generated code on my site?

Copy the "background: ..." line and paste it into the CSS property of the element you want, such as a div, section or button.

Can I use more than two colors?

This tool generates two-color gradients, but the resulting CSS code can be edited manually to add more color stops.

What does the angle control in a linear gradient?

It sets the direction of the color transition — 0° is left-to-right, 90° is top-to-bottom, and so on.