chore(frontend): shadcn-svelte installieren und CSS-Variablen themen #65
Labels
No labels
component/backend
component/docs
component/e2e
component/frontend
component/infra
component/keycloak
prio/high
prio/low
prio/medium
type/bug
type/chore
type/feature
type/refactor
type/test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WompSchmiede/FamilienFeierPlaner#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Installation von shadcn-svelte als UI-Komponentenbibliothek und Einrichtung der CSS-Variablen fuer das Theming. Das Projekt nutzt Tailwind v4 via @tailwindcss/vite - shadcn-svelte ist dafuer kompatibel, benoetigt aber zusaetzliche CSS-Variablen in pp.css.
Schritte
px shadcn-svelte@latest init (oder manuelle Konfiguration mit components.json)
px shadcn-svelte@latest add button input select card badge table sheet dialog
3. CSS-Variablen in pp.css ergaenzen (shadcn-Theming)
CSS-Variablen (in app.css)
css @layer base { :root { --background: var(--color-bg); --foreground: var(--color-text); --card: var(--color-bg); --card-foreground: var(--color-text); --primary: var(--color-primary-600); --primary-foreground: white; --secondary: var(--color-bg-secondary); --secondary-foreground: var(--color-text); --muted: var(--color-bg-secondary); --muted-foreground: var(--color-text-secondary); --destructive: var(--color-error); --destructive-foreground: white; --border: var(--color-border); --ring: var(--color-primary-300); --radius: var(--radius-md); } }Dateien (neu/geaendert)
Tests
pm run dev prueft: Komponenten importierbar
pm run check (svelte-check) ohne Fehler
Akzeptanzkriterien
Aktualisierter Plan (2026-06-21)
Zusaetzlich erkannt (L1)
Der @theme-Block in pp.css muss um shadcn-CSS-Variablen erweitert werden:
--color-background, --color-foreground, --color-card, --color-card-foreground,
--color-primary-foreground, --color-secondary, --color-secondary-foreground,
--color-muted, --color-muted-foreground, --color-destructive,
--color-destructive-foreground, --color-border, --color-ring, --radius-*
Commits
1a chore(frontend): shadcn-svelte initialisiert (refs #65)
1b est(frontend): shadcn-svelte-Integration geprueft (closes #65)