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.
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.
bg-linear-to-r from-cyan-400 from-0% via-teal-500 via-52% to-slate-900 to-100%Choose between Tailwind v4 linear (bg-linear-*), radial (bg-radial), or conic (bg-conic-*) utilities and set your angle, direction, or center position.
Configure from-*, via-*, and to-* stops using built-in Tailwind palette tokens or arbitrary HEX colors with exact stop percentages.
Test your gradient on a canvas, card UI, or button preview, then copy the Tailwind class list, HTML snippet, or CSS fallback.
Generates modern bg-linear-*, bg-radial, and bg-conic-* utilities with slash-based color space modifiers like /oklch, /oklab, /hsl, and /longer.
Fine-tune from-10%, via-50%, and to-90% positions visually and toggle the middle via stop on or off in a single click.
Switch between full-canvas, card header, and CTA button previews, then export ready-to-paste Tailwind classes, HTML markup, or raw CSS.
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.
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.
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.
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.
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-*.