Latest in branch 1.6
1.6.3
Released 18 Aug 2020
(5 years ago)
SoftwareTailwind CSS
Branch1.6
Initial release1.6.0
28 Jul 2020
(5 years ago)
Latest release1.6.3
18 Aug 2020
(5 years ago)
Support status18 Aug 2020
(Ended 5 years, 8 months ago)
Release noteshttps://github.com/tailwindlabs/tailwindcss/releases/tag/v1.6.3
Source codehttps://github.com/tailwindlabs/tailwindcss/tree/v1.6.3
Downloadhttps://github.com/tailwindlabs/tailwindcss/releases/tag/v1.6.3
Tailwind CSS 1.6 ReleasesView full list

What Is New in Tailwind CSS 1.6

Category Highlights
New Features Animation utilities, prefers-reduced-motion variants, overscroll-behavior utilities, optional input file for CLI

How do I add ready-made animations with Tailwind CSS 1.6?

Tailwind CSS 1.6 ships with an animation core plugin that provides four utility classes out of the box.

  • animate-spin
  • animate-ping
  • animate-pulse
  • animate-bounce

These utilities can be dropped onto any element, for example a loading spinner:

<button type="button" class="bg-indigo-600 ...">
  <svg class="animate-spin h-5 w-5 mr-3 ..." viewBox="0 0 24 24">
    <!-- ... -->
  </svg>
  Processing
</button>

You can also define custom animations and keyframes in tailwind.config.js under the animation and keyframes sections.

How can I respect users' prefers-reduced-motion setting in Tailwind CSS?

Tailwind CSS 1.6 introduces motion-safe and motion-reduce variants that hook into the prefers-reduced-motion media feature.

Use motion-reduce to disable motion for sensitive users, or motion-safe to only enable motion when the user has not opted out.

Example of disabling a transition for reduced-motion users:

<div class="transition duration-150 ease-in-out motion-reduce:transition-none">...</div>

Enable the variants in your config:

// tailwind.config.js
module.exports = {
  variants: {
    translate: ['responsive', 'hover', 'focus', 'motion-safe', 'motion-reduce'],
  },
}

These variants can be combined with responsive and pseudo-class variants for fine-grained control.

What utilities does Tailwind CSS 1.6 provide for controlling overscroll behavior?

Tailwind CSS 1.6 adds utilities for the CSS overscroll-behavior property, letting you prevent scroll chaining in nested scroll containers.

Apply overscroll-y-contain (or the X-axis equivalents) to a scrollable element:

<div class="overscroll-y-contain ...">
  <!-- scrollable content -->
</div>

The utilities are a progressive enhancement; they are not supported in Safari but gracefully degrade.

You can disable the plugin or customize its variants in tailwind.config.js:

// Disable the plugin
module.exports = {
  corePlugins: {
    overscrollBehavior: false,
  },
}

Can I generate Tailwind CSS output without creating a CSS input file?

Yes. The Tailwind CLI now makes the input file argument optional, so you can build directly to a CSS file.

Run the following command and Tailwind will emit the base, components, and utilities layers automatically:

npx tailwindcss build -o compiled.css

This saves you from maintaining a trivial @tailwind import file when you don't need custom CSS.

Frequently Asked Questions

Does Tailwind CSS 1.6 require me to install additional plugins for animation?
No the animation utilities are built into the core plugin and work out of the box.

How do I enable the motion-safe and motion-reduce variants for a utility?
You add them to the variants array in tailwind.config.js, for example translate: ['responsive','hover','motion-safe','motion-reduce'].

Are overscroll-behavior utilities supported in all browsers?
They work in modern browsers but are not supported in Safari, so they act as a progressive enhancement.

What is the exact CLI command to build Tailwind CSS without an input file?
Run npx tailwindcss build -o compiled.css.

Can I customize the default spin animation?
You can extend the animation and keyframes sections in tailwind.config.js, for example animation: { wiggle: 'wiggle 1s ease-in-out infinite' }.

Is it possible to disable the overscroll-behavior plugin entirely?
Yes set corePlugins.overscrollBehavior to false in your tailwind.config.js.

Releases In Branch 1.6

VersionRelease date
1.6.318 Aug 2020
(5 years ago)
1.6.203 Aug 2020
(5 years ago)
1.6.102 Aug 2020
(5 years ago)
1.6.028 Jul 2020
(5 years ago)