ui-svelte: big convert to shadcn components

This commit is contained in:
Benson Wong
2026-06-28 01:53:19 +00:00
parent d1e4c8ee77
commit 8b5a62d92a
19 changed files with 342 additions and 348 deletions
@@ -2,6 +2,7 @@
import { onMount } from "svelte";
import { Chart, registerables } from "chart.js";
import { isDarkMode } from "../stores/theme";
import * as Card from "$lib/components/ui/card/index.js";
Chart.register(...registerables);
@@ -143,6 +144,8 @@
});
</script>
<div class="bg-card text-card-foreground h-[300px] rounded-xl border p-4 shadow-sm">
<canvas bind:this={canvas}></canvas>
</div>
<Card.Root class="h-[300px] py-0">
<Card.Content class="h-full p-4">
<canvas bind:this={canvas}></canvas>
</Card.Content>
</Card.Root>