Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tailwind V4 responsive variants #240

Open
gijsbotje opened this issue Jan 28, 2025 · 1 comment
Open

Tailwind V4 responsive variants #240

gijsbotje opened this issue Jan 28, 2025 · 1 comment

Comments

@gijsbotje
Copy link

As of tailwindcss v4 the theme config is advised to be done in a CSS file. I've upgraded a project that used responsive variants, which used withTV() to allow responsive variants, and migrated my config file into the globals.css file.

Will there be a way to enable responsive variants with the new CSS config?

Until the fix discussed in #239 is published, the withTV() wrapper is currently broken for v4 when using @config to load a tailwind.config.ts file.

@winchesHe
Copy link
Member

Tailwindcss V4 no longer supports the config.content.transform so we remove the responsive variants feature

If you want to use responsive variants, you need to add it manually to your classname.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants