Tailwind v4
TailwindCSS v4 is now available! You can use all the new features and improvements from Tailwindcss v4 in your projects.
Upgrade tailwind-variants to v1.x to use it.
Migration Steps
To upgrade your project to v1.x, you can run the upgrade script.
npm install tailwind-variants@latestBreaking changes
- The
responsiveVariantsoption has been removed. withTvhas been removed.
❕ Note:
Tailwindcss v4no longer supports theconfig.content.transformso we remove theresponsiveVariantsfeatureIf you want to use
responsiveVariants, you need to add it manually to your classname.e.g.
className="sm:text-sm md:text-base lg:text-lg"more info here (opens in a new tab).