
With Gradient generator, designers and front-end developers can tune an interface before implementation. Create a CSS linear gradient.
Create a CSS linear gradient. Use it free in your browser without creating an account, then review the result before moving to the next step.
The sample uses a 45 degree angle with a very dark blue at the start and a strong green at the end. Once it is generated, compare the line you get with what you had in mind: the angle sets the direction while the colour order decides the shade at each end.
Input
45
#0F172A
#16A34AOutput
background: linear-gradient(45deg, #0F172A, #16A34A);The gradient is generated in your browser. The angle and both colours stay on your device, nothing is transmitted and nothing is kept once you leave the page, so the snippet you copy out is built entirely on your own machine.
Yes. The line follows the standard syntax for a linear gradient and fits into any background declaration. Copy it as it stands and change only the colours if your palette moves on later.
Nudge the angle in small steps and keep the value that puts your first colour at the top of the element. Since the result is checked by reloading the page, one or two attempts are usually enough to land on the direction you want.
This page starts from a beginning colour and an ending colour, so a three-tone blend cannot be set up here directly. You can still generate a first pair and then add the extra stops by hand in your own style sheet.