Avatar for the dcastil user
dcastil
tailwind-merge
BlogDocsChangelog

Breaking: Tailwind CSS v4 support

#518Merged
Comparing
breaking-feature/513/tailwind-css-v4-support
(
7f043a6
) with
main
(
47c87d8
)
CodSpeed Performance Gauge
-12%
Improvement
1
Regression
1
Untouched
3

Benchmarks

5 total
init
tests/tw-merge.benchmark.ts::twMerge
CodSpeed Performance Gauge
+37%
6.4 ms4.7 ms
heavy
tests/tw-merge.benchmark.ts::twMerge
CodSpeed Performance Gauge
-10%
3.7 ms4.1 ms
collection without cache
tests/tw-merge.benchmark.ts::twMerge
CodSpeed Performance Gauge
-12%
187.8 ms214.1 ms
simple
tests/tw-merge.benchmark.ts::twMerge
CodSpeed Performance Gauge
-9%
3.5 ms3.9 ms
collection with cache
tests/tw-merge.benchmark.ts::twMerge
CodSpeed Performance Gauge
-8%
16.8 ms18.1 ms

Commits

Click on a commit to change the comparison range
Base
main
47c87d8
-2.4%
add inset-shadow and inset-ring utilities
0c46ce9
1 year ago
by dcastil
-0.18%
add field-sizing utilities
1134b3e
1 year ago
by dcastil
-0.27%
add color-scheme utilities
0dba016
1 year ago
by dcastil
-0.52%
add font-stretch utilities
bfc7a42
1 year ago
by dcastil
+0.92%
remove deprecated opacity utilities
465b1a7
1 year ago
by dcastil
+0.16%
add renamed utilities and mark deprecated but still supported classes
8992454
1 year ago
by dcastil
-9.91%
add support for arbitrary custom properties (CSS variables) and re-architect tailwind-merge config
ddc6ae8
1 year ago
by dcastil
-0.73%
attempt: group theme getters and scale helpers into objects
3238708
1 year ago
by dcastil
+0.74%
Revert "attempt: group theme getters and scale helpers into objects"
1f1f572
1 year ago
by dcastil
+0.01%
use better naming for variables inside getDefaultConfig
e7e5a08
1 year ago
by dcastil
+0.7%
move arbitrary validators out of theme scales to class groups directly
bd2e7b3
1 year ago
by dcastil
-1.25%
add support for important modifier at the end of base class name
94e9e26
1 year ago
by dcastil
+0.47%
add support for new prefix syntax
380c977
1 year ago
by dcastil
+0.18%
add test case for arbitrary variant without `&` symbol
bc46153
1 year ago
by dcastil
-0.03%
adjust configuration documentation to new theme scales
be17bc6
1 year ago
by dcastil
-0.35%
update documentation to new validators and theme scale
9b63e89
1 year ago
by dcastil
-0.07%
adjust default config based on https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757
4072d8a
1 year ago
by dcastil
-0.47%
test: add hardcoded list of position-sensitive modifiers to test perf of that
3fe7d3e
1 year ago
by dcastil
+0.01%
change `positionSensitiveModifiers` to array
5a0a737
1 year ago
by dcastil
+0.06%
change to object
16de04e
1 year ago
by dcastil
+50.69%
remove modifier sorting to check perf
6ed3bed
1 year ago
by dcastil
-50.16%
add configurable orderSensitiveModifiers to tailwind-merge
74b8951
1 year ago
by dcastil
+0.12%
fix tests and add test for modifiers order
0ce3055
1 year ago
by dcastil
-0.18%
add test for modifiers order of twMerge
8e32663
1 year ago
by dcastil
+0.18%
add `orderSensitiveModifiers` and Tailwind CSS v4 features to docs
e7f9b59
1 year ago
by dcastil
-0.21%
add v3.0.0 changelog
93a018f
1 year ago
by dcastil
+0.76%
remove separator from docs
752b103
1 year ago
by dcastil
-0.09%
add migration doc for tailwind-merge v3
1950ab6
1 year ago
by dcastil
-0.44%
small tweaks
7f043a6
1 year ago
by dcastil
© 2026 CodSpeed Technology
Home Terms Privacy Docs