How to use it
- 1
Choose linear or radial mode.
- 2
Enter two HEX colors and stop positions.
- 3
Copy the generated CSS declaration after checking the preview.
What the tool can do
- Linear gradient with a 0–360 degree angle.
- Radial gradient circle at center for basic UI surfaces.
- Validation for 3/6-digit HEX and 0–100% stop positions.
Common use cases
- Quick background for a hero, card, or CTA.
- Choosing a gradient token before moving it into a design system.
- Checking angle and stop positions without hand-writing CSS.
How it works inside
The preview uses only validated HEX colors and numeric values.
The generator emits plain CSS and does not create images or JavaScript snippets.
Questions and answers
How do I create a gradient and use it on my site?
Choose two colours, a gradient type, and the available direction and position settings. Check the preview and copy the CSS value into the relevant element's styles.
Can I add a third colour?
This generator uses two colours. Edit the copied CSS yourself for a more complex transition and test it in a browser. The preview here shows only the selected colour pair.
