github dcastil/tailwind-merge tailwind-merge@3.7.2

one hour ago

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-lg from removing preceding leading-* 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.

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! ❤️

Don't miss a new tailwind-merge release

NewReleases is sending notifications on new releases.