tailwind-merge
3.7.1 · 19 Nov 2026MIT118.2M / weekRepositorynpmAtom feed
Upgrading tailwind-merge From 0.4.0 to 0.9.0
10 releases in betweenevery note read
- 6
- changes to make
- 0
- advisories fixed
- 12
- new
- 8
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.8.0
- Breaking0.8.0
- Breaking0.8.0
- Breaking0.8.0
- Breaking0.8.0
- Breaking0.8.0
Release by release
- New
Mimic theme from Tailwind config in tailwind-merge config
- New
- Fixed
Fix custom values for list-style-type missing in default config
- Fixed
- Fixed
Fix missing support for custom values in some class groups in default config
- Fixed
- Breaking
This is a big release with breaking changes.
- Breaking
Previously there was a list of prefixes in the tailwind-merge config which was used to match Tailwind prefixes. I removed those and match all prefixes as valid Tailwind prefixes. This is only a breaking change if you use non-Tailwind classes with
:in them which look like Tailwind classes after the prefix. tailwind-merge will treat those as Tailwind classes and resolve conflicts incorrectly. (#50) - Breaking
createTailwindMerge: Doesn't get passed the
getDefaultConfigcallback anymore. You need to call the exported functiongetDefaultConfiginstead to get the default config. (#42) - Breaking
createTailwindMerge: You probably don't need
createTailwindMergeanyway. Use the new and much simpler to useextendTailwindMergeinstead. (#49)
- Breaking
- Fixed
Fix CommonJS imports not working
- Fixed
- New
Allow passing
falsetotwMerge
- New
- New
Allow passing
nullas argument totwMerge#20 - Fixed
Fix merges with important modifier not working when using prefixed classes
- New
- New
Add support for custom classes like
cursor-[grab] - Fixed
Fix incorrect conflicts in Font Variant Numeric classes
- New
1 other line we could not sort, mostly version bumps
- 0.5.0
Make logo in README version-specific
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.