easing gradients for Tailwind CSS

Linear gradients produce hard color transitions. Fix them with easing functions, directly in your utility classes.

See the difference

Drag the slider to compare linear vs eased gradients.

Linear (Tailwind standard)
Eased (tw-easing-gradients)
Banding
tailwind
tw-easing-gradients

Built for modern CSS

Everything you need for production-grade eased gradients.

4 Easing Functions

ease, ease-in, ease-out, ease-in-out. Matching CSS timing functions you already know.

8 Directions

All cardinal and diagonal directions. Use bg-ease-to-r, bg-ease-to-tl, and more.

OKLCH Color Space

Colors blend naturally without getting gray or muddy in the middle.

Zero Runtime JS

Pure CSS output. No JavaScript, no hydration cost, no bundle size impact.

from-*/to-* Support

Works with Tailwind's native gradient color utilities. Use any color value.

Pure CSS

Generates standard CSS gradients with multiple color stops for smooth easing.

Drop-in simple

Replace bg-linear-to-r with bg-ease-in-out-to-r . Done.

index.html
<div class="bg-ease-in-out-to-r from-indigo-500 to-cyan-500">
  <!-- Smooth gradient -->
</div>
Preview

Easing gallery

Compare all four easing functions side by side.

linear (Tailwind)
ease
ease-in
ease-out
ease-in-out
tw-easing-gradients

Open Source ยท GitHub