CSS gradient
Drag colour stops and get a CSS background and a Tailwind class.
- Category
- Graphics
- Price
- free
The tool starts in your browser.
Everything is calculated in your browser. Nothing you type is sent to our server.
How to use it in three steps
The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.
Choose the gradient type and angle.
Add and drag colour stops.
Copy the CSS or the Tailwind class.
Eight gradients and the CSS they give
The tool always adds the first colour as a fallback background, and with OKLCH mixing it gives two versions of the gradient: a browser that does not know in oklch keeps the plain one.
linear, 90 degrees, three coloursthe example from the tool's descriptionstops added from the endthe click orderthe first colour at 50%transparency#fff, #000the short formOKLCH mixinga more vivid blendradial from the centrethe angle does not mattera Tailwind classa value in bracketsa colour typed as a worda wrong format8 of 8 cases as expected
Questions
Related tools
The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.
Missing a tool you need?
Tell us what you want to calculate or generate. We will tell you whether a tool is enough or an integration in your system fits better.