Skip to content

Releases

tailwind-merge@3.7.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 23:02
1dc547b

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 like text-lg or text-[1.5rem], so twMerge('leading-6 text-lg') now keeps both classes. Font sizes with a line-height modifier like text-lg/7 still override leading-*.
    • Thanks to @chatman-media for finding this for arbitrary font sizes in #681.
  • Fix arbitrary values using --spacing() being classified as colors instead of lengths by @dcastil in #758
  • Fix mask-circle and mask-ellipse not 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-clamp values like line-clamp-[calc(var(--characters)/100)] not merging by @asssslay in #752
  • Fix place-* classes not overriding content-*, items-*, self-* and justify-* classes by @mkantautas in #731
  • Fix lengths using the Q unit 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() or device-cmyk() being classified as lengths instead of colors by @Don-Yin in #729
  • Fix sr-only not overriding the position, size, spacing, overflow and white-space classes it resets by @kory-kaai in #726
  • Fix mask-x-* and mask-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 like RGB() being classified as lengths instead of colors.
  • Fix postfix modifiers not being recognized on classes with a leading important modifier like !text-lg/7 by @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 twMerge from one place with ESLint by @oyobbeb in #738
  • Recommend importing twMerge from 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

Choose a tag to compare

@dcastil dcastil released this 18 Nov 20:36
ce0457e

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-downgrade reports as a possible package takeover (#668, #720). This release contains no code changes. It is published from CI with provenance again, so installs of tailwind-merge@^2 resolve to an attested version.

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

Choose a tag to compare

@github-actions github-actions released this 12 Sep 20:05
511d68a

New Features

  • Prepare some upcoming changes by @dcastil in #713
    • Theme getters returned by fromTheme now expose the theme key they read as a themeKey property, 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.

Bug Fixes

  • Fix arbitrary values using color() or light-dark() being classified as lengths instead of colors by @ddussi in #712
  • Fix bare bg-conic not merging with other background image classes by @dcastil in #708
  • Fix columns-auto not conflicting with other columns classes by @dcastil in #707
  • Fix container sizes like inline-2xl not merging by @dcastil in #706
  • Fix max-h-none missing in max-h class group by @mutewinter in #704
  • Fix axis shorthands like px not overriding logical sides like ps by @dcastil in #705
  • Fix leading-none being removed when the leading theme scale is overridden by @chatman-media in #689
  • Fix deprecated shadow-inner being classified as shadow color instead of shadow by @dcastil in #703

Documentation

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

Choose a tag to compare

@github-actions github-actions released this 10 May 12:55
d54f7e5

New Features

  • Add support for Tailwind CSS v4.3 by @dcastil in #677
    • Add postfixLookupClassGroups option to config to support Tailwind utilities where a slash is part of the full class name, like named container queries
  • Add support for readonly array values by @unional in #652

Documentation

Other

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

Choose a tag to compare

@github-actions github-actions released this 18 Feb 23:45
270ac79

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

Choose a tag to compare

@github-actions github-actions released this 15 Feb 10:34
02b6eb6

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

Choose a tag to compare

@dcastil dcastil released this 30 Jan 22:37
0377863

Bug Fixes

  • Fix arbitrary value using color-mix not 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

Choose a tag to compare

@github-actions github-actions released this 09 Nov 12:34
3e1256a

New Features

  • Performance optimizations which make tailwind-merge >10% faster

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

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

Choose a tag to compare

@github-actions github-actions released this 10 Jun 20:03
40d8fee

Bug Fixes

  • Fix arbitrary value using color-mix() not being detected as color by @dcastil in #591

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

Choose a tag to compare

@github-actions github-actions released this 11 May 20:50
ceb3b4a

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