Repository navigation
Releases
tailwind-merge@3.7.1
Bug Fixes
- Fix font sizes without a line-height modifier removing earlier
leading-*classes by @dcastil in #761- In 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-*. - Thanks to @chatman-media for finding this for arbitrary font sizes in #681.
- In Tailwind CSS v4, an earlier
- Fix arbitrary values using
--spacing()being classified as colors instead of lengths by @dcastil in #758 - Fix
mask-circleandmask-ellipsenot merging by @0z5a in #756 - Fix
flex-(--var)not merging with other flex classes by @asssslay in #751 - Fix
decoration-(--var)being classified as thickness instead of color by @asssslay in #753 - Fix arbitrary
line-clampvalues likeline-clamp-[calc(var(--characters)/100)]not merging by @asssslay in #752 - Fix
place-*classes not overridingcontent-*,items-*,self-*andjustify-*classes by @mkantautas in #731 - Fix lengths using the
Qunit not being recognized by @Marve10s in #727 - Fix brackets and other delimiters inside quoted arbitrary values like
data-[label='[']breaking class parsing by @Don-Yin in #730 - Fix arbitrary values using
contrast-color()ordevice-cmyk()being classified as lengths instead of colors by @Don-Yin in #729 - Fix
sr-onlynot overriding the position, size, spacing, overflow and white-space classes it resets by @kory-kaai in #726 - Fix
mask-x-*andmask-y-*not overriding the matching edge classes and arbitrary mask stop positions being classified as colors by @Nelmad in #748- This also fixes arbitrary values using
--alpha()or uppercase color functions likeRGB()being classified as lengths instead of colors.
- This also fixes arbitrary values using
- Fix postfix modifiers not being recognized on classes with a leading important modifier like
!text-lg/7by @beduldul in #721
Documentation
- Explain how classes are matched to class groups and how to use validators by @itsthilinar in #750
- Show how to enforce importing
twMergefrom one place with ESLint by @oyobbeb in #738 - Recommend importing
twMergefrom one project-owned file by @dcastil in b53ceaf and 7fcb814
Full Changelog: v3.7.0...v3.7.1
Thanks to @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph, @jbisasky, @FrontendMasters and more via @thnxdev for sponsoring tailwind-merge! ❤️
v2.6.2
Other
- Publish 2.x releases with provenance by @dcastil in #757
- v2.6.0 and v2.6.1 were published without npm provenance attestations, which pnpm's
trustPolicy: no-downgradereports as a possible package takeover (#668, #720). This release contains no code changes. It is published from CI with provenance again, so installs oftailwind-merge@^2resolve to an attested version.
- v2.6.0 and v2.6.1 were published without npm provenance attestations, which pnpm's
Full Changelog: v2.6.1...v2.6.2
Thanks to @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph, @jbisasky, @FrontendMasters and more via @thnxdev for sponsoring tailwind-merge! ❤️
tailwind-merge@3.7.0
New Features
- Prepare some upcoming changes by @dcastil in #713
- Theme getters returned by
fromThemenow expose the theme key they read as athemeKeyproperty, so tooling can identify the referenced theme scale without calling the getter. - Release tags now include the package name, starting with
tailwind-merge@3.7.0.
- Theme getters returned by
Bug Fixes
- Fix arbitrary values using
color()orlight-dark()being classified as lengths instead of colors by @ddussi in #712 - Fix bare
bg-conicnot merging with other background image classes by @dcastil in #708 - Fix
columns-autonot conflicting with othercolumnsclasses by @dcastil in #707 - Fix container sizes like
inline-2xlnot merging by @dcastil in #706 - Fix
max-h-nonemissing in max-h class group by @mutewinter in #704 - Fix axis shorthands like
pxnot overriding logical sides likepsby @dcastil in #705 - Fix
leading-nonebeing removed when the leading theme scale is overridden by @chatman-media in #689 - Fix deprecated
shadow-innerbeing classified as shadow color instead of shadow by @dcastil in #703
Documentation
- Add Deno to install instructions by @bartlomieju in #687
- Add missing
text-shadowtheme key to configuration docs by @dcastil in 3e6d208
Other
Full Changelog: v3.6.0...v3.7.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @openclaw, @sourcegraph, @cesarvcanal, @CasperKristiansson, @jbisasky, @FrontendMasters and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.6.0
New Features
- Add support for Tailwind CSS v4.3 by @dcastil in #677
- Add
postfixLookupClassGroupsoption to config to support Tailwind utilities where a slash is part of the full class name, like named container queries
- Add
- Add support for readonly array values by @unional in #652
Documentation
Other
- Harden internal CI pipeline security by omitting git checkout by @dcastil, suggested by @kyletaylored in 6b2499c
Full Changelog: v3.5.0...v3.6.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph, @mike-healy and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.5.0
New Features
Full Changelog: v3.4.1...v3.5.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.4.1
Bug Fixes
- Prevent arbitrary font-family and font-weight from merging by @roneymoon in #635
Full Changelog: v3.4.0...v3.4.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph and more via @thnxdev for sponsoring tailwind-merge! ❤️
v2.6.1
Bug Fixes
- Fix arbitrary value using
color-mixnot being detected as color by @dcastil in #591- This fix was backported from v3.3.1 to make it available for v2 users.
Full Changelog: v2.6.0...v2.6.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.4.0
New Features
- Performance optimizations which make tailwind-merge >10% faster
- Vibe optimization by @quantizor in #547
- Additional optimizations by @quantizor in #619
Documentation
- Improve docs by clarifying things, adding more examples by @dcastil in #618
- Make examples more realistic by @dcastil in #617
- Add custom variant as an alternative to docs by @kidonng in #592
Other
- Improve benchmarking suite by @quantizor in #620
Full Changelog: v3.3.1...v3.4.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov and a private sponsor for sponsoring tailwind-merge! ❤️
v3.3.1
Bug Fixes
Full Changelog: v3.3.0...v3.3.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph, a private sponsor, @block and @shawt3000 for sponsoring tailwind-merge! ❤️
v3.3.0
New Features
Full Changelog: v3.2.0...v3.3.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph, a private sponsor and @block for sponsoring tailwind-merge! ❤️