diff --git a/frontend/components.json b/frontend/components.json index c810da1a..cb523fda 100644 --- a/frontend/components.json +++ b/frontend/components.json @@ -1,6 +1,5 @@ { "$schema": "https://shadcn-svelte.com/schema.json", - "style": "default", "tailwind": { "css": "src/app.css", "baseColor": "neutral" @@ -13,5 +12,9 @@ "lib": "$lib" }, "typescript": true, - "registry": "https://shadcn-svelte.com/registry" + "registry": "https://shadcn-svelte.com/registry", + "style": "luma", + "iconLibrary": "lucide", + "menuColor": "default-translucent", + "menuAccent": "subtle" } diff --git a/frontend/package.json b/frontend/package.json index ee369664..7fd3a182 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -49,6 +49,7 @@ "prettier-plugin-svelte": "^3.5.2", "prettier-plugin-tailwindcss": "^0.8.0", "rollup": "^4.60.4", + "shadcn-svelte": "^1.3.0", "svelte": "^5.55.8", "svelte-check": "^4.4.8", "svelte-sonner": "^1.1.1", diff --git a/frontend/src/app.css b/frontend/src/app.css index 53e05029..5d05eee5 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -1,5 +1,6 @@ @import 'tailwindcss'; @import 'tw-animate-css'; +@import 'shadcn-svelte/tailwind.css'; @variant dark (&:where(.dark, .dark *)); @@ -7,7 +8,7 @@ The default border color has changed to `currentcolor` in Tailwind CSS v4, so we've added these compatibility styles to make sure everything still looks the same as it did with Tailwind CSS v3. - + If we ever want to remove these styles, we need to add an explicit border color utility to any element that depends on these defaults. */ @@ -19,10 +20,19 @@ ::file-selector-button { border-color: var(--color-gray-200, currentcolor); } + * { + @apply border-border outline-ring/50; + } + body { + @apply bg-background text-foreground; + } + html { + @apply font-sans; + } } :root { - --radius: 1rem; + --radius: 0.625rem; --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); --card: oklch(1 0 0); @@ -135,6 +145,15 @@ /* Font */ --font-gloock: 'gloock', serif; + --color-sidebar: var(--sidebar); + --color-chart-5: var(--chart-5); + --color-chart-4: var(--chart-4); + --color-chart-3: var(--chart-3); + --color-chart-2: var(--chart-2); + --color-chart-1: var(--chart-1); + --radius-2xl: calc(var(--radius) * 1.8); + --radius-3xl: calc(var(--radius) * 2.2); + --radius-4xl: calc(var(--radius) * 2.6); } @layer base { diff --git a/frontend/src/lib/components/form/auto-complete-input.svelte b/frontend/src/lib/components/form/auto-complete-input.svelte index 5781d509..4d72ca7f 100644 --- a/frontend/src/lib/components/form/auto-complete-input.svelte +++ b/frontend/src/lib/components/form/auto-complete-input.svelte @@ -42,6 +42,7 @@ case 'Enter': if (selectedIndex >= 0) { handleSuggestionClick(filteredSuggestions[selectedIndex]); + e.preventDefault(); } break; case 'Escape': @@ -80,8 +81,8 @@