devpocket.dev

CSS Gradient Generator

Design linear, radial, conic, and repeating gradients with CSS, Tailwind, and SVG output.

Runs locally
Loading tool…

How to use

Choose Linear, Radial, or Conic, then enable repeating mode when needed. Set the direction, shape, size, or origin and edit each color stop and percentage. Reorder stops with the arrow buttons or start from a preset. Select a color-interpolation space only when the target browsers support it; the CSS output keeps a standard fallback first. Copy CSS, a Tailwind arbitrary-value class, Tailwind v4 utilities when expressible, or the linear SVG fallback.

FAQ

How do I create a repeating CSS gradient?

Enable Repeating, then place the last stop before 100%. The browser repeats that stop range across the remaining background.

Why does the CSS output include multiple background declarations?

The solid color and standard gradient are fallbacks. Browsers that support the selected interpolation space use the final declaration.

When are Tailwind v4 gradient utilities available?

They are emitted for non-repeating gradients with two or three stops when Tailwind can express the selected type, settings and interpolation space. The arbitrary-value class remains available for every gradient.

Related tools