Packages

tailwindcss

4.3.5 · 6 Nov 2026MIT191M / weekRepositoryHomepagenpmAtom feed

Your version

3.1.0

9 Jun 2022Where it was published

3.4.19 is the newest release of 3.x.

In short

17 new22 fixed2 changed

Release note

We just released Tailwind CSS v3.1 — the first new feature release since v3.0 came out last year!

Read the announcement post for all the details, and watch the YouTube video for a tour of some of the highlights.


Added

  • Support PostCSS Document nodes

  • Add text-start and text-end utilities

  • Support customizing class name when using darkMode: 'class'

  • Add --poll option to the CLI

  • Add new border-spacing utilities

  • Add enabled variant

  • Add TypeScript types for the tailwind.config.js file

  • Add backdrop variant (#7924, #8526)

  • Add grid-flow-dense utility

  • Add mix-blend-plus-lighter utility

  • Add arbitrary variants

  • Add experimental matchVariant API (#8310, 34fd0fb8)

  • Add prefers-contrast media query variants

  • Add opacity support when referencing colors with theme function

  • Add postcss-import support to the CLI

  • Add optional variant

  • Add <alpha-value> placeholder support for custom colors

Fixed

  • Types: Allow for arbitrary theme values (for 3rd party plugins)

  • Don’t split vars with numbers in them inside arbitrary values

  • Require matching prefix when detecting negatives

  • Handle duplicate At Rules without children

  • Allow arbitrary values with commas in @apply

  • Fix intellisense for plugins with multiple @apply rules

  • Improve type detection for arbitrary color values

  • Support PostCSS config options in config file in CLI

  • Remove default [hidden] style in preflight

  • Only check selectors containing base apply candidates for circular dependencies

  • Rewrite default class extractor

  • Move important selector to the front when @apply-ing selector-modifying variants in custom utilities

  • Error when registering an invalid custom variant

  • Create tailwind.config.cjs file in ESM package when running init

  • Fix matchVariants that use at-rules and placeholders

  • Improve types of the tailwindcss/plugin

  • Allow returning parallel variants from addVariant or matchVariant callback functions

  • Try using local postcss installation first in the CLI

  • Allow default ring color to be a function

  • Don't inherit to value from parent gradients

  • Remove process dependency from log functions

  • Ensure we can use @import 'tailwindcss/...' without node_modules

Changed

  • Only apply hover styles when supported (future)

  • Respect default ring color opacity (future) (#8448, 3f4005e)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.