tailwind-merge
3.7.1 · 19 Nov 2026MIT118.2M / weekRepositorynpmAtom feed
3.7.1 is the newest release of 3.x.
In short
10 breaking3 new1 fixed1 internal
- Breaking
All breaking changes are related to the Tailwind CSS v4 support.
- Breaking
Dropping support for Tailwind CSS v3 in favor of support for Tailwind CSS v4
- Breaking
Theme scales keys changed and now match Tailwind CSS v4 theme variable namespace exactly
- Breaking
isLengthvalidator was removed and split into separate validatorsisNumberandisFraction - Breaking
Prefix defined in config shouldn't include combining
-character anymore - Breaking
Tailwind CSS v3 prefix position in class not supported anymore in favor of Tailwind CSS v4 position
- Breaking
Custom separators are no longer supported
- Breaking
New mandatory
orderSensitiveModifiersproperty in config when usingcreateTailwindMerge
Release note
Tailwind CSS v4 is here and it's time to upgrade tailwind-merge to support it. tailwind-merge v3.0.0 is more accurate than ever and follows the Tailwind CSS spec more closely than in v2. That is thanks to Tailwind CSS v4 being more consistent than ever.
This release drops support for Tailwind CSS v3 and in turn adds support for Tailwind CSS v4. That means you should upgrade to Tailwind CSS v4 and tailwind-merge v3 together. All breaking changes are related to the Tailwind CSS v4 support.
Check out the migration guide and if you have any questions, feel free to create an issue.
Breaking Changes
- Breaking
Dropping support for Tailwind CSS v3 in favor of support for Tailwind CSS v4
- Breaking
Theme scales keys changed and now match Tailwind CSS v4 theme variable namespace exactly
- Breaking
isLengthvalidator was removed and split into separate validatorsisNumberandisFraction - Breaking
Prefix defined in config shouldn't include combining
-character anymore - Breaking
Tailwind CSS v3 prefix position in class not supported anymore in favor of Tailwind CSS v4 position
- Breaking
Custom separators are no longer supported
- Breaking
New mandatory
orderSensitiveModifiersproperty in config when usingcreateTailwindMerge - Breaking
DefaultThemeGroupIdstype union consists of different string literals than before - Breaking
Classes removed in Tailwind CSS v4 are not supported by tailwind-merge anymore
New Features
Support for new important modifier position at the end of class
Support for arbitrary CSS variable syntax
There are a bunch of new validators used by tailwind-merge, primarily for new Tailwind CSS v4 features like arbitrary CSS variables
Bug Fixes
Previously some order-sensitive modifiers like
before:were treated as not order-sensitive. This is now fixed
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.