Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
feat: add additional theme variants (#2096)
Felix Nüsse1414d14ff9d1
diff --git a/backend/internal/models/settings.go b/backend/internal/models/settings.goindex ddd2ee421..350e17633 100644--- a/backend/internal/models/settings.go+++ b/backend/internal/models/settings.go@@ -51,6 +51,7 @@ type Settings struct {EnableGravatar SettingVariable `key:"enableGravatar" meta:"label=Enable Gravatar;type=boolean;keywords=gravatar,avatar,profile,picture,image,user,photo;category=general;description=Enable Gravatar profile pictures for users"`DefaultShell SettingVariable `key:"defaultShell" meta:"label=Default Shell;type=text;keywords=shell,default,shellpath,path,login;category=general;description=Default shell to use for commands"`EnvironmentHealthInterval SettingVariable `key:"environmentHealthInterval" meta:"label=Environment Health Check Interval;type=cron;keywords=environment,health,check,interval,frequency,heartbeat,status,monitoring,uptime,jobs,schedule;description=How often to check environment connectivity (cron expression)" catmeta:"id=jobschedule;title=Job Schedule;icon=jobs;url=/settings/jobs;description=Configure how often Arcane background jobs run"`+ ApplicationTheme SettingVariable `key:"applicationTheme,public,local" meta:"label=Application Theme;type=select;keywords=theme,appearance,style,visual,palette,background,interface,ui;category=appearance;description=Choose the overall visual theme for the application"`AccentColor SettingVariable `key:"accentColor,public,local" meta:"label=Accent Color;type=text;keywords=color,accent,theme,css,appearance,ui;category=general;description=Primary accent color for UI"`OledMode SettingVariable `key:"oledMode,public,local" meta:"label=OLED Mode;type=boolean;keywords=oled,dark,theme,black,amoled,appearance,display;category=general;description=Use true-black backgrounds for OLED displays (only active in dark mode)"`diff --git a/backend/internal/services/settings_service.go b/backend/internal/services/settings_service.goindex d6d6f03a3..a609d1a45 100644--- a/backend/internal/services/settings_service.go+++ b/backend/internal/services/settings_service.go@@ -152,6 +152,7 @@ func (s *SettingsService) getDefaultSettings() *models.Settings {MobileNavigationShowLabels: models.SettingVariable{Value: "true"},SidebarHoverExpansion: models.SettingVariable{Value: "true"},KeyboardShortcutsEnabled: models.SettingVariable{Value: "true"},+ ApplicationTheme: models.SettingVariable{Value: "default"},AccentColor: models.SettingVariable{Value: "oklch(0.606 0.25 292.717)"},OledMode: models.SettingVariable{Value: "false"},MaxImageUploadSize: models.SettingVariable{Value: "500"},diff --git a/frontend/components.json b/frontend/components.jsonindex 00cdc711f..a592aa333 100644--- a/frontend/components.json+++ b/frontend/components.json@@ -1,6 +1,6 @@{"$schema": "https://shadcn-svelte.com/schema.json",- "style": "default",+ "style": "nova","tailwind": {"css": "src/app.css","baseColor": "violet"diff --git a/frontend/messages/en.json b/frontend/messages/en.jsonindex 28ff3094c..e5dca6fdd 100644--- a/frontend/messages/en.json+++ b/frontend/messages/en.json@@ -4,6 +4,24 @@"layout_title": "Arcane","accent_color": "Accent Color","accent_color_description": "Select an accent color to customize the appearance of Arcane",+ "application_theme": "Application Theme",+ "application_theme_description": "Choose the overall visual theme for Arcane. This setting is stored globally and previews immediately.",+ "application_theme_default": "Default",+ "application_theme_default_description": "Balanced neutrals with Arcane's default palette.",+ "application_theme_graphite": "Graphite",+ "application_theme_graphite_description": "Cool slate surfaces with a tighter, lower-contrast feel.",+ "application_theme_ocean": "Ocean",+ "application_theme_ocean_description": "Clean blue surfaces with a cooler application shell.",+ "application_theme_amber": "Amber",+ "application_theme_amber_description": "Warm canvas tones with softer contrast across panels.",+ "application_theme_github": "GitHub",+ "application_theme_github_description": "Neutral GitHub-style surfaces with crisp blue structure.",+ "application_theme_nord": "Nord",+ "application_theme_nord_description": "Arctic slate tones inspired by the Nord color family.",+ "application_theme_everforest": "Everforest",+ "application_theme_everforest_description": "Muted green-brown surfaces inspired by Everforest.",+ "application_theme_rosepine": "Rosé Pine",+ "application_theme_rosepine_description": "Soft mauve and sand surfaces inspired by Rosé Pine.","custom_accent_color": "Custom Accent Color","custom_accent_color_description": "Enter a custom color using valid CSS color formats (e.g., hex, rgb, hsl).","color_value": "Color value",@@ -1162,10 +1180,11 @@"appearance_language_current_user_description": "Language preference is saved for the current user only.","appearance_theme_current_user_description": "Theme preference is saved for the current user only.","oled_mode": "OLED Mode",- "oled_mode_description": "Use true-black backgrounds for OLED displays. Only active in dark mode.",+ "oled_mode_description": "Use true-black backgrounds for OLED displays. Only active with the Default application theme in dark mode.","oled_mode_enabled": "Enabled","oled_mode_disabled": "Disabled","oled_mode_requires_dark": "Enable dark mode to use OLED mode.",+ "oled_mode_requires_default_theme": "Switch back to the Default application theme to use OLED mode.","navigation_mode_label": "Navigation Mode","navigation_mode_description": "Choose between floating navigation that overlays content or docked navigation that takes up screen space","navigation_mode_floating": "Floating",diff --git a/frontend/package.json b/frontend/package.jsonindex 770028da1..e96cae280 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -38,6 +38,7 @@"ansi-to-html": "^0.7.2","axios": "^1.13.6","date-fns": "^4.1.0",+ "embla-carousel-svelte": "^8.6.0","js-yaml": "^4.1.1","prettier": "^3.8.1","prettier-plugin-svelte": "^3.5.1",diff --git a/frontend/src/app.css b/frontend/src/app.cssindex ab1ceefe5..aa29249b1 100644--- a/frontend/src/app.css+++ b/frontend/src/app.css@@ -35,6 +35,7 @@}}+/* BASE THEMES */:root {--radius: 0.65rem;--background: oklch(1 0 0);@@ -117,10 +118,488 @@--glass-shadow-color: oklch(0 0 0 / 0.32);}-/* OLED dark mode — only activates when .dark is also present */-.dark.oled {+/* APPLICATION THEMES */++:root[data-app-theme='graphite'] {+ --background: oklch(0.974 0.005 250.2);+ --foreground: oklch(0.215 0.012 264.4);+ --card: oklch(0.992 0.003 250.2 / 0.8);+ --card-foreground: oklch(0.215 0.012 264.4);+ --popover: oklch(0.992 0.003 250.2);+ --popover-foreground: oklch(0.215 0.012 264.4);+ --primary: oklch(0.57 0.128 259.8);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.948 0.006 251.5 / 0.82);+ --secondary-foreground: oklch(0.278 0.01 264.1);+ --muted: oklch(0.948 0.006 251.5 / 0.82);+ --muted-foreground: oklch(0.47 0.013 258.5);+ --accent: oklch(0.948 0.006 251.5 / 0.82);+ --accent-foreground: oklch(0.278 0.01 264.1);+ --border: oklch(0.885 0.008 252.4);+ --input: oklch(0.885 0.008 252.4);+ --ring: oklch(0.57 0.128 259.8);+ --sidebar: oklch(0.962 0.005 251.6 / 0.88);+ --sidebar-foreground: oklch(0.215 0.012 264.4);+ --sidebar-primary: oklch(0.57 0.128 259.8);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.944 0.007 251.2 / 0.82);+ --sidebar-accent-foreground: oklch(0.278 0.01 264.1);+ --sidebar-border: oklch(0.885 0.008 252.4);+ --sidebar-ring: oklch(0.57 0.128 259.8);+ --surface: oklch(0.964 0.005 251.6);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.11 0.012 264.4 / 0.12);+ --glass-noise-opacity: 0.018;+}++:root.dark[data-app-theme='graphite'] {+ --background: oklch(0.178 0.008 264.8);+ --foreground: oklch(0.96 0.004 251.3);+ --card: oklch(0.226 0.01 264.8 / 0.72);+ --card-foreground: oklch(0.96 0.004 251.3);+ --popover: oklch(0.226 0.01 264.8);+ --popover-foreground: oklch(0.96 0.004 251.3);+ --primary: oklch(0.68 0.104 255.3);+ --primary-foreground: oklch(0.142 0.008 264.8);+ --secondary: oklch(0.286 0.008 264.6 / 0.62);+ --secondary-foreground: oklch(0.96 0.004 251.3);+ --muted: oklch(0.286 0.008 264.6 / 0.62);+ --muted-foreground: oklch(0.754 0.013 255.9);+ --accent: oklch(0.286 0.008 264.6 / 0.62);+ --accent-foreground: oklch(0.96 0.004 251.3);+ --border: oklch(0.94 0.003 251.3 / 0.12);+ --input: oklch(0.94 0.003 251.3 / 0.16);+ --ring: oklch(0.68 0.104 255.3);+ --sidebar: oklch(0.214 0.009 264.8 / 0.82);+ --sidebar-foreground: oklch(0.96 0.004 251.3);+ --sidebar-primary: oklch(0.68 0.104 255.3);+ --sidebar-primary-foreground: oklch(0.142 0.008 264.8);+ --sidebar-accent: oklch(0.286 0.008 264.6 / 0.62);+ --sidebar-accent-foreground: oklch(0.96 0.004 251.3);+ --sidebar-border: oklch(0.94 0.003 251.3 / 0.12);+ --sidebar-ring: oklch(0.68 0.104 255.3);+ --surface: oklch(0.218 0.009 264.8);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.38);+ --glass-noise-opacity: 0.018;+}++:root[data-app-theme='ocean'] {+ --background: oklch(0.978 0.012 228.6);+ --foreground: oklch(0.242 0.03 246.1);+ --card: oklch(0.992 0.008 223.4 / 0.82);+ --card-foreground: oklch(0.242 0.03 246.1);+ --popover: oklch(0.992 0.008 223.4);+ --popover-foreground: oklch(0.242 0.03 246.1);+ --primary: oklch(0.6 0.145 233.7);+ --primary-foreground: oklch(0.99 0.002 228.6);+ --secondary: oklch(0.944 0.014 221.8 / 0.84);+ --secondary-foreground: oklch(0.282 0.029 244.6);+ --muted: oklch(0.944 0.014 221.8 / 0.84);+ --muted-foreground: oklch(0.49 0.026 237.8);+ --accent: oklch(0.944 0.014 221.8 / 0.84);+ --accent-foreground: oklch(0.282 0.029 244.6);+ --border: oklch(0.882 0.018 222.5);+ --input: oklch(0.882 0.018 222.5);+ --ring: oklch(0.6 0.145 233.7);+ --sidebar: oklch(0.962 0.014 223.8 / 0.9);+ --sidebar-foreground: oklch(0.242 0.03 246.1);+ --sidebar-primary: oklch(0.6 0.145 233.7);+ --sidebar-primary-foreground: oklch(0.99 0.002 228.6);+ --sidebar-accent: oklch(0.94 0.015 222.1 / 0.84);+ --sidebar-accent-foreground: oklch(0.282 0.029 244.6);+ --sidebar-border: oklch(0.882 0.018 222.5);+ --sidebar-ring: oklch(0.6 0.145 233.7);+ --surface: oklch(0.964 0.012 223.7);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.13 0.02 246.1 / 0.12);+ --glass-noise-opacity: 0.02;+}++:root.dark[data-app-theme='ocean'] {+ --background: oklch(0.196 0.022 247.6);+ --foreground: oklch(0.965 0.005 223.6);+ --card: oklch(0.244 0.02 244.5 / 0.74);+ --card-foreground: oklch(0.965 0.005 223.6);+ --popover: oklch(0.244 0.02 244.5);+ --popover-foreground: oklch(0.965 0.005 223.6);+ --primary: oklch(0.7 0.115 223.5);+ --primary-foreground: oklch(0.182 0.02 247.6);+ --secondary: oklch(0.304 0.018 241.8 / 0.64);+ --secondary-foreground: oklch(0.965 0.005 223.6);+ --muted: oklch(0.304 0.018 241.8 / 0.64);+ --muted-foreground: oklch(0.77 0.024 223.2);+ --accent: oklch(0.304 0.018 241.8 / 0.64);+ --accent-foreground: oklch(0.965 0.005 223.6);+ --border: oklch(0.95 0.004 223.6 / 0.12);+ --input: oklch(0.95 0.004 223.6 / 0.16);+ --ring: oklch(0.7 0.115 223.5);+ --sidebar: oklch(0.226 0.02 244.3 / 0.82);+ --sidebar-foreground: oklch(0.965 0.005 223.6);+ --sidebar-primary: oklch(0.7 0.115 223.5);+ --sidebar-primary-foreground: oklch(0.182 0.02 247.6);+ --sidebar-accent: oklch(0.304 0.018 241.8 / 0.64);+ --sidebar-accent-foreground: oklch(0.965 0.005 223.6);+ --sidebar-border: oklch(0.95 0.004 223.6 / 0.12);+ --sidebar-ring: oklch(0.7 0.115 223.5);+ --surface: oklch(0.232 0.019 244.2);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.36);+ --glass-noise-opacity: 0.02;+}++:root[data-app-theme='amber'] {+ --background: oklch(0.975 0.015 76.1);+ --foreground: oklch(0.29 0.03 63.6);+ --card: oklch(0.99 0.012 76.8 / 0.84);+ --card-foreground: oklch(0.29 0.03 63.6);+ --popover: oklch(0.99 0.012 76.8);+ --popover-foreground: oklch(0.29 0.03 63.6);+ --primary: oklch(0.72 0.155 69.7);+ --primary-foreground: oklch(0.19 0.02 63.6);+ --secondary: oklch(0.945 0.02 73.8 / 0.86);+ --secondary-foreground: oklch(0.34 0.035 63.6);+ --muted: oklch(0.945 0.02 73.8 / 0.86);+ --muted-foreground: oklch(0.54 0.03 61.2);+ --accent: oklch(0.945 0.02 73.8 / 0.86);+ --accent-foreground: oklch(0.34 0.035 63.6);+ --border: oklch(0.89 0.022 73.4);+ --input: oklch(0.89 0.022 73.4);+ --ring: oklch(0.72 0.155 69.7);+ --sidebar: oklch(0.958 0.018 74.1 / 0.9);+ --sidebar-foreground: oklch(0.29 0.03 63.6);+ --sidebar-primary: oklch(0.72 0.155 69.7);+ --sidebar-primary-foreground: oklch(0.19 0.02 63.6);+ --sidebar-accent: oklch(0.942 0.021 74.2 / 0.86);+ --sidebar-accent-foreground: oklch(0.34 0.035 63.6);+ --sidebar-border: oklch(0.89 0.022 73.4);+ --sidebar-ring: oklch(0.72 0.155 69.7);+ --surface: oklch(0.962 0.016 74.1);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.16 0.024 63.6 / 0.12);+ --glass-noise-opacity: 0.022;+}++:root.dark[data-app-theme='amber'] {+ --background: oklch(0.212 0.017 63.8);+ --foreground: oklch(0.968 0.005 73.6);+ --card: oklch(0.262 0.016 63.2 / 0.76);+ --card-foreground: oklch(0.968 0.005 73.6);+ --popover: oklch(0.262 0.016 63.2);+ --popover-foreground: oklch(0.968 0.005 73.6);+ --primary: oklch(0.77 0.135 74.1);+ --primary-foreground: oklch(0.18 0.014 63.8);+ --secondary: oklch(0.318 0.016 63.2 / 0.66);+ --secondary-foreground: oklch(0.968 0.005 73.6);+ --muted: oklch(0.318 0.016 63.2 / 0.66);+ --muted-foreground: oklch(0.8 0.023 72.4);+ --accent: oklch(0.318 0.016 63.2 / 0.66);+ --accent-foreground: oklch(0.968 0.005 73.6);+ --border: oklch(0.968 0.004 73.6 / 0.13);+ --input: oklch(0.968 0.004 73.6 / 0.17);+ --ring: oklch(0.77 0.135 74.1);+ --sidebar: oklch(0.236 0.016 63.3 / 0.84);+ --sidebar-foreground: oklch(0.968 0.005 73.6);+ --sidebar-primary: oklch(0.77 0.135 74.1);+ --sidebar-primary-foreground: oklch(0.18 0.014 63.8);+ --sidebar-accent: oklch(0.318 0.016 63.2 / 0.66);+ --sidebar-accent-foreground: oklch(0.968 0.005 73.6);+ --sidebar-border: oklch(0.968 0.004 73.6 / 0.13);+ --sidebar-ring: oklch(0.77 0.135 74.1);+ --surface: oklch(0.242 0.016 63.3);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.34);+ --glass-noise-opacity: 0.02;+}++:root[data-app-theme='github'] {+ --background: oklch(0.975 0.002 247.9);+ --foreground: oklch(0.244 0.008 248.2);+ --card: oklch(0.996 0.001 247.9 / 0.84);+ --card-foreground: oklch(0.244 0.008 248.2);+ --popover: oklch(0.996 0.001 247.9);+ --popover-foreground: oklch(0.244 0.008 248.2);+ --primary: oklch(0.56 0.172 254.1);+ --primary-foreground: oklch(0.99 0.002 247.9);+ --secondary: oklch(0.956 0.003 247.1 / 0.86);+ --secondary-foreground: oklch(0.304 0.008 248.2);+ --muted: oklch(0.956 0.003 247.1 / 0.86);+ --muted-foreground: oklch(0.49 0.008 248.4);+ --accent: oklch(0.956 0.003 247.1 / 0.86);+ --accent-foreground: oklch(0.304 0.008 248.2);+ --border: oklch(0.872 0.004 247.1);+ --input: oklch(0.872 0.004 247.1);+ --ring: oklch(0.56 0.172 254.1);+ --sidebar: oklch(0.966 0.003 247.3 / 0.9);+ --sidebar-foreground: oklch(0.244 0.008 248.2);+ --sidebar-primary: oklch(0.56 0.172 254.1);+ --sidebar-primary-foreground: oklch(0.99 0.002 247.9);+ --sidebar-accent: oklch(0.952 0.003 247.1 / 0.86);+ --sidebar-accent-foreground: oklch(0.304 0.008 248.2);+ --sidebar-border: oklch(0.872 0.004 247.1);+ --sidebar-ring: oklch(0.56 0.172 254.1);+ --surface: oklch(0.968 0.003 247.3);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.12 0.008 248.2 / 0.1);+ --glass-noise-opacity: 0.012;+}++:root.dark[data-app-theme='github'] {+ --background: oklch(0.199 0.008 247.8);+ --foreground: oklch(0.952 0.003 247.6);+ --card: oklch(0.242 0.009 247.8 / 0.76);+ --card-foreground: oklch(0.952 0.003 247.6);+ --popover: oklch(0.242 0.009 247.8);+ --popover-foreground: oklch(0.952 0.003 247.6);+ --primary: oklch(0.68 0.122 252.9);+ --primary-foreground: oklch(0.17 0.008 247.8);+ --secondary: oklch(0.296 0.008 247.8 / 0.66);+ --secondary-foreground: oklch(0.952 0.003 247.6);+ --muted: oklch(0.296 0.008 247.8 / 0.66);+ --muted-foreground: oklch(0.77 0.008 247.6);+ --accent: oklch(0.296 0.008 247.8 / 0.66);+ --accent-foreground: oklch(0.952 0.003 247.6);+ --border: oklch(0.952 0.003 247.6 / 0.12);+ --input: oklch(0.952 0.003 247.6 / 0.16);+ --ring: oklch(0.68 0.122 252.9);+ --sidebar: oklch(0.224 0.009 247.8 / 0.84);+ --sidebar-foreground: oklch(0.952 0.003 247.6);+ --sidebar-primary: oklch(0.68 0.122 252.9);+ --sidebar-primary-foreground: oklch(0.17 0.008 247.8);+ --sidebar-accent: oklch(0.296 0.008 247.8 / 0.66);+ --sidebar-accent-foreground: oklch(0.952 0.003 247.6);+ --sidebar-border: oklch(0.952 0.003 247.6 / 0.12);+ --sidebar-ring: oklch(0.68 0.122 252.9);+ --surface: oklch(0.23 0.009 247.8);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.34);+ --glass-noise-opacity: 0.012;+}++:root[data-app-theme='nord'] {+ --background: oklch(0.951 0.012 259.6);+ --foreground: oklch(0.305 0.023 258.6);+ --card: oklch(0.982 0.008 257.7 / 0.84);+ --card-foreground: oklch(0.305 0.023 258.6);+ --popover: oklch(0.982 0.008 257.7);+ --popover-foreground: oklch(0.305 0.023 258.6);+ --primary: oklch(0.607 0.067 254.2);+ --primary-foreground: oklch(0.978 0.004 257.7);+ --secondary: oklch(0.92 0.011 257.8 / 0.86);+ --secondary-foreground: oklch(0.348 0.024 258.8);+ --muted: oklch(0.92 0.011 257.8 / 0.86);+ --muted-foreground: oklch(0.54 0.02 258.5);+ --accent: oklch(0.92 0.011 257.8 / 0.86);+ --accent-foreground: oklch(0.348 0.024 258.8);+ --border: oklch(0.84 0.013 257.6);+ --input: oklch(0.84 0.013 257.6);+ --ring: oklch(0.607 0.067 254.2);+ --sidebar: oklch(0.93 0.01 258.1 / 0.9);+ --sidebar-foreground: oklch(0.305 0.023 258.6);+ --sidebar-primary: oklch(0.607 0.067 254.2);+ --sidebar-primary-foreground: oklch(0.978 0.004 257.7);+ --sidebar-accent: oklch(0.916 0.011 257.8 / 0.86);+ --sidebar-accent-foreground: oklch(0.348 0.024 258.8);+ --sidebar-border: oklch(0.84 0.013 257.6);+ --sidebar-ring: oklch(0.607 0.067 254.2);+ --surface: oklch(0.932 0.01 258.1);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.16 0.02 258.6 / 0.1);+ --glass-noise-opacity: 0.018;+}++:root.dark[data-app-theme='nord'] {+ --background: oklch(0.269 0.026 260.8);+ --foreground: oklch(0.922 0.011 257.4);+ --card: oklch(0.324 0.024 259.5 / 0.78);+ --card-foreground: oklch(0.922 0.011 257.4);+ --popover: oklch(0.324 0.024 259.5);+ --popover-foreground: oklch(0.922 0.011 257.4);+ --primary: oklch(0.69 0.079 243.4);+ --primary-foreground: oklch(0.236 0.026 260.8);+ --secondary: oklch(0.378 0.023 259.2 / 0.68);+ --secondary-foreground: oklch(0.922 0.011 257.4);+ --muted: oklch(0.378 0.023 259.2 / 0.68);+ --muted-foreground: oklch(0.748 0.024 254.6);+ --accent: oklch(0.378 0.023 259.2 / 0.68);+ --accent-foreground: oklch(0.922 0.011 257.4);+ --border: oklch(0.922 0.011 257.4 / 0.12);+ --input: oklch(0.922 0.011 257.4 / 0.17);+ --ring: oklch(0.69 0.079 243.4);+ --sidebar: oklch(0.295 0.025 260.1 / 0.86);+ --sidebar-foreground: oklch(0.922 0.011 257.4);+ --sidebar-primary: oklch(0.69 0.079 243.4);+ --sidebar-primary-foreground: oklch(0.236 0.026 260.8);+ --sidebar-accent: oklch(0.378 0.023 259.2 / 0.68);+ --sidebar-accent-foreground: oklch(0.922 0.011 257.4);+ --sidebar-border: oklch(0.922 0.011 257.4 / 0.12);+ --sidebar-ring: oklch(0.69 0.079 243.4);+ --surface: oklch(0.302 0.025 260);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.33);+ --glass-noise-opacity: 0.018;+}++:root[data-app-theme='everforest'] {+ --background: oklch(0.946 0.018 111.4);+ --foreground: oklch(0.322 0.026 156.1);+ --card: oklch(0.978 0.014 103.2 / 0.86);+ --card-foreground: oklch(0.322 0.026 156.1);+ --popover: oklch(0.978 0.014 103.2);+ --popover-foreground: oklch(0.322 0.026 156.1);+ --primary: oklch(0.612 0.095 142.8);+ --primary-foreground: oklch(0.978 0.004 103.2);+ --secondary: oklch(0.912 0.02 105.2 / 0.86);+ --secondary-foreground: oklch(0.37 0.027 156.1);+ --muted: oklch(0.912 0.02 105.2 / 0.86);+ --muted-foreground: oklch(0.548 0.026 138.4);+ --accent: oklch(0.912 0.02 105.2 / 0.86);+ --accent-foreground: oklch(0.37 0.027 156.1);+ --border: oklch(0.83 0.022 104.6);+ --input: oklch(0.83 0.022 104.6);+ --ring: oklch(0.612 0.095 142.8);+ --sidebar: oklch(0.922 0.019 104.9 / 0.9);+ --sidebar-foreground: oklch(0.322 0.026 156.1);+ --sidebar-primary: oklch(0.612 0.095 142.8);+ --sidebar-primary-foreground: oklch(0.978 0.004 103.2);+ --sidebar-accent: oklch(0.908 0.021 105.2 / 0.86);+ --sidebar-accent-foreground: oklch(0.37 0.027 156.1);+ --sidebar-border: oklch(0.83 0.022 104.6);+ --sidebar-ring: oklch(0.612 0.095 142.8);+ --surface: oklch(0.926 0.018 104.9);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.18 0.022 156.1 / 0.1);+ --glass-noise-opacity: 0.018;+}++:root.dark[data-app-theme='everforest'] {+ --background: oklch(0.291 0.023 155.2);+ --foreground: oklch(0.92 0.01 104.4);+ --card: oklch(0.342 0.022 149.2 / 0.8);+ --card-foreground: oklch(0.92 0.01 104.4);+ --popover: oklch(0.342 0.022 149.2);+ --popover-foreground: oklch(0.92 0.01 104.4);+ --primary: oklch(0.688 0.087 145.7);+ --primary-foreground: oklch(0.248 0.022 155.2);+ --secondary: oklch(0.388 0.021 149.5 / 0.68);+ --secondary-foreground: oklch(0.92 0.01 104.4);+ --muted: oklch(0.388 0.021 149.5 / 0.68);+ --muted-foreground: oklch(0.77 0.022 119.7);+ --accent: oklch(0.388 0.021 149.5 / 0.68);+ --accent-foreground: oklch(0.92 0.01 104.4);+ --border: oklch(0.92 0.01 104.4 / 0.12);+ --input: oklch(0.92 0.01 104.4 / 0.17);+ --ring: oklch(0.688 0.087 145.7);+ --sidebar: oklch(0.318 0.022 151.1 / 0.86);+ --sidebar-foreground: oklch(0.92 0.01 104.4);+ --sidebar-primary: oklch(0.688 0.087 145.7);+ --sidebar-primary-foreground: oklch(0.248 0.022 155.2);+ --sidebar-accent: oklch(0.388 0.021 149.5 / 0.68);+ --sidebar-accent-foreground: oklch(0.92 0.01 104.4);+ --sidebar-border: oklch(0.92 0.01 104.4 / 0.12);+ --sidebar-ring: oklch(0.688 0.087 145.7);+ --surface: oklch(0.324 0.022 151);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.34);+ --glass-noise-opacity: 0.018;+}++:root[data-app-theme='rosepine'] {+ --background: oklch(0.968 0.014 36.5);+ --foreground: oklch(0.47 0.044 313.7);+ --card: oklch(0.989 0.009 33.9 / 0.86);+ --card-foreground: oklch(0.47 0.044 313.7);+ --popover: oklch(0.989 0.009 33.9);+ --popover-foreground: oklch(0.47 0.044 313.7);+ --primary: oklch(0.645 0.095 347.1);+ --primary-foreground: oklch(0.988 0.004 33.9);+ --secondary: oklch(0.938 0.016 18.9 / 0.86);+ --secondary-foreground: oklch(0.514 0.04 313.7);+ --muted: oklch(0.938 0.016 18.9 / 0.86);+ --muted-foreground: oklch(0.606 0.027 324.8);+ --accent: oklch(0.938 0.016 18.9 / 0.86);+ --accent-foreground: oklch(0.514 0.04 313.7);+ --border: oklch(0.86 0.018 19.8);+ --input: oklch(0.86 0.018 19.8);+ --ring: oklch(0.645 0.095 347.1);+ --sidebar: oklch(0.948 0.014 22.4 / 0.9);+ --sidebar-foreground: oklch(0.47 0.044 313.7);+ --sidebar-primary: oklch(0.645 0.095 347.1);+ --sidebar-primary-foreground: oklch(0.988 0.004 33.9);+ --sidebar-accent: oklch(0.934 0.016 18.9 / 0.86);+ --sidebar-accent-foreground: oklch(0.514 0.04 313.7);+ --sidebar-border: oklch(0.86 0.018 19.8);+ --sidebar-ring: oklch(0.645 0.095 347.1);+ --surface: oklch(0.95 0.014 22.4);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.19 0.024 313.7 / 0.1);+ --glass-noise-opacity: 0.016;+}++:root.dark[data-app-theme='rosepine'] {+ --background: oklch(0.277 0.026 312.4);+ --foreground: oklch(0.925 0.012 18.6);+ --card: oklch(0.332 0.025 309.8 / 0.8);+ --card-foreground: oklch(0.925 0.012 18.6);+ --popover: oklch(0.332 0.025 309.8);+ --popover-foreground: oklch(0.925 0.012 18.6);+ --primary: oklch(0.72 0.072 348.2);+ --primary-foreground: oklch(0.238 0.024 312.4);+ --secondary: oklch(0.382 0.024 310.1 / 0.7);+ --secondary-foreground: oklch(0.925 0.012 18.6);+ --muted: oklch(0.382 0.024 310.1 / 0.7);+ --muted-foreground: oklch(0.776 0.018 9.1);+ --accent: oklch(0.382 0.024 310.1 / 0.7);+ --accent-foreground: oklch(0.925 0.012 18.6);+ --border: oklch(0.925 0.012 18.6 / 0.12);+ --input: oklch(0.925 0.012 18.6 / 0.17);+ --ring: oklch(0.72 0.072 348.2);+ --sidebar: oklch(0.303 0.025 311 / 0.86);+ --sidebar-foreground: oklch(0.925 0.012 18.6);+ --sidebar-primary: oklch(0.72 0.072 348.2);+ --sidebar-primary-foreground: oklch(0.238 0.024 312.4);+ --sidebar-accent: oklch(0.382 0.024 310.1 / 0.7);+ --sidebar-accent-foreground: oklch(0.925 0.012 18.6);+ --sidebar-border: oklch(0.925 0.012 18.6 / 0.12);+ --sidebar-ring: oklch(0.72 0.072 348.2);+ --surface: oklch(0.31 0.025 311);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.34);+ --glass-noise-opacity: 0.016;+}++/* 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); /* Deepen to near true black */+ --card: oklch(0 0 0 / 0.5);--popover: oklch(0.04 0.002 285);--secondary: oklch(0.1 0.004 286 / 0.55);--muted: oklch(0.1 0.004 286 / 0.55);diff --git a/frontend/src/lib/components/application-theme/application-theme-picker.svelte b/frontend/src/lib/components/application-theme/application-theme-picker.sveltenew file mode 100644index 000000000..0be92e830--- /dev/null+++ b/frontend/src/lib/components/application-theme/application-theme-picker.svelte@@ -0,0 +1,208 @@+<script lang="ts">+ import * as Card from '$lib/components/ui/card/index.js';+ import * as Carousel from '$lib/components/ui/carousel/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import * as RadioGroup from '$lib/components/ui/radio-group/index.js';+ import { mode } from 'mode-watcher';+ import { m } from '$lib/paraglide/messages';+ import { APPLICATION_THEME_OPTIONS, applyApplicationTheme, resolveApplicationTheme } from '$lib/utils/application-theme-util';+ import type { CarouselAPI } from '$lib/components/ui/carousel/context.js';+ import type { ApplicationTheme } from '$lib/types/settings.type';++ let {+ selectedTheme = $bindable(),+ accentColor = '',+ disabled = false+ }: {+ selectedTheme: ApplicationTheme;+ accentColor?: string;+ disabled?: boolean;+ } = $props();++ const themeCopy: Record<ApplicationTheme, { label: string; description: string }> = {+ default: {+ label: m.application_theme_default(),+ description: m.application_theme_default_description()+ },+ graphite: {+ label: m.application_theme_graphite(),+ description: m.application_theme_graphite_description()+ },+ ocean: {+ label: m.application_theme_ocean(),+ description: m.application_theme_ocean_description()+ },+ amber: {+ label: m.application_theme_amber(),+ description: m.application_theme_amber_description()+ },+ github: {+ label: m.application_theme_github(),+ description: m.application_theme_github_description()+ },+ nord: {+ label: m.application_theme_nord(),+ description: m.application_theme_nord_description()+ },+ everforest: {+ label: m.application_theme_everforest(),+ description: m.application_theme_everforest_description()+ },+ rosepine: {+ label: m.application_theme_rosepine(),+ description: m.application_theme_rosepine_description()+ }+ };++ let carouselApi = $state<CarouselAPI | undefined>(undefined);+ let hasInitializedCarouselPosition = false;+ const isDarkMode = $derived(mode.current === 'dark');++ $effect(() => {+ const selectedIndex = APPLICATION_THEME_OPTIONS.findIndex((theme) => theme.value === selectedTheme);++ if (!carouselApi || selectedIndex < 0) {+ return;+ }++ if (carouselApi.selectedScrollSnap() === selectedIndex) {+ hasInitializedCarouselPosition = true;+ return;+ }++ carouselApi.scrollTo(selectedIndex, !hasInitializedCarouselPosition);+ hasInitializedCarouselPosition = true;+ });++ $effect(() => {+ if (!carouselApi) {+ return;+ }++ const api = carouselApi;++ const syncCenteredTheme = () => {+ const centeredTheme = APPLICATION_THEME_OPTIONS[api.selectedScrollSnap()]?.value;++ if (!centeredTheme || centeredTheme === selectedTheme) {+ return;+ }++ selectedTheme = centeredTheme;+ applyApplicationTheme(centeredTheme);+ };++ api.on('select', syncCenteredTheme);+ api.on('reInit', syncCenteredTheme);++ return () => {+ api.off('select', syncCenteredTheme);+ api.off('reInit', syncCenteredTheme);+ };+ });++ function handleThemeChange(value: string) {+ if (disabled) {+ return;+ }++ const nextTheme = resolveApplicationTheme(value);+ selectedTheme = nextTheme;+ applyApplicationTheme(nextTheme);+ }+</script>++<RadioGroup.Root class="space-y-3" value={selectedTheme} onValueChange={handleThemeChange}>+ <div class="bg-background/30 overflow-hidden rounded-xl border border-dashed p-2 sm:p-3">+ <Carousel.Root+ class="w-full"+ opts={{ align: 'center', loop: true }}+ setApi={(api) => {+ carouselApi = api;+ }}+ >+ <Carousel.Content>+ {#each APPLICATION_THEME_OPTIONS as theme (theme.value)}+ {@const option = themeCopy[theme.value]}+ {@const preview = isDarkMode ? theme.preview.dark : theme.preview.light}+ {@const previewAccentColor = accentColor.trim() || preview.primary}+ <Carousel.Item class="basis-[92%] sm:basis-[88%] lg:basis-[84%] xl:basis-[80%]">+ <div class="h-full p-1">+ <RadioGroup.Item id={`application-theme-${theme.value}`} value={theme.value} class="sr-only" {disabled} />+ <Label+ for={`application-theme-${theme.value}`}+ class={disabled ? 'cursor-not-allowed opacity-60' : 'cursor-pointer'}+ >+ <Card.Root+ variant="outlined"+ class={[+ 'border-border/70 bg-card h-full transition-[border-color,background-color,opacity,filter] duration-200',+ selectedTheme === theme.value+ ? 'border-primary bg-primary/5 shadow-sm'+ : 'hover:border-primary/40 opacity-85 saturate-75'+ ]}+ >+ <Card.Content class="flex h-full flex-col gap-4 p-4">+ <div+ class="rounded-md border p-3"+ style={`background-color: ${preview.background}; border-color: ${preview.border};`}+ >+ <div class="flex gap-3">+ <div class="h-16 w-4 rounded-sm" style={`background-color: ${preview.sidebar};`}></div>+ <div class="min-w-0 flex-1 space-y-3">+ <div class="flex items-center justify-between gap-3">+ <div+ class="h-2 w-18 rounded-full opacity-80"+ style={`background-color: ${preview.foreground};`}+ ></div>+ <div class="h-2 w-7 rounded-full" style={`background-color: ${previewAccentColor};`}></div>+ </div>+ <div class="grid grid-cols-2 gap-2">+ <div+ class="h-10 rounded-sm border"+ style={`background-color: ${preview.card}; border-color: ${preview.border};`}+ ></div>+ <div+ class="h-10 rounded-sm border"+ style={`background-color: ${preview.card}; border-color: ${preview.border};`}+ ></div>+ </div>+ <div class="flex gap-2">+ <div+ class="h-2 flex-1 rounded-full opacity-60"+ style={`background-color: ${preview.foreground};`}+ ></div>+ <div+ class="h-2 w-10 rounded-full opacity-70"+ style={`background-color: ${preview.foreground};`}+ ></div>+ </div>+ </div>+ </div>+ </div>++ <div class="space-y-1">+ <div class="flex items-center gap-2">+ <div class="size-2 rounded-full" style={`background-color: ${previewAccentColor};`}></div>+ <div class="text-sm font-medium">{option.label}</div>+ </div>+ <p class="text-muted-foreground text-xs leading-5">{option.description}</p>+ </div>+ </Card.Content>+ </Card.Root>+ </Label>+ </div>+ </Carousel.Item>+ {/each}+ </Carousel.Content>+ <div+ class="from-background/95 via-background/55 pointer-events-none absolute inset-y-2 start-0 z-10 w-10 bg-gradient-to-r to-transparent backdrop-blur-[2px] sm:w-14"+ ></div>+ <div+ class="from-background/95 via-background/55 pointer-events-none absolute inset-y-2 end-0 z-10 w-10 bg-gradient-to-l to-transparent backdrop-blur-[2px] sm:w-14"+ ></div>+ <Carousel.Previous class="start-3 z-20 hidden md:inline-flex" />+ <Carousel.Next class="end-3 z-20 hidden md:inline-flex" />+ </Carousel.Root>+ </div>+</RadioGroup.Root>diff --git a/frontend/src/lib/components/ui/carousel/carousel-content.svelte b/frontend/src/lib/components/ui/carousel/carousel-content.sveltenew file mode 100644index 000000000..007f76166--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/carousel-content.svelte@@ -0,0 +1,39 @@+<script lang="ts">+ import emblaCarouselSvelte from 'embla-carousel-svelte';+ import type { HTMLAttributes } from 'svelte/elements';+ import { getEmblaContext } from './context.js';+ import { cn, type WithElementRef } from '$lib/utils.js';++ let {+ ref = $bindable(null),+ class: className,+ children,+ ...restProps+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();++ const emblaCtx = getEmblaContext('<Carousel.Content/>');+</script>++<div+ data-slot="carousel-content"+ class="overflow-hidden"+ use:emblaCarouselSvelte={{+ options: {+ container: '[data-embla-container]',+ slides: '[data-embla-slide]',+ ...emblaCtx.options,+ axis: emblaCtx.orientation === 'horizontal' ? 'x' : 'y'+ },+ plugins: emblaCtx.plugins+ }}+ onemblaInit={emblaCtx.onInit}+>+ <div+ bind:this={ref}+ class={cn('flex', emblaCtx.orientation === 'horizontal' ? '-ms-4' : '-mt-4 flex-col', className)}+ data-embla-container=""+ {...restProps}+ >+ {@render children?.()}+ </div>+</div>diff --git a/frontend/src/lib/components/ui/carousel/carousel-item.svelte b/frontend/src/lib/components/ui/carousel/carousel-item.sveltenew file mode 100644index 000000000..8bef16432--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/carousel-item.svelte@@ -0,0 +1,26 @@+<script lang="ts">+ import type { HTMLAttributes } from 'svelte/elements';+ import { getEmblaContext } from './context.js';+ import { cn, type WithElementRef } from '$lib/utils.js';++ let {+ ref = $bindable(null),+ class: className,+ children,+ ...restProps+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();++ const emblaCtx = getEmblaContext('<Carousel.Item/>');+</script>++<div+ bind:this={ref}+ data-slot="carousel-item"+ role="group"+ aria-roledescription="slide"+ class={cn('min-w-0 shrink-0 grow-0 basis-full', emblaCtx.orientation === 'horizontal' ? 'ps-4' : 'pt-4', className)}+ data-embla-slide=""+ {...restProps}+>+ {@render children?.()}+</div>diff --git a/frontend/src/lib/components/ui/carousel/carousel-next.svelte b/frontend/src/lib/components/ui/carousel/carousel-next.sveltenew file mode 100644index 000000000..67c59d9e2--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/carousel-next.svelte@@ -0,0 +1,39 @@+<script lang="ts">+ import type { WithoutChildren } from 'bits-ui';+ import { ArrowRightIcon } from '$lib/icons';+ import { getEmblaContext } from './context.js';+ import { cn } from '$lib/utils.js';+ import { Button, type Props } from '$lib/components/ui/button/index.js';++ let {+ ref = $bindable(null),+ class: className,+ variant = 'outline',+ size = 'icon',+ ...restProps+ }: WithoutChildren<Props> = $props();++ const emblaCtx = getEmblaContext('<Carousel.Next/>');+</script>++<Button+ data-slot="carousel-next"+ {variant}+ {size}+ aria-disabled={!emblaCtx.canScrollNext}+ disabled={!emblaCtx.canScrollNext}+ class={cn(+ 'absolute size-8 touch-manipulation rounded-full',+ emblaCtx.orientation === 'horizontal'+ ? '-end-12 top-1/2 -translate-y-1/2'+ : 'start-1/2 -bottom-12 -translate-x-1/2 rotate-90',+ className+ )}+ onclick={emblaCtx.scrollNext}+ onkeydown={emblaCtx.handleKeyDown}+ bind:ref+ {...restProps}+>+ <ArrowRightIcon class="size-4" />+ <span class="sr-only">Next slide</span>+</Button>diff --git a/frontend/src/lib/components/ui/carousel/carousel-previous.svelte b/frontend/src/lib/components/ui/carousel/carousel-previous.sveltenew file mode 100644index 000000000..4af3304d0--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/carousel-previous.svelte@@ -0,0 +1,37 @@+<script lang="ts">+ import type { WithoutChildren } from 'bits-ui';+ import { ArrowLeftIcon } from '$lib/icons';+ import { getEmblaContext } from './context.js';+ import { cn } from '$lib/utils.js';+ import { Button, type Props } from '$lib/components/ui/button/index.js';++ let {+ ref = $bindable(null),+ class: className,+ variant = 'outline',+ size = 'icon',+ ...restProps+ }: WithoutChildren<Props> = $props();++ const emblaCtx = getEmblaContext('<Carousel.Previous/>');+</script>++<Button+ data-slot="carousel-previous"+ {variant}+ {size}+ aria-disabled={!emblaCtx.canScrollPrev}+ disabled={!emblaCtx.canScrollPrev}+ class={cn(+ 'absolute size-8 touch-manipulation rounded-full',+ emblaCtx.orientation === 'horizontal' ? '-start-12 top-1/2 -translate-y-1/2' : 'start-1/2 -top-12 -translate-x-1/2 rotate-90',+ className+ )}+ onclick={emblaCtx.scrollPrev}+ onkeydown={emblaCtx.handleKeyDown}+ {...restProps}+ bind:ref+>+ <ArrowLeftIcon class="size-4" />+ <span class="sr-only">Previous slide</span>+</Button>diff --git a/frontend/src/lib/components/ui/carousel/carousel.svelte b/frontend/src/lib/components/ui/carousel/carousel.sveltenew file mode 100644index 000000000..6545d5b91--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/carousel.svelte@@ -0,0 +1,89 @@+<script lang="ts">+ import { type CarouselAPI, type CarouselProps, type EmblaContext, setEmblaContext } from './context.js';+ import { cn, type WithElementRef } from '$lib/utils.js';++ let {+ ref = $bindable(null),+ opts = {},+ plugins = [],+ setApi = () => {},+ orientation = 'horizontal',+ class: className,+ children,+ ...restProps+ }: WithElementRef<CarouselProps> = $props();++ // svelte-ignore state_referenced_locally+ let carouselState = $state<EmblaContext>({+ api: undefined,+ scrollPrev,+ scrollNext,+ orientation,+ canScrollNext: false,+ canScrollPrev: false,+ handleKeyDown,+ options: opts,+ plugins,+ onInit,+ scrollSnaps: [],+ selectedIndex: 0,+ scrollTo+ });++ setEmblaContext(carouselState);++ function scrollPrev() {+ carouselState.api?.scrollPrev();+ }++ function scrollNext() {+ carouselState.api?.scrollNext();+ }++ function scrollTo(index: number, jump?: boolean) {+ carouselState.api?.scrollTo(index, jump);+ }++ function onSelect() {+ if (!carouselState.api) return;+ carouselState.selectedIndex = carouselState.api.selectedScrollSnap();+ carouselState.canScrollNext = carouselState.api.canScrollNext();+ carouselState.canScrollPrev = carouselState.api.canScrollPrev();+ }++ function handleKeyDown(e: KeyboardEvent) {+ if (e.key === 'ArrowLeft') {+ e.preventDefault();+ scrollPrev();+ } else if (e.key === 'ArrowRight') {+ e.preventDefault();+ scrollNext();+ }+ }++ function onInit(event: CustomEvent<CarouselAPI>) {+ carouselState.api = event.detail;+ setApi(carouselState.api);++ carouselState.scrollSnaps = carouselState.api.scrollSnapList();+ carouselState.api.on('select', onSelect);+ onSelect();+ }++ $effect(() => {+ return () => {+ carouselState.api?.off('select', onSelect);+ };+ });+</script>++<div+ bind:this={ref}+ data-slot="carousel"+ class={cn('relative', className)}+ role="region"+ aria-roledescription="carousel"+ {...restProps}+>+ {@render children?.()}+</div>diff --git a/frontend/src/lib/components/ui/carousel/context.ts b/frontend/src/lib/components/ui/carousel/context.tsnew file mode 100644index 000000000..426f3743a--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/context.ts@@ -0,0 +1,55 @@+import type { WithElementRef } from '$lib/utils.js';+import type { EmblaCarouselSvelteType, default as emblaCarouselSvelte } from 'embla-carousel-svelte';+import { getContext, hasContext, setContext } from 'svelte';+import type { HTMLAttributes } from 'svelte/elements';++export type CarouselAPI =+ NonNullable<NonNullable<EmblaCarouselSvelteType['$$_attributes']>['on:emblaInit']> extends (+ evt: CustomEvent<infer CarouselAPI>+ ) => void+ ? CarouselAPI+ : never;++type EmblaCarouselConfig = NonNullable<Parameters<typeof emblaCarouselSvelte>[1]>;++export type CarouselOptions = EmblaCarouselConfig['options'];+export type CarouselPlugins = EmblaCarouselConfig['plugins'];++////++export type CarouselProps = {+ opts?: CarouselOptions;+ plugins?: CarouselPlugins;+ setApi?: (api: CarouselAPI | undefined) => void;+ orientation?: 'horizontal' | 'vertical';+} & WithElementRef<HTMLAttributes<HTMLDivElement>>;++const EMBLA_CAROUSEL_CONTEXT = Symbol('EMBLA_CAROUSEL_CONTEXT');++export type EmblaContext = {+ api: CarouselAPI | undefined;+ orientation: 'horizontal' | 'vertical';+ scrollNext: () => void;+ scrollPrev: () => void;+ canScrollNext: boolean;+ canScrollPrev: boolean;+ handleKeyDown: (e: KeyboardEvent) => void;+ options: CarouselOptions;+ plugins: CarouselPlugins;+ onInit: (e: CustomEvent<CarouselAPI>) => void;+ scrollTo: (index: number, jump?: boolean) => void;+ scrollSnaps: number[];+ selectedIndex: number;+};++export function setEmblaContext(config: EmblaContext): EmblaContext {+ setContext(EMBLA_CAROUSEL_CONTEXT, config);+ return config;+}++export function getEmblaContext(name = 'This component') {+ if (!hasContext(EMBLA_CAROUSEL_CONTEXT)) {+ throw new Error(`${name} must be used within a <Carousel.Root> component`);+ }+ return getContext<ReturnType<typeof setEmblaContext>>(EMBLA_CAROUSEL_CONTEXT);+}diff --git a/frontend/src/lib/components/ui/carousel/index.ts b/frontend/src/lib/components/ui/carousel/index.tsnew file mode 100644index 000000000..2d92c7039--- /dev/null+++ b/frontend/src/lib/components/ui/carousel/index.ts@@ -0,0 +1,19 @@+import Root from './carousel.svelte';+import Content from './carousel-content.svelte';+import Item from './carousel-item.svelte';+import Previous from './carousel-previous.svelte';+import Next from './carousel-next.svelte';++export {+ Root,+ Content,+ Item,+ Previous,+ Next,+ //+ Root as Carousel,+ Content as CarouselContent,+ Item as CarouselItem,+ Previous as CarouselPrevious,+ Next as CarouselNext+};diff --git a/frontend/src/lib/stores/config-store.ts b/frontend/src/lib/stores/config-store.tsindex 311a27534..ab18ba1f6 100644--- a/frontend/src/lib/stores/config-store.ts+++ b/frontend/src/lib/stores/config-store.ts@@ -1,6 +1,7 @@import { settingsService } from '$lib/services/settings-service';import type { Settings } from '$lib/types/settings.type';import { applyAccentColor } from '$lib/utils/accent-color-util';+import { applyApplicationTheme } from '$lib/utils/application-theme-util';import { applyOledMode } from '$lib/utils/oled-mode-util';import { get, writable } from 'svelte/store';@@ -13,6 +14,7 @@ const reload = async () => {};const set = (settings: Settings) => {+ applyApplicationTheme(settings.applicationTheme);applyAccentColor(settings.accentColor);applyOledMode(settings.oledMode ?? false);settingsStore.set(settings);diff --git a/frontend/src/lib/types/settings.type.ts b/frontend/src/lib/types/settings.type.tsindex 481cd1fa5..95aff123e 100644--- a/frontend/src/lib/types/settings.type.ts+++ b/frontend/src/lib/types/settings.type.ts@@ -1,5 +1,7 @@import type { TemplateRegistryConfig } from './template.type';+export type ApplicationTheme = 'default' | 'graphite' | 'ocean' | 'amber' | 'github' | 'nord' | 'everforest' | 'rosepine';+export type Settings = {projectsDirectory: string;followProjectSymlinks: boolean;@@ -31,6 +33,7 @@ export type Settings = {uiConfigDisabled: boolean;defaultShell: string;dockerHost: string;+ applicationTheme: ApplicationTheme;accentColor: string;oledMode: boolean;autoInjectEnv: boolean;diff --git a/frontend/src/lib/utils/application-theme-util.ts b/frontend/src/lib/utils/application-theme-util.tsnew file mode 100644index 000000000..05b63b26a--- /dev/null+++ b/frontend/src/lib/utils/application-theme-util.ts@@ -0,0 +1,285 @@+import type { ApplicationTheme } from '$lib/types/settings.type';++export const APPLICATION_THEME_VALUES = [+ 'default',+ 'graphite',+ 'ocean',+ 'amber',+ 'github',+ 'nord',+ 'everforest',+ 'rosepine'+] as const satisfies readonly ApplicationTheme[];++export type ApplicationThemeOption = {+ value: ApplicationTheme;+ preview: {+ light: {+ background: string;+ sidebar: string;+ card: string;+ border: string;+ foreground: string;+ primary: string;+ };+ dark: {+ background: string;+ sidebar: string;+ card: string;+ border: string;+ foreground: string;+ primary: string;+ };+ };+};++export const APPLICATION_THEME_OPTIONS: readonly ApplicationThemeOption[] = [+ {+ value: 'default',+ preview: {+ light: {+ background: '#fafafa',+ sidebar: '#f3f4f6',+ card: '#ffffff',+ border: '#d4d4d8',+ foreground: '#18181b',+ primary: '#8b5cf6'+ },+ dark: {+ background: '#24262b',+ sidebar: '#1c1f24',+ card: '#31343a',+ border: '#4a4f58',+ foreground: '#f5f7fa',+ primary: '#a855f7'+ }+ }+ },+ {+ value: 'graphite',+ preview: {+ light: {+ background: '#eef1f5',+ sidebar: '#dfe5ec',+ card: '#f8fafc',+ border: '#cbd5e1',+ foreground: '#0f172a',+ primary: '#5b6ee1'+ },+ dark: {+ background: '#2d3139',+ sidebar: '#252932',+ card: '#343944',+ border: '#4d5664',+ foreground: '#edf2f7',+ primary: '#8ea0ff'+ }+ }+ },+ {+ value: 'ocean',+ preview: {+ light: {+ background: '#edf6fb',+ sidebar: '#d7ebf5',+ card: '#f8fcff',+ border: '#b7d7e7',+ foreground: '#0f2942',+ primary: '#0f77a8'+ },+ dark: {+ background: '#22384c',+ sidebar: '#1b2d3f',+ card: '#2a4358',+ border: '#456983',+ foreground: '#eef7fb',+ primary: '#73b9da'+ }+ }+ },+ {+ value: 'amber',+ preview: {+ light: {+ background: '#f9f1e6',+ sidebar: '#efe0cd',+ card: '#fffaf3',+ border: '#ddc2a0',+ foreground: '#3f2a12',+ primary: '#c67620'+ },+ dark: {+ background: '#3b2d1f',+ sidebar: '#2f2419',+ card: '#473626',+ border: '#7a5b3d',+ foreground: '#f7ead7',+ primary: '#e0a255'+ }+ }+ },+ {+ value: 'github',+ preview: {+ light: {+ background: '#f6f8fa',+ sidebar: '#eff2f5',+ card: '#ffffff',+ border: '#d0d7de',+ foreground: '#1f2328',+ primary: '#0969da'+ },+ dark: {+ background: '#161b22',+ sidebar: '#0d1117',+ card: '#21262d',+ border: '#30363d',+ foreground: '#e6edf3',+ primary: '#2f81f7'+ }+ }+ },+ {+ value: 'nord',+ preview: {+ light: {+ background: '#eceff4',+ sidebar: '#e5e9f0',+ card: '#f8fafc',+ border: '#c5cedc',+ foreground: '#2e3440',+ primary: '#5e81ac'+ },+ dark: {+ background: '#2b313c',+ sidebar: '#242933',+ card: '#353c49',+ border: '#4c566a',+ foreground: '#eceff4',+ primary: '#88c0d0'+ }+ }+ },+ {+ value: 'everforest',+ preview: {+ light: {+ background: '#f2efdf',+ sidebar: '#e7e2cc',+ card: '#fbf8ee',+ border: '#cdbf9f',+ foreground: '#374145',+ primary: '#6f894e'+ },+ dark: {+ background: '#2d3530',+ sidebar: '#252b28',+ card: '#343f39',+ border: '#56635f',+ foreground: '#e6e2cc',+ primary: '#a7c080'+ }+ }+ },+ {+ value: 'rosepine',+ preview: {+ light: {+ background: '#faf4ed',+ sidebar: '#f2e9e1',+ card: '#fffaf5',+ border: '#dfd1c5',+ foreground: '#575279',+ primary: '#b4637a'+ },+ dark: {+ background: '#191724',+ sidebar: '#16141f',+ card: '#26233a',+ border: '#403d52',+ foreground: '#e0def4',+ primary: '#c4a7e7'+ }+ }+ }+] as const;++const APP_THEME_ATTRIBUTE = 'data-app-theme';+const OLED_CLASS = 'oled';+const DARK_CLASS = 'dark';+const OLED_THEME_COLOR = '#000000';++let htmlClassObserver: MutationObserver | null = null;++export function resolveApplicationTheme(value?: string | null): ApplicationTheme {+ if (!value) {+ return 'default';+ }++ return APPLICATION_THEME_VALUES.includes(value as ApplicationTheme) ? (value as ApplicationTheme) : 'default';+}++export function applyApplicationTheme(themeValue?: string | null): void {+ const theme = resolveApplicationTheme(themeValue);++ if (typeof document === 'undefined') {+ return;+ }++ ensureThemeColorSyncObserver();++ if (theme === 'default') {+ document.documentElement.removeAttribute(APP_THEME_ATTRIBUTE);+ } else {+ document.documentElement.setAttribute(APP_THEME_ATTRIBUTE, theme);+ }++ syncBrowserThemeColor();+}++function isDefaultApplicationTheme(root: HTMLElement): boolean {+ const appTheme = root.getAttribute(APP_THEME_ATTRIBUTE);+ return !appTheme || appTheme === 'default';+}++function ensureThemeColorSyncObserver(): void {+ if (typeof document === 'undefined' || htmlClassObserver) {+ return;+ }++ htmlClassObserver = new MutationObserver(() => {+ syncBrowserThemeColor();+ });++ htmlClassObserver.observe(document.documentElement, {+ attributes: true,+ attributeFilter: ['class', APP_THEME_ATTRIBUTE]+ });+}++export function syncBrowserThemeColor(): void {+ if (typeof document === 'undefined') {+ return;+ }++ const root = document.documentElement;+ const isDarkMode = root.classList.contains(DARK_CLASS);+ const activeMeta = document.querySelector<HTMLMetaElement>(+ `meta[name="theme-color"][media="(prefers-color-scheme: ${isDarkMode ? 'dark' : 'light'})"]`+ );++ if (!activeMeta) {+ return;+ }++ if (isDarkMode && root.classList.contains(OLED_CLASS) && isDefaultApplicationTheme(root)) {+ activeMeta.content = OLED_THEME_COLOR;+ return;+ }++ const background = getComputedStyle(root).getPropertyValue('--background').trim();++ if (background) {+ activeMeta.content = background;+ }+}diff --git a/frontend/src/lib/utils/oled-mode-util.ts b/frontend/src/lib/utils/oled-mode-util.tsindex 8de29457b..05568e10a 100644--- a/frontend/src/lib/utils/oled-mode-util.ts+++ b/frontend/src/lib/utils/oled-mode-util.ts@@ -1,66 +1,27 @@import { writable } from 'svelte/store';+import { syncBrowserThemeColor } from '$lib/utils/application-theme-util';export const oledModeStore = writable<boolean>(false);const OLED_CLASS = 'oled';-const OLED_THEME_COLOR = '#000000';-const DARK_THEME_COLOR = 'oklch(0.141 0.005 285.823)';-let currentOledEnabled = false;-let htmlClassObserver: MutationObserver | null = null;--function ensureThemeColorSyncObserver(): void {- if (typeof document === 'undefined' || htmlClassObserver) {- return;- }-- htmlClassObserver = new MutationObserver(() => {- updateThemeColorMeta(currentOledEnabled);- });-- htmlClassObserver.observe(document.documentElement, {- attributes: true,- attributeFilter: ['class']- });-}/*** Applies or removes OLED mode by toggling the `.oled` class on <html>.- * The CSS rule `.dark.oled` only takes effect when dark mode is also active,- * so calling this while in light mode is safe — it adds the class but the- * CSS selector will not match until dark mode is enabled.- *- * Also updates the `theme-color` meta tag when in dark mode to #000000.+ * The CSS rule only takes effect for the default application theme while dark+ * mode is active, so calling this in other states is safe.*/export function applyOledMode(enabled: boolean): void {- currentOledEnabled = enabled;oledModeStore.set(enabled);if (typeof document === 'undefined') {return;}- ensureThemeColorSyncObserver();-if (enabled) {document.documentElement.classList.add(OLED_CLASS);} else {document.documentElement.classList.remove(OLED_CLASS);}- updateThemeColorMeta(enabled);-}--/**- * Updates the theme-color meta tag for the dark scheme.- * When OLED is active we want #000000 so the browser chrome (e.g. Safari iOS)- * also goes fully black.- */-function updateThemeColorMeta(oledEnabled: boolean): void {- if (typeof document === 'undefined') return;-- const isDark = document.documentElement.classList.contains('dark');- const darkMeta = document.querySelector<HTMLMetaElement>('meta[name="theme-color"][media="(prefers-color-scheme: dark)"]');- if (darkMeta) {- darkMeta.content = oledEnabled && isDark ? OLED_THEME_COLOR : DARK_THEME_COLOR;- }+ syncBrowserThemeColor();}diff --git a/frontend/src/lib/utils/settings.util.ts b/frontend/src/lib/utils/settings.util.tsindex 768eb8668..5796de3ae 100644--- a/frontend/src/lib/utils/settings.util.ts+++ b/frontend/src/lib/utils/settings.util.ts@@ -1,4 +1,7 @@+import type { ApplicationTheme } from '$lib/types/settings.type';+export type LocalSettings = {+ applicationTheme: ApplicationTheme;accentColor: string;oledMode: boolean;mobileNavigationMode: string;@@ -8,6 +11,7 @@ export type LocalSettings = {};const LOCAL_SETTING_KEYS = new Set([+ 'applicationTheme','accentColor','oledMode','mobileNavigationMode',diff --git a/frontend/src/routes/(app)/settings/appearance/+page.svelte b/frontend/src/routes/(app)/settings/appearance/+page.svelteindex 984a1e627..9ee9a6a37 100644--- a/frontend/src/routes/(app)/settings/appearance/+page.svelte+++ b/frontend/src/routes/(app)/settings/appearance/+page.svelte@@ -1,6 +1,6 @@<script lang="ts">+ import { onDestroy } from 'svelte';import { z } from 'zod/v4';- import { toast } from 'svelte-sonner';import { mode, toggleMode } from 'mode-watcher';import settingsStore from '$lib/stores/config-store';import { m } from '$lib/paraglide/messages';@@ -13,7 +13,9 @@import { Label } from '$lib/components/ui/label';import LocalePicker from '$lib/components/locale-picker.svelte';import AccentColorPicker from '$lib/components/accent-color/accent-color-picker.svelte';+ import ApplicationThemePicker from '$lib/components/application-theme/application-theme-picker.svelte';import { applyAccentColor } from '$lib/utils/accent-color-util';+ import { APPLICATION_THEME_VALUES, applyApplicationTheme } from '$lib/utils/application-theme-util';import { applyOledMode } from '$lib/utils/oled-mode-util';import { ApperanceIcon, MonitorSpeakerIcon, DockIcon, MoonIcon, SunIcon } from '$lib/icons';import SwitchWithLabel from '$lib/components/form/labeled-switch.svelte';@@ -24,6 +26,7 @@const isReadOnly = $derived.by(() => $settingsStore?.uiConfigDisabled);const formSchema = z.object({+ applicationTheme: z.enum(APPLICATION_THEME_VALUES),mobileNavigationMode: z.enum(['floating', 'docked']),mobileNavigationShowLabels: z.boolean(),sidebarHoverExpansion: z.boolean(),@@ -50,13 +53,20 @@currentSettings,getCurrentSettings: () => $settingsStore || data.settings!,successMessage: m.navigation_settings_saved(),- onReset: () => {- applyAccentColor(currentSettings.accentColor);- applyOledMode(currentSettings.oledMode ?? false);- }+ onReset: restorePersistedAppearance}));+ function restorePersistedAppearance() {+ applyApplicationTheme(currentSettings.applicationTheme);+ applyAccentColor(currentSettings.accentColor);+ applyOledMode(currentSettings.oledMode ?? false);+ }++ onDestroy(() => {+ restorePersistedAppearance();+ });+function setLocalOverride(key: 'mode' | 'showLabels', value: any) {const currentOverrides = navigationSettingsOverridesStore.current;navigationSettingsOverridesStore.current = { ...currentOverrides, [key]: value };@@ -97,6 +107,7 @@const labelsIsLocal = $derived(persistedState.showLabels !== undefined);const labelsDisplayValue = $derived(labelsIsLocal ? persistedState.showLabels : $formInputs.mobileNavigationShowLabels.value);const isDarkMode = $derived(mode.current === 'dark');+ const isDefaultApplicationTheme = $derived($formInputs.applicationTheme.value === 'default');function handleOledModeChange(checked: boolean) {$formInputs.oledMode.value = checked;@@ -135,6 +146,23 @@<h3 class="text-lg font-medium">{m.appearance_title()}</h3><div class="bg-card rounded-lg border shadow-sm"><div class="space-y-6 p-6">+ <!-- Application Theme -->+ <div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">+ <div>+ <Label class="text-base">{m.application_theme()}</Label>+ <p class="text-muted-foreground mt-1 text-sm">{m.application_theme_description()}</p>+ </div>+ <div>+ <ApplicationThemePicker+ bind:selectedTheme={$formInputs.applicationTheme.value}+ accentColor={$formInputs.accentColor.value}+ disabled={isReadOnly}+ />+ </div>+ </div>++ <Separator />+<!-- Accent Color --><div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8"><div>@@ -219,7 +247,9 @@<div><Label class="text-base">{m.oled_mode()}</Label><p class="text-muted-foreground mt-1 text-sm">{m.oled_mode_description()}</p>- {#if !isDarkMode}+ {#if !isDefaultApplicationTheme}+ <p class="text-muted-foreground/70 mt-1 text-xs italic">{m.oled_mode_requires_default_theme()}</p>+ {:else if !isDarkMode}<p class="text-muted-foreground/70 mt-1 text-xs italic">{m.oled_mode_requires_dark()}</p>{/if}</div>@@ -227,7 +257,7 @@<Switchid="oledMode"checked={$formInputs.oledMode.value}- disabled={isReadOnly}+ disabled={isReadOnly || !isDefaultApplicationTheme}onCheckedChange={handleOledModeChange}/><Label for="oledMode" class="font-normal">diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex aecff2845..a82607ec2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -125,6 +125,9 @@ importers:date-fns:specifier: ^4.1.0version: 4.1.0+ embla-carousel-svelte:+ specifier: ^8.6.0+ version: 8.6.0([email protected])js-yaml:specifier: ^4.1.1version: 4.1.1@@ -2653,6 +2656,19 @@ packages:resolution: {integrity: sha512-Yc8U/SVXo2dHnaP7zNBlAo83h/nzSJpi7vph6Hzyl4ulgMBIgPmz3UzOjb9sBgpFE00gC0iETR244sfXDNLHRg==}+ resolution: {integrity: sha512-fMVUDUEx0/uIEDM0Mz3dHznDhfX+znCCDCeIophYb1QGVM7YThSWX+wz11zlYwWFOr74b4QLGg0hrGPJeG2s4A==}+ peerDependencies:+ embla-carousel: 8.6.0++ resolution: {integrity: sha512-ZDsKk8Sdv+AUTygMYcwZjfRd1DTh+JSUzxkOo8b9iKAkYjg+39mzbY/lwHsE3jXSpKxdKWS69hPSNuzlOGtR2Q==}+ peerDependencies:+ svelte: ^3.49.0 || ^4.0.0 || ^5.0.0++ resolution: {integrity: sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==}+resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}@@ -6132,6 +6148,18 @@ snapshots:fast-check: 3.23.2optional: true+ dependencies:+ embla-carousel: 8.6.0++ dependencies:+ embla-carousel: 8.6.0+ embla-carousel-reactive-utils: 8.6.0([email protected])+ svelte: 5.53.12++ [email protected]: {}+diff --git a/types/settings/settings.go b/types/settings/settings.goindex cfce09a44..a924836f9 100644--- a/types/settings/settings.go+++ b/types/settings/settings.go@@ -162,6 +162,11 @@ type Update struct {// Required: falseAccentColor *string `json:"accentColor,omitempty"`+ // ApplicationTheme is the overall application theme preset.+ //+ // Required: false+ ApplicationTheme *string `json:"applicationTheme,omitempty"`+// AuthLocalEnabled indicates if local authentication is enabled.//// Required: false