v1.11.0
·
761 commits
to refs/heads/main
since this release
New Features
- Add support for Tailwind CSS v3.3 except line-height shorthand by @dcastil in #210
- The line-height shorthand in font-size utilities (
text-lg/7) introduced in Tailwind CSS v3.3 is not yet supported in tailwind-merge because that feature is a bit more involved. I'll add support for it in a future release. More info in #211. - Added new validator
isPercentwhich is needed internally for the default scale of color stop positions. - New theme key
gradientColorStopPositionssupported in tailwind-merge. - New logical properties like
ps-0(padding-inline-start: 0px;) are de-duplicated away when using the matching property for all sides afterwards like in this casep-0, but not when using single axis sides likepx-0becausepadding-inline-startcan also be the top or bottom padding depending on writing mode.- Basically
twMerge('ps-0 p-0') === 'p-0' && twMerge('ps-0 px-0') === 'ps-0 px-0'. - If you want to use logical properties and know which writing modes your app is limited to, add the right conflicts yourself to your tailwind-merge config.
- Basically
- The line-height shorthand in font-size utilities (
Full Changelog: v1.10.0...v1.11.0
Thanks to @brandonmcconnell for sponsoring tailwind-merge! ❤️