With this release tailwind-merge supports all features introduced in Tailwind CSS v3.3.
New Features
- Add support for postfix modifier by @dcastil in #214
- This adds support for
line-height
modifiers infont-size
utilities liketext-lg/7
and more potential postfix modifiers in the future (learn more). - All classes are checked for postfix modifiers since there will be more in the future and they'll be configurable with plugins.
- tailwind-merge can't know from the class syntax alone whether something is a modifier or not. E.g. there is
w-1/2
which doesn't contain a modifier. So tailwind-merge always checks whether class without potential modifier exists and if it doesn't it checks for full class. This behavior might get reversed in the next major version as a breaking change (learn more). - Added
conflictingClassGroupModifiers
object to tailwind-merge config (learn more).
- This adds support for
Full Changelog: v1.11.0...v1.12.0