Commits
Click on a commit to change the comparison rangeadd details-content variant Add `items-baseline-last` and `self-baseline-last` utilities Add safe alignment utilities Add `wrap-anywhere`, `wrap-break-word`, and `wrap-normal` utilities Add `text-shadow-*` utilities Add `mask-clip`, `mask-composite`, `mask-mode`, `mask-origin`, `mask-repeat` and `mask-type` utilities Add `mask-position` utilities
I also loosened the rules on position vs. origin a bit and allow classes like `*-top-left` and `*-left-top` everywhere.
The reason for this is that Tailwind used one style in some groups and another style in others in the past, but moved to support the same order in all groups while keeping the old style working. That means some class groups allow both styles and some not:
- object-position: supports both
- background-position: supports both
- mask-position: Y direction first only
- perspective-origin: Y direction first only
- transform-origin: Y direction first only
To make things simpler and keep the bundle size of tailwind-merge small, I decided to support both styles everywhere. improve performance of validators which allow multiple labels Add `mask-size` utilities Add `mask-image` utilities
This is very verbose, but I intend to optimize this later fix percentage label belonging to bg-position instead of bg-size
In the Tailwind CSS codebase it's belonging to position.
I don't know why I had it under size. fix conflict declaration between border-width groups and between border-color groups missing compress class groups a bit attempt to reduce bundle size impact of mask-image class groups Revert "attempt to reduce bundle size impact of mask-image class groups"
This reverts commit fedad417ee2af10c8df79053b6bccd13cb1de5d7.
The reverted commit reduced increased `twMerge` bundle size from +7.4% to +5.9% but at the same time made init runtime perf a lot worse from -15.13% to -51.44% Add `drop-shadow-<color>` utilities add Tailwind CSS v4.1 support info to docs improve stacked modifiers feature explanation