CSS Gradient Generator
Build a linear or radial gradient and copy the CSS.
Settings
Preview
About CSS Gradient Generator
Pick two colors, adjust the angle or shape, and get ready-to-paste CSS for a linear or radial gradient with a live preview.
Two colors, two gradient types
Choose a linear gradient (with an adjustable angle) or a radial gradient, built from exactly two colors. The live preview updates as you adjust either color or the angle.
Plain CSS output
The output is a single, ready-to-paste CSS `background` declaration — plain CSS, not a Tailwind or utility-class output.
How to use it
Pick your two colors, choose linear or radial, adjust the angle if using linear, and copy the generated CSS from the box below the preview.
Use cases
Build a two-color gradient background for a hero section or button. Quickly preview how a color pair looks as a gradient before committing to it. Get the exact CSS syntax right without looking up gradient function syntax.
Limitations
Supports exactly two colors — there's no way to add a third color stop. Output is plain CSS only; it doesn't generate a Tailwind or other utility-class equivalent.
Can I add a third color to the gradient?
No — this tool works with exactly two colors. For a multi-stop gradient, you'd need to add further color stops to the generated CSS yourself.
Does this generate Tailwind classes?
No — the output is a plain CSS `background` declaration, not Tailwind utility classes.
Is this actually free?
Yes.