Tailwind-merge

Latest version: v0.2.0

Safety actively analyzes 724305 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

3.0.2

Bug Fixes

- Fix `px` value not being recognized for some class groups by dcastil in https://github.com/dcastil/tailwind-merge/pull/538
- Fix doc comment being in incorrect place in default config by gjtorikian in https://github.com/dcastil/tailwind-merge/pull/526

**Full Changelog**: https://github.com/dcastil/tailwind-merge/compare/v3.0.1...v3.0.2

Thanks to brandonmcconnell, manavm1990, langy, jamesreaco, roboflow, syntaxfm, getsentry, codecov and a private sponsor for sponsoring tailwind-merge! ❤️

3.0.1

Bug Fixes

- Update info about supported Tailwind CSS version in README by dcastil in b9c136d
- Update incorrect link in v3 changelog by dcastil in e22885e

**Full Changelog**: https://github.com/dcastil/tailwind-merge/compare/v3.0.0...v3.0.1

Thanks to brandonmcconnell, manavm1990, langy, jamesreaco, roboflow, syntaxfm, getsentry, codecov and a private sponsor for sponsoring tailwind-merge! ❤️

3.0.0

[Tailwind CSS v4 is here](https://tailwindcss.com/blog/tailwindcss-v4) and it's time to upgrade tailwind-merge to support it. tailwind-merge v3.0.0 is more accurate than ever and follows the Tailwind CSS spec more closely than in v2. That is thanks to Tailwind CSS v4 being more consistent than ever.

This release drops support for Tailwind CSS v3 and in turn adds support for Tailwind CSS v4. That means you should upgrade to Tailwind CSS v4 and tailwind-merge v3 together. All breaking changes are related to the Tailwind CSS v4 support.

Check out the [migration guide](https://github.com/dcastil/tailwind-merge/blob/v3.0.0/docs/changelog/v2-to-v3-migration.md) and if you have any questions, feel free to [create an issue](https://github.com/dcastil/tailwind-merge/issues/new/choose).

Breaking Changes

- Dropping support for Tailwind CSS v3 in favor of support for Tailwind CSS v4 by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- Theme scales keys changed and now match Tailwind CSS v4 theme variable namespace exactly by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- `isLength` validator was removed and split into separate validators `isNumber` and `isFraction` by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- Prefix defined in config shouldn't include combining `-` character anymore by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- Tailwind CSS v3 prefix position in class not supported anymore in favor of Tailwind CSS v4 position by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- Custom separators are no longer supported by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- New mandatory `orderSensitiveModifiers` property in config when using `createTailwindMerge` by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- `DefaultThemeGroupIds` type union consists of different string literals than before by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- Classes removed in Tailwind CSS v4 are not supported by tailwind-merge anymore by dcastil in https://github.com/dcastil/tailwind-merge/pull/518

New Features

- Support for new important modifier position at the end of class by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- Support for arbitrary CSS variable syntax by dcastil in https://github.com/dcastil/tailwind-merge/pull/518
- There are a bunch of new validators used by tailwind-merge, primarily for new Tailwind CSS v4 features like arbitrary CSS variables by dcastil in https://github.com/dcastil/tailwind-merge/pull/518

Bug Fixes

- Previously some order-sensitive modifiers like `before:` were treated as not order-sensitive. This is now fixed by dcastil in https://github.com/dcastil/tailwind-merge/pull/518

Documentation

- Added section explaining order-sensitive modifiers to [configuration docs](https://github.com/dcastil/tailwind-merge/blob/v3.0.0/docs/configuration.md#order-sensitive-modifiers) by dcastil in https://github.com/dcastil/tailwind-merge/pull/518

**Full Changelog**: https://github.com/dcastil/tailwind-merge/compare/v2.6.0...v3.0.0

Thanks to brandonmcconnell, manavm1990, langy, jamesreaco, roboflow, syntaxfm, getsentry, codecov and a private sponsor for sponsoring tailwind-merge! ❤️

2.6.0

New Features

- Export ConfigExtension type from package by dcastil in https://github.com/dcastil/tailwind-merge/pull/505

**Full Changelog**: https://github.com/dcastil/tailwind-merge/compare/v2.5.5...v2.6.0

Thanks to brandonmcconnell, manavm1990, langy, jamesreaco, roboflow, syntaxfm, getsentry, codecov, sourcegraph, a private sponsor and more via thnxdev for sponsoring tailwind-merge! ❤️

2.5.5

Bug Fixes

- Fix typo "fractons" instead of "fractions" in "stacked-fractions" class by oliverhaas in https://github.com/dcastil/tailwind-merge/pull/492

Documentation

- Add installation instructions to configuration docs by dcastil in https://github.com/dcastil/tailwind-merge/pull/486

**Full Changelog**: https://github.com/dcastil/tailwind-merge/compare/v2.5.4...v2.5.5

Thanks to brandonmcconnell, manavm1990, langy, jamesreaco, roboflow, syntaxfm, getsentry, codecov and more via thnxdev for sponsoring tailwind-merge! ❤️

2.5.4

Bug Fixes

- Fix incorrect paths within sourcemaps by dcastil in https://github.com/dcastil/tailwind-merge/pull/483

**Full Changelog**: https://github.com/dcastil/tailwind-merge/compare/v2.5.3...v2.5.4

Thanks to brandonmcconnell, manavm1990, langy, jamesreaco, roboflow and codecov for sponsoring tailwind-merge! ❤️

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.