Cards — Data & Dashboard
Stat, progress, chart, and balance cards for dashboards and analytics.
Dashboard cards for numbers and trends. Each is a self-contained, token-driven block — the
brand colour maps to --primary, so they restyle automatically when you switch themes. Try the
theme switcher above the preview.
Preview
Revenue
+12.4%$24,890
vs $22,140 last month
Sprint 24
68%
Design 92%
Engineering 64%
QA 38%
Weekly active
18,204
MTWTFSS
Available balance
$8,420.50
•••• •••• •••• 4291
Install
Each card installs on its own:
bun x bosia@latest add block cards/stat
bun x bosia@latest add block cards/progress
bun x bosia@latest add block cards/chart
bun x bosia@latest add block cards/balanceEach pulls the @lucide/svelte npm package for icons. The sparkline,
ring, and mini-bars are inline SVG/CSS using semantic-token strokes — no chart library.
Usage
<script lang="ts">
import Stat from "$lib/blocks/cards/stat/block.svelte";
</script>
<Stat />All copy and data are hard-coded sample content — edit block.svelte to wire in your own.