fix(shadcn): only add tw-animate-css if no tailwindcss-animate (#6972)

* feat(shadcn): fix existing tailwindcss-animate

* docs: changelog

* tests(shadcn): update snapshots
This commit is contained in:
shadcn
2025-03-19 15:35:59 +04:00
committed by GitHub
parent 205bfc637e
commit 37e5192fe7
3 changed files with 33 additions and 22 deletions

View File

@@ -294,6 +294,24 @@ function AccordionItem({
## Changelog
### March 19, 2025 - Deprecate `tailwindcss-animate`
We've deprecated `tailwindcss-animate` in favor of `tw-animate-css`.
New project will have `tw-animate-css` installed by default.
For existing projects, follow the steps below to migrate.
1. Remove `tailwindcss-animate` from your dependencies.
2. Remove the `@plugin 'tailwindcss-animate'` from your globals.css file.
3. Install `tw-animate-css` as a dev dependency.
4. Add the `@import "tw-animate-css"` to your globals.css file.
```diff showLineNumbers
- @plugin 'tailwindcss-animate';
+ @import "tw-animate-css";
```
### March 12, 2025 - New Dark Mode Colors
We've revisted the dark mode colors and updated them to be more accessible.