How to use it
- Choose the gradient type and the number of colors.
- Pick each color and move its position.
- Adjust the angle, then press Copy CSS.
How it works
The tool writes the standard CSS functions linear-gradient(angle, color stop, …), radial-gradient(circle, …) and conic-gradient(from angle, …). Each color stop has a color and a position from 0% to 100%.
Examples
- linear-gradient(135deg, #ff512f 0%, #dd2476 100%) is a diagonal orange-to-pink gradient.
Limitations
- Radial gradients are always circles centred in the box, and stops are always in percentages. For more control, edit the copied CSS.
- Gradients between very different colors can look muddy in the middle; add a third color if so.
References
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.