Skip to content

Commit 7a3ea67

Browse files
Etsijalamppu
authored andcommitted
build(ui): Replace the animation library
The current animation library for TailwindCSS [1] hasn't had any activity in two years, and `shadcn-ui` library has deprecated its usage. Replace it with a TailwindCSS v4 compliant library [2], as instructed in [3]. [1]: https://github.com/jamiebuilds/tailwindcss-animate [2]: https://github.com/Wombosvideo/tw-animate-css/ [3]: https://ui.shadcn.com/docs/tailwind-v4 Signed-off-by: Jyrki Keisala <[email protected]>
1 parent e10c39f commit 7a3ea67

File tree

4 files changed

+11
-25
lines changed

4 files changed

+11
-25
lines changed

ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"prettier": "^3.2.5",
7979
"prettier-plugin-tailwindcss": "^0.6.11",
8080
"tailwindcss": "^4.0.0",
81-
"tailwindcss-animate": "^1.0.7",
81+
"tw-animate-css": "^1.2.4",
8282
"typescript": "^5.2.2",
8383
"vite": "6.2.3",
8484
"vitest": "^3.0.0"

ui/pnpm-lock.yaml

+8-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/src/globals.css

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
@import 'tailwindcss';
21+
@import 'tw-animate-css';
2122

2223
@config '../tailwind.config.js';
2324

ui/tailwind.config.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*/
1919

2020
import tailwindcssTypography from '@tailwindcss/typography';
21-
import tailwindcssAnimate from 'tailwindcss-animate';
2221

2322
/** @type {import('tailwindcss').Config} */
2423
export default {
@@ -73,16 +72,6 @@ export default {
7372
md: 'calc(var(--radius) - 2px)',
7473
sm: 'calc(var(--radius) - 4px)',
7574
},
76-
keyframes: {
77-
'accordion-down': {
78-
from: { height: '0' },
79-
to: { height: 'var(--radix-accordion-content-height)' },
80-
},
81-
'accordion-up': {
82-
from: { height: 'var(--radix-accordion-content-height)' },
83-
to: { height: '0' },
84-
},
85-
},
8675
animation: {
8776
'accordion-down': 'accordion-down 0.2s ease-out',
8877
'accordion-up': 'accordion-up 0.2s ease-out',
@@ -101,5 +90,5 @@ export default {
10190
},
10291
},
10392
},
104-
plugins: [tailwindcssAnimate, tailwindcssTypography],
93+
plugins: [tailwindcssTypography],
10594
};

0 commit comments

Comments
 (0)