tailwind-merge
3.7.1 · 19 Nov 2026MIT118.2M / weekRepositorynpmAtom feed
In short
14 fixed3 internal
Release note
Bug Fixes
Fix font sizes without a line-height modifier removing earlier
leading-*classesIn Tailwind CSS v4, an earlier
leading-*class still applies after a font size liketext-lgortext-[1.5rem], sotwMerge('leading-6 text-lg')now keeps both classes. Font sizes with a line-height modifier liketext-lg/7still overrideleading-*.
Fix arbitrary values using
--spacing()being classified as colors instead of lengthsFix
mask-circleandmask-ellipsenot mergingFix
flex-(--var)not merging with other flex classesFix
decoration-(--var)being classified as thickness instead of colorFix arbitrary
line-clampvalues likeline-clamp-[calc(var(--characters)/100)]not mergingFix
place-*classes not overridingcontent-*,items-*,self-*andjustify-*classesFix lengths using the
Qunit not being recognizedFix brackets and other delimiters inside quoted arbitrary values like
data-[label='[']breaking class parsingFix arbitrary values using
contrast-color()ordevice-cmyk()being classified as lengths instead of colorsFix
sr-onlynot overriding the position, size, spacing, overflow and white-space classes it resetsFix
mask-x-*andmask-y-*not overriding the matching edge classes and arbitrary mask stop positions being classified as colorsThis also fixes arbitrary values using
--alpha()or uppercase color functions likeRGB()being classified as lengths instead of colors.
Fix postfix modifiers not being recognized on classes with a leading important modifier like
!text-lg/7
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.