Skip to content

Commit 19d6792

Browse files
Replace tailwindcss-animate by tw-animate-css, fix types
1 parent c0f3d21 commit 19d6792

File tree

4 files changed

+22
-38
lines changed

4 files changed

+22
-38
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"tailwind-merge": "^3.0.2",
5656
"tailwind-variants": "^1.0.0",
5757
"tailwindcss": "^4.0.14",
58-
"tailwindcss-animate": "^1.0.7",
5958
"tslib": "^2.8.1",
59+
"tw-animate-css": "^1.2.3",
6060
"typescript": "^5.8.2",
6161
"typescript-eslint": "^8.26.1",
6262
"vite": "^6.2.2",

pnpm-lock.yaml

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.css

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import "tailwindcss" theme(static);
22
@plugin "@tailwindcss/typography";
3-
@plugin "tailwindcss-animate";
3+
@import "tw-animate-css";
44

55
@variant dark (&:is(.dark *));
66

@@ -52,28 +52,8 @@
5252
--radius-md: calc(var(--radius) - 2px);
5353
--radius-sm: calc(var(--radius) - 4px);
5454

55-
--animate-accordion-down: accordion-down 0.2s ease-out;
56-
--animate-accordion-up: accordion-up 0.2s ease-out;
5755
--animate-caret-blink: caret-blink 1.25s ease-out infinite;
5856

59-
@keyframes accordion-down {
60-
from {
61-
height: 0;
62-
}
63-
to {
64-
height: var(--bits-accordion-content-height);
65-
}
66-
}
67-
68-
@keyframes accordion-up {
69-
from {
70-
height: var(--bits-accordion-content-height);
71-
}
72-
to {
73-
height: 0;
74-
}
75-
}
76-
7757
@keyframes caret-blink {
7858
0%,
7959
70%,

src/routes/+layout.svelte

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
<script lang="ts">
22
import "../app.css";
3-
import { onMount, type SvelteComponent } from "svelte";
4-
import type { SvelteHTMLElements } from "svelte/elements";
3+
import { onMount } from "svelte";
54
import { fade } from "svelte/transition";
65
import { dev } from "$app/environment";
76
import { env } from "$env/dynamic/public";
87
import { page } from "$app/state";
9-
import { ChevronDown, LoaderCircle, LogOut, Monitor, Moon, Sun, X } from "@lucide/svelte";
8+
import {
9+
ChevronDown,
10+
type Icon,
11+
LoaderCircle,
12+
LogOut,
13+
Monitor,
14+
Moon,
15+
Sun,
16+
X
17+
} from "@lucide/svelte";
1018
import { ModeWatcher, resetMode, setMode } from "mode-watcher";
1119
import { Octokit } from "octokit";
1220
import { persisted } from "svelte-persisted-store";
@@ -83,7 +91,7 @@
8391
type Theme = {
8492
value: typeof theme;
8593
label: string;
86-
icon: typeof SvelteComponent<SvelteHTMLElements["svg"]>;
94+
icon: typeof Icon;
8795
};
8896
const themes: Theme[] = [
8997
{

0 commit comments

Comments
 (0)