Pinatool

Tailwind Gradient Generator

Design modern linear, radial, and conic gradients with instant Tailwind CSS v4 utility classes. Customize theme tokens, custom HEX stops, exact stop percentages, and interpolation modifiers.

Tailwind CSS v4 Live Preview

Linear · Gradient (Tailwind v4)3 stops (from, via, to)

Tailwind Stops

fromcyan-400
%
viateal-500
%
toslate-900
%

Gradient Controls

Type
Direction
Tailwind v4

Tailwind v4 Classes

bg-linear-to-r from-cyan-400 from-0% via-teal-500 via-52% to-slate-900 to-100%

How It Works

1

Select Gradient Style & Direction

Choose between Tailwind v4 linear (bg-linear-*), radial (bg-radial), or conic (bg-conic-*) utilities and set your angle, direction, or center position.

2

Pick Theme Tokens or Custom HEX

Configure from-*, via-*, and to-* stops using built-in Tailwind palette tokens or arbitrary HEX colors with exact stop percentages.

3

Preview & Copy Utility Code

Test your gradient on a canvas, card UI, or button preview, then copy the Tailwind class list, HTML snippet, or CSS fallback.

Tailwind Gradient Generator Key Features

Tailwind CSS v4 Syntax

Generates modern bg-linear-*, bg-radial, and bg-conic-* utilities with slash-based color space modifiers like /oklch, /oklab, /hsl, and /longer.

Exact Stop Percentages

Fine-tune from-10%, via-50%, and to-90% positions visually and toggle the middle via stop on or off in a single click.

Live UI Previews & CSS Export

Switch between full-canvas, card header, and CTA button previews, then export ready-to-paste Tailwind classes, HTML markup, or raw CSS.

Frequently Asked Questions

Which Tailwind CSS version does this generator support?

This generator produces modern Tailwind CSS v4 utility classes, including bg-linear-*, bg-radial, bg-conic-*, exact stop percentages (e.g. from-0%, via-50%, to-100%), and color interpolation modifiers.

How do arbitrary colors work in Tailwind CSS?

When you pick a custom color outside the built-in Tailwind palette, the generator formats it using bracket notation (such as from-[#22d3ee]). Tailwind compiles this syntax directly into the matching CSS color stop.

What are Tailwind v4 interpolation modifiers?

Tailwind CSS v4 supports slash-based interpolation modifiers on gradient utilities (such as bg-linear-to-r/oklch, bg-linear-to-r/hsl, or bg-linear-to-r/longer). While Tailwind defaults to OKLab for smooth transitions, you can specify another color space or hue path directly in the class name.

Can I create a simple two-stop gradient without a middle color?

Yes. Remove the via stop in the stops manager to generate a clean two-stop gradient using only from-* and to-* utilities, or add it back anytime.

How do radial and conic center positions work in Tailwind v4?

When a radial gradient is centered at 50% horizontal and 50% vertical, Tailwind uses the concise bg-radial utility. Adjusting either axis generates an arbitrary center position like bg-radial-[at_25%_75%], while conic gradients also support custom start angles with bg-conic-*.