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

feat: support tailwindcss v4 #245

Merged
merged 3 commits into from
Mar 8, 2025
Merged

feat: support tailwindcss v4 #245

merged 3 commits into from
Mar 8, 2025

Conversation

winchesHe
Copy link
Member

@winchesHe winchesHe commented Mar 7, 2025

closes #239, #240

Description

Breaking changes

❕ Note: 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.

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@winchesHe winchesHe marked this pull request as ready for review March 8, 2025 15:59
@winchesHe
Copy link
Member Author

winchesHe commented Mar 8, 2025

@jrgarciadev jrgarciadev merged commit 00ec267 into main Mar 8, 2025
4 checks passed
@jrgarciadev jrgarciadev deleted the feat/tailwindcss-v4 branch March 8, 2025 16:17
@yaseiva
Copy link

yaseiva commented Mar 17, 2025

Can you explain please "If you want to use responsive variants, you need to add it manually to your classname."

Like I'm using cva now, and want to convert it to tv so i can use responsive. How do we handle responsive with tv?

@winchesHe
Copy link
Member Author

winchesHe commented Mar 17, 2025

Can you explain please "If you want to use responsive variants, you need to add it manually to your classname."

Like I'm using cva now, and want to convert it to tv so i can use responsive. How do we handle responsive with tv?

Like sm:text-small, m:text-medium, https://tailwindcss.com/docs/responsive-design

@CanRau
Copy link

CanRau commented Mar 21, 2025

Upgrading broke my project, release page didn't mention breaking changes 😅 or how to proper upgrade/migrate 🤔
Also we're still using tailwind v3 😇 and it's not entirely clear to me if tv v1 would still work 🤔

@winchesHe
Copy link
Member Author

Upgrading broke my project, release page didn't mention breaking changes 😅 or how to proper upgrade/migrate 🤔 Also we're still using tailwind v3 😇 and it's not entirely clear to me if tv v1 would still work 🤔

Sorry, it's been updated, detailed updates are in the documentation https://www.tailwind-variants.org/docs/tailwind-v4#breaking-changes

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

Successfully merging this pull request may close these issues.

Tailwindcss v4 support
4 participants