Developer Tools
CSS Gradient Generator
Build a CSS linear gradient from a direction and two colors.
Your input is processed in this browser and is not sent to our server.
How to Use CSS Gradient
- Choose a direction from 0 to 360 degrees.
- Select the start and end colors.
- Select Generate CSS and copy the linear-gradient declaration.
Example
Input
90 degrees, #2563eb to #7c3aed
Result
background: linear-gradient(90deg, #2563eb, #7c3aed);Common Errors & Troubleshooting
- The angle must be a whole number between 0 and 360.
- The generator creates a two-color linear gradient; it does not configure multiple color stops or radial gradients.
Frequently Asked Questions
Can I add more than two color stops?
No. The current controls generate a linear gradient with two colors.
Does the tool apply the CSS to my site?
No. It displays a declaration for you to copy into your own stylesheet.