Skip to content

Modern Docker Management, Designed for Everyone

refactor: import shadcn-svelte css and cleanup frontned css files (#3172)

Kyle Mendell16de6ba7d6da
diff --git a/email-templates/theme.ts b/email-templates/theme.ts
index 4afbacb8d..0c71c9fa0 100644
--- a/email-templates/theme.ts
+++ b/email-templates/theme.ts
@@ -4,7 +4,7 @@
* Single source of truth for the palette so retheming is a one-file change.
* Values are plain hex (no oklch / CSS variables) because email clients don't
* support those. Colors mirror Arcane's default *dark* app theme — see the
- * published previews in frontend/src/lib/utils/theme.ts and frontend/src/app.css.
+ * published previews in frontend/src/lib/utils/theme.ts and frontend/src/routes/layout.css.
*
* Only theming lives here; layout stays table-based in the components/emails.
*/
diff --git a/frontend/components.json b/frontend/components.json
index a592aa333..5e5dffa5b 100644
--- a/frontend/components.json
+++ b/frontend/components.json
@@ -2,7 +2,7 @@
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "nova",
"tailwind": {
- "css": "src/app.css",
+ "css": "src/routes/layout.css",
"baseColor": "violet"
},
"aliases": {
@@ -12,5 +12,7 @@
"hooks": "$lib/hooks"
},
"typescript": true,
- "registry": "https://shadcn-svelte.com/registry"
+ "registry": "https://shadcn-svelte.com/registry",
+ "menuColor": "default-translucent",
+ "menuAccent": "subtle"
}
diff --git a/frontend/package.json b/frontend/package.json
index 767942805..c126d8146 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -70,6 +70,7 @@
"mode-watcher": "^1.1.0",
"paneforge": "^1.0.2",
"runed": "^0.37.1",
+ "shadcn-svelte": "^1.3.0",
"svelte-check-rs": "^0.10.2",
"svelte-sonner": "^1.1.1",
"svelte-toolbelt": "^0.10.6",
diff --git a/frontend/src/lib/utils/theme.ts b/frontend/src/lib/utils/theme.ts
index ac4aa138f..2984be900 100644
--- a/frontend/src/lib/utils/theme.ts
+++ b/frontend/src/lib/utils/theme.ts
@@ -370,7 +370,7 @@ const REDUCE_EFFECTS_CLASS = 'reduce-effects';
/**
* Toggle glass / backdrop-blur effects. When disabled, the `no-blur` class on
- * <html> drives app.css to strip every backdrop-filter and make glass surfaces
+ * <html> drives layout.css to strip every backdrop-filter and make glass surfaces
* opaque — the main lever for cutting GPU usage on Firefox-based browsers.
*/
export function applyGlassEffects(enabled: boolean): void {
@@ -384,7 +384,7 @@ export function applyGlassEffects(enabled: boolean): void {
/**
* Toggle decorative, always-on interface animations (ambient login shimmer,
* loading-bar glow, pulse indicators). When disabled we add a `reduce-effects`
- * class to <html> and app.css halts those animations.
+ * class to <html> and layout.css halts those animations.
*/
export function applyInterfaceAnimations(enabled: boolean): void {
if (typeof document === 'undefined') {
@@ -396,7 +396,7 @@ export function applyInterfaceAnimations(enabled: boolean): void {
export const FONT_SIZE_MIN = 12;
export const FONT_SIZE_MAX = 20;
-export const FONT_SIZE_DEFAULT = 14; // matches `html { font-size: 14px }` in app.css
+export const FONT_SIZE_DEFAULT = 14; // matches `html { font-size: 14px }` in layout.css
/**
* Apply the user's preferred root font size. The UI is sized in `rem` off the
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 7916abe89..0b8e6bb7c 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -18,7 +18,7 @@
import { SvelteQueryDevtools } from '@tanstack/svelte-query-devtools';
import { ModeWatcher } from 'mode-watcher';
import { onMount } from 'svelte';
- import '../app.css';
+ import './layout.css';
let { data, children }: LayoutProps = $props();
diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.css
new file mode 100644
index 000000000..e72d7f199
--- /dev/null
+++ b/frontend/src/routes/layout.css
@@ -0,0 +1,361 @@
+@import 'tailwindcss';
+@import 'tw-animate-css';
+@import 'shadcn-svelte/tailwind.css';
+@import '@fontsource-variable/montserrat';
+@import '@fontsource-variable/geist-mono';
+@import './themes.css';
+
+@custom-variant dark (&:is(.dark *));
+
+:root {
+ --radius: 0.6rem;
+ --background: oklch(1 0 0);
+ --foreground: oklch(0.145 0 0);
+ --card: oklch(1 0 0);
+ --card-foreground: oklch(0.145 0 0);
+ --popover: oklch(1 0 0);
+ --popover-foreground: oklch(0.145 0 0);
+ --primary: oklch(0.606 0.25 292.717);
+ --primary-foreground: oklch(0.969 0.016 293.756);
+ --secondary: oklch(0.967 0.001 286.375);
+ --secondary-foreground: oklch(0.21 0.006 285.885);
+ --muted: oklch(0.97 0 0);
+ --muted-foreground: oklch(0.556 0 0);
+ --accent: oklch(0.97 0 0);
+ --accent-foreground: oklch(0.205 0 0);
+ --destructive: oklch(0.577 0.245 27.325);
+ --border: oklch(0.922 0 0);
+ --input: oklch(0.922 0 0);
+ --ring: oklch(0.606 0.25 292.717);
+ --chart-1: oklch(0.811 0.111 293.571);
+ --chart-2: oklch(0.606 0.25 292.717);
+ --chart-3: oklch(0.541 0.281 293.009);
+ --chart-4: oklch(0.491 0.27 292.581);
+ --chart-5: oklch(0.432 0.232 292.759);
+ --sidebar: oklch(0.985 0 0);
+ --sidebar-foreground: oklch(0.145 0 0);
+ --sidebar-primary: oklch(0.606 0.25 292.717);
+ --sidebar-primary-foreground: oklch(0.969 0.016 293.756);
+ --sidebar-accent: oklch(0.97 0 0);
+ --sidebar-accent-foreground: oklch(0.205 0 0);
+ --sidebar-border: oklch(0.922 0 0);
+ --sidebar-ring: oklch(0.606 0.25 292.717);
+ --surface: oklch(0.985 0.006 285.885);
+ --bg-surface: var(--surface);
+
+ --glass-base: var(--bg-surface);
+ --glass-tint: var(--primary);
+ --glass-shadow-color: oklch(0 0 0 / 0.12);
+
+ --arcane-z-content: 0;
+ --arcane-z-raised: 10;
+ --arcane-z-sticky: 20;
+ --arcane-z-page-floating: 30;
+ --arcane-z-app-chrome: 40;
+ --arcane-z-overlay: 50;
+ --arcane-z-surface: 60;
+ --arcane-z-critical-surface: 70;
+ --arcane-z-toast: 80;
+ --arcane-z-loading: 9999;
+}
+
+.dark {
+ --background: oklch(0.145 0 0);
+ --foreground: oklch(0.985 0 0);
+ --card: oklch(0.205 0 0);
+ --card-foreground: oklch(0.985 0 0);
+ --popover: oklch(0.205 0 0);
+ --popover-foreground: oklch(0.985 0 0);
+ --primary: oklch(0.541 0.281 293.009);
+ --primary-foreground: oklch(0.969 0.016 293.756);
+ --secondary: oklch(0.274 0.006 286.033);
+ --secondary-foreground: oklch(0.985 0 0);
+ --muted: oklch(0.269 0 0);
+ --muted-foreground: oklch(0.708 0 0);
+ --accent: oklch(0.269 0 0);
+ --accent-foreground: oklch(0.985 0 0);
+ --destructive: oklch(0.704 0.191 22.216);
+ --border: oklch(1 0 0 / 10%);
+ --input: oklch(1 0 0 / 15%);
+ --ring: oklch(0.541 0.281 293.009);
+
+ --sidebar: oklch(0.205 0 0);
+ --sidebar-foreground: oklch(0.985 0 0);
+ --sidebar-primary: oklch(0.541 0.281 293.009);
+ --sidebar-primary-foreground: oklch(0.969 0.016 293.756);
+ --sidebar-accent: oklch(0.269 0 0);
+ --sidebar-accent-foreground: oklch(0.985 0 0);
+ --sidebar-border: oklch(1 0 0 / 10%);
+ --sidebar-ring: oklch(0.541 0.281 293.009);
+ --surface: oklch(0.205 0 0);
+
+ --bg-surface: oklch(0.205 0 0);
+ --glass-base: var(--bg-surface);
+ --glass-tint: var(--primary);
+ --glass-shadow-color: oklch(0 0 0 / 0.32);
+}
+
+html.no-blur *,
+html.no-blur *::before,
+html.no-blur *::after {
+ -webkit-backdrop-filter: none !important;
+ backdrop-filter: none !important;
+}
+
+html.no-blur :is(.bg-white\/10, .bg-black\/40, .bg-black\/60) {
+ background-color: color-mix(in oklab, black 55%, transparent) !important;
+}
+
+html.no-blur [class*='bg-card/'] {
+ background-color: var(--card) !important;
+}
+html.no-blur [class*='bg-background/'] {
+ background-color: var(--background) !important;
+}
+html.no-blur [class*='bg-popover/'] {
+ background-color: var(--popover) !important;
+}
+html.no-blur [class*='bg-input/'] {
+ background-color: var(--input) !important;
+}
+html.no-blur [class*='bg-surface/'] {
+ background-color: var(--surface) !important;
+}
+
+html.reduce-effects *,
+html.reduce-effects *::before,
+html.reduce-effects *::after {
+ animation-duration: 0.001ms !important;
+ animation-delay: 0ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.001ms !important;
+ transition-delay: 0ms !important;
+}
+
+@theme inline {
+ --radius-sm: calc(var(--radius) * 0.6);
+ --radius-md: calc(var(--radius) * 0.8);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) * 1.4);
+ --radius-2xl: calc(var(--radius) * 1.8);
+ --radius-3xl: calc(var(--radius) * 2.2);
+ --radius-4xl: calc(var(--radius) * 2.6);
+
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --color-muted: var(--muted);
+ --color-muted-foreground: var(--muted-foreground);
+ --color-popover: var(--popover);
+ --color-popover-foreground: var(--popover-foreground);
+ --color-card: var(--card);
+ --color-card-foreground: var(--card-foreground);
+ --color-border: var(--border);
+ --color-input: var(--input);
+ --color-primary: var(--primary);
+ --color-primary-foreground: var(--primary-foreground);
+ --color-secondary: var(--secondary);
+ --color-secondary-foreground: var(--secondary-foreground);
+ --color-accent: var(--accent);
+ --color-accent-foreground: var(--accent-foreground);
+ --color-destructive: var(--destructive);
+ --color-destructive-foreground: var(--destructive-foreground);
+ --color-ring: var(--ring);
+ --color-radius: var(--radius);
+ --color-sidebar: var(--sidebar);
+ --color-sidebar-foreground: var(--sidebar-foreground);
+ --color-sidebar-primary: var(--sidebar-primary);
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
+ --color-sidebar-accent: var(--sidebar-accent);
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
+ --color-sidebar-border: var(--sidebar-border);
+ --color-sidebar-ring: var(--sidebar-ring);
+ --color-surface: var(--surface);
+
+ --font-sans: 'Montserrat Variable', sans-serif;
+ --font-heading: 'Geist Mono Variable', monospace;
+ --font-mono: 'Geist Mono Variable', monospace;
+}
+
+@layer base {
+ * {
+ @apply border-border outline-ring/50;
+ }
+
+ body {
+ @apply bg-background text-foreground;
+ position: relative;
+ -webkit-font-smoothing: auto;
+ -moz-osx-font-smoothing: auto;
+ text-rendering: optimizeLegibility;
+ }
+
+ html {
+ @apply font-sans;
+ font-size: 14px;
+ }
+
+ button {
+ @apply cursor-pointer;
+ }
+
+ .font-mono {
+ font-variant-ligatures: none;
+ font-feature-settings:
+ 'liga' 0,
+ 'clig' 0;
+ }
+
+ * {
+ scrollbar-width: thin;
+ scrollbar-color: transparent transparent;
+ }
+
+ *:hover {
+ scrollbar-color: var(--muted-foreground) transparent;
+ }
+
+ *::-webkit-scrollbar {
+ width: 8px;
+ height: 8px;
+ }
+
+ *::-webkit-scrollbar-track {
+ background: transparent;
+ border-radius: 4px;
+ }
+
+ *::-webkit-scrollbar-thumb {
+ background: transparent;
+ border-radius: 4px;
+ border: 2px solid transparent;
+ background-clip: content-box;
+ transition: background 0.2s ease;
+ }
+
+ *:hover::-webkit-scrollbar-thumb {
+ background: var(--muted-foreground);
+ border: 2px solid transparent;
+ background-clip: content-box;
+ }
+
+ *::-webkit-scrollbar-thumb:hover {
+ background: var(--foreground) !important;
+ border: 2px solid transparent;
+ background-clip: content-box;
+ }
+
+ *::-webkit-scrollbar-corner {
+ background: transparent;
+ }
+}
+
+@layer utilities {
+ .bubble {
+ background:
+ radial-gradient(
+ 120% 100% at 10% 0%,
+ color-mix(in oklch, var(--glass-tint, var(--primary)) 7%, transparent) 0%,
+ transparent 60%
+ ),
+ radial-gradient(
+ 120% 100% at 100% 0%,
+ color-mix(in oklch, var(--glass-base, var(--bg-surface)) 12%, transparent) 0%,
+ transparent 60%
+ );
+ background-color: color-mix(in oklch, var(--glass-base, var(--bg-surface)) 92%, transparent);
+ border-radius: var(--radius-lg);
+ box-shadow: 0 2px 8px -4px color-mix(in oklch, var(--glass-shadow-color) 50%, transparent);
+ }
+
+ .bubble-pill {
+ border-radius: 9999px;
+ padding-inline: 0.875rem;
+ padding-block: 0.5rem;
+ }
+
+ .bubble-shadow {
+ box-shadow: 0 1px 2px -1px color-mix(in oklch, var(--glass-shadow-color) 60%, transparent);
+ }
+
+ .bubble-shadow-lg {
+ box-shadow: 0 6px 20px -10px color-mix(in oklch, var(--glass-shadow-color) 60%, transparent);
+ }
+
+ .hover-lift {
+ transition:
+ transform 200ms ease,
+ box-shadow 200ms ease;
+ }
+
+ .hover-lift:hover {
+ transform: translateZ(0);
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ .hover-lift {
+ transition: none;
+ }
+ .hover-lift:hover {
+ transform: none;
+ }
+ }
+
+ .bubble-outline {
+ background:
+ linear-gradient(var(--glass-base, var(--bg-surface)), var(--glass-base, var(--bg-surface))) padding-box,
+ linear-gradient(135deg, color-mix(in oklch, var(--glass-tint, var(--primary)) 28%, transparent), transparent 60%) border-box;
+ border: 1px solid transparent;
+ border-radius: var(--radius-lg);
+ }
+}
+
+.version-collapsed {
+ writing-mode: vertical-rl;
+ text-orientation: mixed;
+ transform: rotate(180deg);
+ opacity: 0.7;
+}
+
+html,
+body {
+ overflow-x: hidden;
+ max-width: 100vw;
+ min-height: 100dvh;
+}
+
+body {
+ display: flex;
+ flex-direction: column;
+}
+
+main {
+ min-width: 0;
+ max-width: 100%;
+ overflow-x: hidden;
+}
+
+input:-webkit-autofill,
+input:-webkit-autofill:hover,
+input:-webkit-autofill:focus,
+input:-webkit-autofill:active,
+input:autofill,
+input:autofill:hover,
+input:autofill:focus,
+input:autofill:active {
+ -webkit-box-shadow: 0 0 0 9999px transparent inset !important;
+ box-shadow: 0 0 0 9999px transparent inset !important;
+ -webkit-text-fill-color: var(--foreground) !important;
+ transition: background-color 5000s ease-in-out 0s;
+}
+
+@media (max-width: 768px) {
+ .mobile-centered-popover {
+ position: fixed !important;
+ top: 50% !important;
+ left: 50% !important;
+ transform: translate(-50%, -50%) !important;
+ width: 90vw !important;
+ max-width: 24rem !important;
+ margin: 0 !important;
+ }
+}
diff --git a/frontend/src/app.css b/frontend/src/routes/themes.css
similarity index 62%
rename from frontend/src/app.css
rename to frontend/src/routes/themes.css
index 1eb8da401..ffad0ae6e 100644
--- a/frontend/src/app.css
+++ b/frontend/src/routes/themes.css
@@ -1,107 +1,3 @@
-@import 'tailwindcss';
-@import 'tw-animate-css';
-@import '@fontsource-variable/montserrat';
-@import '@fontsource-variable/geist-mono';
-
-@custom-variant dark (&:is(.dark *));
-
-/* Orientation/state variants used by shadcn components (e.g. the slider),
- which key off bits-ui's data-orientation / data-disabled attributes. */
-@custom-variant data-horizontal (&[data-orientation='horizontal']);
-@custom-variant data-vertical (&[data-orientation='vertical']);
-@custom-variant data-disabled (&[data-disabled]);
-
-/* BASE THEMES */
-:root {
- --radius: 0.6rem;
- --background: oklch(1 0 0);
- --foreground: oklch(0.145 0 0);
- --card: oklch(1 0 0);
- --card-foreground: oklch(0.145 0 0);
- --popover: oklch(1 0 0);
- --popover-foreground: oklch(0.145 0 0);
- --primary: oklch(0.606 0.25 292.717);
- --primary-foreground: oklch(0.969 0.016 293.756);
- --secondary: oklch(0.967 0.001 286.375);
- --secondary-foreground: oklch(0.21 0.006 285.885);
- --muted: oklch(0.97 0 0);
- --muted-foreground: oklch(0.556 0 0);
- --accent: oklch(0.97 0 0);
- --accent-foreground: oklch(0.205 0 0);
- --destructive: oklch(0.577 0.245 27.325);
- --border: oklch(0.922 0 0);
- --input: oklch(0.922 0 0);
- --ring: oklch(0.606 0.25 292.717);
- --chart-1: oklch(0.811 0.111 293.571);
- --chart-2: oklch(0.606 0.25 292.717);
- --chart-3: oklch(0.541 0.281 293.009);
- --chart-4: oklch(0.491 0.27 292.581);
- --chart-5: oklch(0.432 0.232 292.759);
- --sidebar: oklch(0.985 0 0);
- --sidebar-foreground: oklch(0.145 0 0);
- --sidebar-primary: oklch(0.606 0.25 292.717);
- --sidebar-primary-foreground: oklch(0.969 0.016 293.756);
- --sidebar-accent: oklch(0.97 0 0);
- --sidebar-accent-foreground: oklch(0.205 0 0);
- --sidebar-border: oklch(0.922 0 0);
- --sidebar-ring: oklch(0.606 0.25 292.717);
- --surface: oklch(0.985 0.006 285.885);
- --bg-surface: var(--surface);
-
- --glass-base: var(--bg-surface);
- --glass-tint: var(--primary);
- --glass-shadow-color: oklch(0 0 0 / 0.12);
-
- --arcane-z-content: 0;
- --arcane-z-raised: 10;
- --arcane-z-sticky: 20;
- --arcane-z-page-floating: 30;
- --arcane-z-app-chrome: 40;
- --arcane-z-overlay: 50;
- --arcane-z-surface: 60;
- --arcane-z-critical-surface: 70;
- --arcane-z-toast: 80;
- --arcane-z-loading: 9999;
-}
-
-.dark {
- --background: oklch(0.145 0 0);
- --foreground: oklch(0.985 0 0);
- --card: oklch(0.205 0 0);
- --card-foreground: oklch(0.985 0 0);
- --popover: oklch(0.205 0 0);
- --popover-foreground: oklch(0.985 0 0);
- --primary: oklch(0.541 0.281 293.009);
- --primary-foreground: oklch(0.969 0.016 293.756);
- --secondary: oklch(0.274 0.006 286.033);
- --secondary-foreground: oklch(0.985 0 0);
- --muted: oklch(0.269 0 0);
- --muted-foreground: oklch(0.708 0 0);
- --accent: oklch(0.269 0 0);
- --accent-foreground: oklch(0.985 0 0);
- --destructive: oklch(0.704 0.191 22.216);
- --border: oklch(1 0 0 / 10%);
- --input: oklch(1 0 0 / 15%);
- --ring: oklch(0.541 0.281 293.009);
- /* --chart-1..5 inherit from :root (identical in both themes) */
- --sidebar: oklch(0.205 0 0);
- --sidebar-foreground: oklch(0.985 0 0);
- --sidebar-primary: oklch(0.541 0.281 293.009);
- --sidebar-primary-foreground: oklch(0.969 0.016 293.756);
- --sidebar-accent: oklch(0.269 0 0);
- --sidebar-accent-foreground: oklch(0.985 0 0);
- --sidebar-border: oklch(1 0 0 / 10%);
- --sidebar-ring: oklch(0.541 0.281 293.009);
- --surface: oklch(0.205 0 0);
-
- --bg-surface: oklch(0.205 0 0);
- --glass-base: var(--bg-surface);
- --glass-tint: var(--primary);
- --glass-shadow-color: oklch(0 0 0 / 0.32);
-}
-
-/* APPLICATION THEMES */
-
:root[data-app-theme='graphite'] {
--background: oklch(0.974 0.005 250.2);
--foreground: oklch(0.215 0.012 264.4);
@@ -564,7 +460,6 @@
--glass-shadow-color: oklch(0 0 0 / 0.34);
}
-/* OLED dark mode — only activates for the default application theme */
.dark.oled:not([data-app-theme]) {
--background: oklch(0 0 0);
--card: oklch(0 0 0 / 0.5);
@@ -582,292 +477,3 @@
--glass-base: oklch(0.02 0.001 285);
--glass-shadow-color: oklch(0 0 0 / 0.6);
}
-
-/*
- * Appearance performance modes (Settings → Appearance), toggled on <html> from
- * theme.ts. Absent by default, so existing installs keep the frosted-glass look
- * until a user opts out.
- *
- * `no-blur` strips backdrop-filter and makes glass surfaces opaque —
- * backdrop-filter is the dominant GPU cost on Firefox/Zen.
- * `reduce-effects` neutralizes decorative animations and transitions.
- */
-html.no-blur *,
-html.no-blur *::before,
-html.no-blur *::after {
- -webkit-backdrop-filter: none !important;
- backdrop-filter: none !important;
-}
-
-/* Modal/sheet/drawer scrims relied on blur for separation — keep them dimmed
- (not solid) so dialogs stay legible in light and dark mode. Declared before
- the opaque-surface rules below so that content surfaces which also carry a
- scrim utility (e.g. the drawer's `bg-white/10 dark:bg-surface/10`) end up
- opaque, while the true overlays — which carry no surface token — stay dimmed. */
-html.no-blur :is(.bg-white\/10, .bg-black\/40, .bg-black\/60) {
- background-color: color-mix(in oklab, black 55%, transparent) !important;
-}
-
-/* Glass surfaces (cards, popovers, dialogs, sheets, drawers, menus) drop to a
- translucent bg + backdrop-blur. With blur stripped they must fall back to an
- opaque themed color or they show through to the page. The substring match
- (no leading-space anchor) is deliberate: it catches the `dark:`-prefixed
- variants (e.g. `dark:bg-surface/10`, `dark:bg-popover/20`) that are the
- active background in dark mode — the reason the previous rules missed them. */
-html.no-blur [class*='bg-card/'] {
- background-color: var(--card) !important;
-}
-html.no-blur [class*='bg-background/'] {
- background-color: var(--background) !important;
-}
-html.no-blur [class*='bg-popover/'] {
- background-color: var(--popover) !important;
-}
-html.no-blur [class*='bg-input/'] {
- background-color: var(--input) !important;
-}
-html.no-blur [class*='bg-surface/'] {
- background-color: var(--surface) !important;
-}
-
-/* Neutralize every animation and transition — catches CSS keyframes as well as
- Svelte component transitions (dialogs, sheets, tooltips, popovers, activity
- center, profile menu). */
-html.reduce-effects *,
-html.reduce-effects *::before,
-html.reduce-effects *::after {
- animation-duration: 0.001ms !important;
- animation-delay: 0ms !important;
- animation-iteration-count: 1 !important;
- transition-duration: 0.001ms !important;
- transition-delay: 0ms !important;
-}
-
-@theme inline {
- --radius-sm: calc(var(--radius) * 0.6);
- --radius-md: calc(var(--radius) * 0.8);
- --radius-lg: var(--radius);
- --radius-xl: calc(var(--radius) * 1.4);
- --radius-2xl: calc(var(--radius) * 1.8);
- --radius-3xl: calc(var(--radius) * 2.2);
- --radius-4xl: calc(var(--radius) * 2.6);
-
- --color-background: var(--background);
- --color-foreground: var(--foreground);
- --color-muted: var(--muted);
- --color-muted-foreground: var(--muted-foreground);
- --color-popover: var(--popover);
- --color-popover-foreground: var(--popover-foreground);
- --color-card: var(--card);
- --color-card-foreground: var(--card-foreground);
- --color-border: var(--border);
- --color-input: var(--input);
- --color-primary: var(--primary);
- --color-primary-foreground: var(--primary-foreground);
- --color-secondary: var(--secondary);
- --color-secondary-foreground: var(--secondary-foreground);
- --color-accent: var(--accent);
- --color-accent-foreground: var(--accent-foreground);
- --color-destructive: var(--destructive);
- --color-destructive-foreground: var(--destructive-foreground);
- --color-ring: var(--ring);
- --color-radius: var(--radius);
- --color-sidebar: var(--sidebar);
- --color-sidebar-foreground: var(--sidebar-foreground);
- --color-sidebar-primary: var(--sidebar-primary);
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
- --color-sidebar-accent: var(--sidebar-accent);
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
- --color-sidebar-border: var(--sidebar-border);
- --color-sidebar-ring: var(--sidebar-ring);
- --color-surface: var(--surface);
-
- --font-sans: 'Montserrat Variable', sans-serif;
- --font-heading: 'Geist Mono Variable', monospace;
- --font-mono: 'Geist Mono Variable', monospace;
-}
-
-@layer base {
- * {
- @apply border-border outline-ring/50;
- }
-
- body {
- @apply bg-background text-foreground;
- position: relative;
- -webkit-font-smoothing: auto;
- -moz-osx-font-smoothing: auto;
- text-rendering: optimizeLegibility;
- }
-
- html {
- @apply font-sans;
- font-size: 14px;
- }
-
- button {
- @apply cursor-pointer;
- }
-
- .font-mono {
- font-variant-ligatures: none;
- font-feature-settings:
- 'liga' 0,
- 'clig' 0;
- }
-
- * {
- scrollbar-width: thin;
- scrollbar-color: transparent transparent;
- }
-
- *:hover {
- scrollbar-color: var(--muted-foreground) transparent;
- }
-
- *::-webkit-scrollbar {
- width: 8px;
- height: 8px;
- }
-
- *::-webkit-scrollbar-track {
- background: transparent;
- border-radius: 4px;
- }
-
- *::-webkit-scrollbar-thumb {
- background: transparent;
- border-radius: 4px;
- border: 2px solid transparent;
- background-clip: content-box;
- transition: background 0.2s ease;
- }
-
- *:hover::-webkit-scrollbar-thumb {
- background: var(--muted-foreground);
- border: 2px solid transparent;
- background-clip: content-box;
- }
-
- *::-webkit-scrollbar-thumb:hover {
- background: var(--foreground) !important;
- border: 2px solid transparent;
- background-clip: content-box;
- }
-
- *::-webkit-scrollbar-corner {
- background: transparent;
- }
-}
-
-@layer utilities {
- .bubble {
- background:
- radial-gradient(
- 120% 100% at 10% 0%,
- color-mix(in oklch, var(--glass-tint, var(--primary)) 7%, transparent) 0%,
- transparent 60%
- ),
- radial-gradient(
- 120% 100% at 100% 0%,
- color-mix(in oklch, var(--glass-base, var(--bg-surface)) 12%, transparent) 0%,
- transparent 60%
- );
- background-color: color-mix(in oklch, var(--glass-base, var(--bg-surface)) 92%, transparent);
- border-radius: var(--radius-lg);
- box-shadow: 0 2px 8px -4px color-mix(in oklch, var(--glass-shadow-color) 50%, transparent);
- }
-
- .bubble-pill {
- border-radius: 9999px;
- padding-inline: 0.875rem;
- padding-block: 0.5rem;
- }
-
- .bubble-shadow {
- box-shadow: 0 1px 2px -1px color-mix(in oklch, var(--glass-shadow-color) 60%, transparent);
- }
-
- .bubble-shadow-lg {
- box-shadow: 0 6px 20px -10px color-mix(in oklch, var(--glass-shadow-color) 60%, transparent);
- }
-
- .hover-lift {
- transition:
- transform 200ms ease,
- box-shadow 200ms ease;
- }
-
- .hover-lift:hover {
- transform: translateZ(0);
- }
-
- @media (prefers-reduced-motion: reduce) {
- .hover-lift {
- transition: none;
- }
- .hover-lift:hover {
- transform: none;
- }
- }
-
- .bubble-outline {
- background:
- linear-gradient(var(--glass-base, var(--bg-surface)), var(--glass-base, var(--bg-surface))) padding-box,
- linear-gradient(135deg, color-mix(in oklch, var(--glass-tint, var(--primary)) 28%, transparent), transparent 60%) border-box;
- border: 1px solid transparent;
- border-radius: var(--radius-lg);
- }
-}
-
-.version-collapsed {
- writing-mode: vertical-rl;
- text-orientation: mixed;
- transform: rotate(180deg);
- opacity: 0.7;
-}
-
-html,
-body {
- overflow-x: hidden;
- max-width: 100vw;
- min-height: 100dvh;
-}
-
-body {
- display: flex;
- flex-direction: column;
-}
-
-main {
- min-width: 0;
- max-width: 100%;
- overflow-x: hidden;
-}
-
-/* Override browser autofill background to match theme */
-input:-webkit-autofill,
-input:-webkit-autofill:hover,
-input:-webkit-autofill:focus,
-input:-webkit-autofill:active,
-input:autofill,
-input:autofill:hover,
-input:autofill:focus,
-input:autofill:active {
- -webkit-box-shadow: 0 0 0 9999px transparent inset !important;
- box-shadow: 0 0 0 9999px transparent inset !important;
- -webkit-text-fill-color: var(--foreground) !important;
- transition: background-color 5000s ease-in-out 0s;
-}
-
-@media (max-width: 768px) {
- .mobile-centered-popover {
- position: fixed !important;
- top: 50% !important;
- left: 50% !important;
- transform: translate(-50%, -50%) !important;
- width: 90vw !important;
- max-width: 24rem !important;
- margin: 0 !important;
- }
-}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6be9be5a6..eef766fc9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -237,6 +237,9 @@ importers:
runed:
specifier: ^0.37.1
+ shadcn-svelte:
+ specifier: ^1.3.0
+ version: 1.3.0([email protected])
svelte-check-rs:
specifier: ^0.10.2
version: 0.10.2(@typescript/[email protected])
@@ -1757,6 +1760,10 @@ packages:
resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}
+ engines: {node: '>=20'}
+
resolution: {integrity: sha512-R2rze/hDX30uul4NZoIZ76ImSJLFxn/1/ZxtKC1L77y2X1k+yYu1joKbAtMA2Fg3hZrTOiw0I5mwVMo0cf250w==}
engines: {node: '>= 6'}
@@ -2329,6 +2336,9 @@ packages:
resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
+
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
@@ -2606,6 +2616,12 @@ packages:
engines: {node: '>=10'}
hasBin: true
+ resolution: {integrity: sha512-Pd4ICWTkTks/b2YU4c9vF2XsX1x5HFPRl5bKszS1LcnWS83x+7T4WiIvbWz8Qh9knkcGZ+SCz1+Dmhdq+AYooA==}
+ hasBin: true
+ peerDependencies:
+ svelte: ^5.0.0
+
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
engines: {node: '>=14'}
@@ -4254,6 +4270,8 @@ snapshots:
+
dependencies:
array-timsort: 1.0.3
@@ -4802,6 +4820,8 @@ snapshots:
+
@@ -5081,6 +5101,14 @@ snapshots:
+ dependencies:
+ commander: 14.0.3
+ node-fetch-native: 1.6.7
+ postcss: 8.5.15
+ svelte: 5.56.4
+ tailwind-merge: 3.6.0
+