-
Notifications
You must be signed in to change notification settings - Fork 65
feat: add compatibility with tailwindcss v4 #63
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
base: main
Are you sure you want to change the base?
Conversation
@jamiebuilds can you please merge this pr? :) |
please merge the pr we want to use v4 with this |
In the meantime, you can override
to your
|
For those looking for a plug-n-play solution: I published a fork as a short-term workaround where I'm folding in some of the outstanding PRs, since this repo hasn't had activity in 2 years. https://github.com/nobie-org/tailwindcss-animate. npm: https://www.npmjs.com/package/@nobie-org/tailwindcss-animate |
I've translated this plugin to the new CSS-first format and uploaded the code to https://github.com/Wombosvideo/tailwindcss-animate-v4. Maybe this helps someone EDIT: Renamed it and wrapped it in an NPM package for easy updating. |
I was having the same issue and found a workaround, I found this is working properly: In your @import "tailwindcss";
@plugin "tailwindcss-animate";
/* ... rest of theme and styles */ This is described in their documentation:
Link: https://tailwindcss.com/docs/functions-and-directives#plugin-directive |
@adielhercules Sure but you will still get some glitches |
This is the best response, and better adapted to the V4 of Tailwindcss, thanks |
still not merged? It this project abandoned? |
thank you so much, it worked, it is much prettier as a css file |
@adielhercules thank you for merging this, im facing an issue where the vscode intellisense doesnt suggest me the animated classes. Any idea on how i can fix it? Thanks <3 |
Are you using a JavaScript or a CSS version of the plugin? If you are using a CSS version, v1.1 of tailwindcss-animate-v4 adds some IntelliSense suggestions. If you think some are still missing, feel free to create an issue or open a PR. If you are using a JavaScript version, try checking the IntelliSense extension's log. My suggestions weren't working properly due to a missing config file. |
man, bless you |
There was no commit for 2 years now. It's fair to consider the author is not maintaining this repo anymore. |
I don't think this pr accept soon... |
I've updated https://github.com/wombosvideo/tw-animate-css npm install tw-animate-css @import "tw-animate-css" |
@Wombosvideo thank you for making this. Tested and working with tailwind v4.0.14 in a nextjs app. It's a single clean file as well, which makes it easy to just copy and place in into my own project. I hope more folks follow that approach, but I also hope @shadcn updates to point to tw-animate-css instead of tailwindcss-animate going forward for tailwind v4! Thanks again, works like a charm! |
tailwindcss's naming convention for plugins is like considering that isn't better name
|
This may be true for their plugins due to being authored by
While these names are good suggestions, those packages already exist or are too similar to packages which already exist. NPM actively prevents you from naming packages like this, see this comment.
Yes, I totally agree and I sadly also noticed this. I try to work around this by using |
was not talking about what do you think bout adding, accordion animations directly to tw-animate-css, so shadcn config can be all about colors --animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;
@keyframes accordion-down {
from {
height: 0;
}
to {
height: var(--radix-accordion-content-height);
}
}
@keyframes accordion-up {
from {
height: var(--radix-accordion-content-height);
}
to {
height: 0;
}
} |
Thank you very much!
While this is a great idea, I wrote this CSS file with |
created an pull request just in case before getting your reply, will take it forward from there |
@Wombosvideo added accordion with support for both bits and radix in the PR |
also changing the naming convention to plus if you had to do that manually previously, to add support for bits, it's your decision as author to create better future and support for upcoming devs and create an impact it is highly unlikely that we would have major voting participation in fast moving sense, be the change you seek in the world 😄 |
This comment was marked as resolved.
This comment was marked as resolved.
No, it just moves them to your package |
Hi there, huuge fan of tailwindcss-animate here
I've updated peer dependencies to play nicley with tailwind v4
@jamiebuilds