Bug Fixes
- Restore font sizes overriding preceding
leading-*classes until the next major version by @dcastil in #769- v3.7.1 stopped font sizes without a line-height modifier like
text-lgfrom removing precedingleading-*classes, which matches Tailwind CSS v4 but changed merge results that projects relied on in a patch release.twMerge('text-xs leading-none text-sm')returns'text-sm'again, like in v3.7.0. - You can opt into the Tailwind CSS v4 behavior from v3.7.1 with a config override, see Font sizes and
leading-*classes. The next major version will make it the default.
- v3.7.1 stopped font sizes without a line-height modifier like
Full Changelog: v3.7.1...v3.7.2
Thanks to @manavm1990, @roboflow, @syntaxfm, @getsentry, @codecov, @block, @openclaw, @sourcegraph, @jbisasky, @FrontendMasters and more via @thnxdev for sponsoring tailwind-merge! ❤️