You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since upgrading to Tailwind CSS v4.0.0.alpha.25, I am encountering issues with the withTV function from tailwind-variants. When I include withTV in my tailwind.config.js, the entire application breaks. However, if I remove it, the application works fine, but I lose the ability to use Responsive Variants.
My project is structured using Turborepo v2.1.2 and Next.js v14.2.13, with the following folder structure:
apps/web for the main application
packages/ui for shared components
To Reproduce
Install Tailwind CSS v4
Create a global CSS file
Add tailwind.config.js
Add withTV function to the tailwind.config.js file
Import the configuration in CSS
Run the application
Expected behavior
I expected the withTV function to work as it did in previous versions of Tailwind, enabling Responsive Variants without breaking the app.
Desktop
OS: macOS
Browser Arc
Version 1.61.2
Additional context
In Tailwind v4, the configuration file is no longer necessary as everything can be handled through native CSS. However, while migrating, I was still using the tailwind.config.js file and importing it into my CSS like this:
Since upgrading to Tailwind CSS v4.0.0.alpha.25, I am encountering issues with the
withTV
function from tailwind-variants. When I includewithTV
in mytailwind.config.js
, the entire application breaks. However, if I remove it, the application works fine, but I lose the ability to use Responsive Variants.My project is structured using Turborepo v2.1.2 and Next.js v14.2.13, with the following folder structure:
apps/web
for the main applicationpackages/ui
for shared componentsTo Reproduce
tailwind.config.js
withTV
function to thetailwind.config.js
fileExpected behavior
I expected the
withTV
function to work as it did in previous versions of Tailwind, enabling Responsive Variants without breaking the app.Desktop
Additional context
In Tailwind v4, the configuration file is no longer necessary as everything can be handled through native CSS. However, while migrating, I was still using the
tailwind.config.js
file and importing it into my CSS like this:It seems that the
withTV
function is not compatible with the new Tailwind v4 setup. RemovingwithTV
resolves the issue but breaks Responsive Variants.The text was updated successfully, but these errors were encountered: