How to use the gradient generator
- Choose the gradient type.
- Set colors and their positions.
- Adjust the angle and copy the CSS.
Avoiding muddy middles
Colors far apart on the wheel can pass through grey. Add a middle stop in a hue that sits between them. Check text contrast against both the lightest and darkest areas.
Frequently asked questions
Does a gradient need an image file?
No. The browser draws it from the CSS.
What does the angle mean?
0deg points up and 90deg points right. Radial gradients ignore it.
Can stops have hard edges?
Yes. Place two stops at the same position.