Skip to content

Commit 190b924

Browse files
Remove unused tailwind deps (#1286)
* Remove unused tailwind deps * Replace tailwindcss-animate with tw-animate-css
1 parent a3e1104 commit 190b924

File tree

5 files changed

+19
-77
lines changed

5 files changed

+19
-77
lines changed

.changeset/poor-kings-bow.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@obosbbl/grunnmuren-tailwind": patch
3+
"@obosbbl/grunnmuren-react": patch
4+
---
5+
6+
Remove unused tailwind-deps

packages/react/src/card/card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const cardVariants = cva({
3333
'[&_[data-slot="media"]]:mx-[calc(theme(space.3)*-1-theme(borderWidth.DEFAULT))] [&_[data-slot="media"]]:mt-[calc(theme(space.3)*-1-theme(borderWidth.DEFAULT))]',
3434

3535
// Sets the aspect ratio of the media content (width: 100% is necessary to make aspect ratio work on images in FF)
36-
'[&_[data-slot="media"]>*:not([data-slot="badge"])]:aspect-[3/2] [&_[data-slot="media"]>img]:w-full [&_[data-slot="media"]>img]:object-cover',
36+
'[&_[data-slot="media"]>*:not([data-slot="badge"])]:aspect-3/2 [&_[data-slot="media"]>img]:w-full [&_[data-slot="media"]>img]:object-cover',
3737
// Prepare zoom animation for hover effects. The hover effect can also be enabled by classes on the parent component, so it is always prepared here.
3838
'[&_[data-slot="media"]>*]:duration-300 [&_[data-slot="media"]>*]:ease-in-out [&_[data-slot="media"]>*]:motion-safe:transition-transform',
3939

packages/tailwind/package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818
"scripts": {
1919
"font-fallback": "bun --cwd=./fonts ./generate-font-fallback.ts"
2020
},
21-
"dependencies": {
22-
"@tailwindcss/aspect-ratio": "^0.4.2",
23-
"@tailwindcss/typography": "^0.5.10",
24-
"tailwindcss-animate": "^1.0.7"
25-
},
2621
"devDependencies": {
2722
"tailwindcss": "4.0.17"
2823
},
2924
"peerDependencies": {
3025
"tailwindcss": "^4.0.0"
26+
},
27+
"dependencies": {
28+
"tw-animate-css": "^1.2.5"
3129
}
3230
}

packages/tailwind/tailwind-base.css

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "tailwindcss";
2+
@import "tw-animate-css";
23
@import "./tailwind-typography";
34
@import "./font";
45

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)