Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
refactor: update theme colors and allow inheriting from them colors (#3965)
Kyle Mendelleee8a84bd5d4
diff --git a/frontend/messages/en.json b/frontend/messages/en.jsonindex 75d188681..6a44d0b99 100644--- a/frontend/messages/en.json+++ b/frontend/messages/en.json@@ -14,8 +14,10 @@"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_carbon": "Carbon",+ "application_theme_carbon_description": "Neutral charcoal surfaces with muted blue accents.","application_theme_ocean": "Ocean",- "application_theme_ocean_description": "Clean blue surfaces with a cooler application shell.",+ "application_theme_ocean_description": "Deep indigo surfaces with strong blue accents.","application_theme_amber": "Amber","application_theme_amber_description": "Warm canvas tones with softer contrast across panels.","application_theme_github_description": "Neutral GitHub-style surfaces with crisp blue structure.",diff --git a/frontend/src/lib/components/accent-color/accent-color-picker.svelte b/frontend/src/lib/components/accent-color/accent-color-picker.svelteindex 23ca3e923..6c615c308 100644--- a/frontend/src/lib/components/accent-color/accent-color-picker.svelte+++ b/frontend/src/lib/components/accent-color/accent-color-picker.svelte@@ -1,7 +1,8 @@<script lang="ts">import { Label } from '#lib/components/ui/label/index.js';import * as RadioGroup from '#lib/components/ui/radio-group/index.js';- import { applyAccentColor } from '#lib/utils/theme.svelte.js';+ import { applyAccentColor, resolveThemePrimary } from '#lib/utils/theme.svelte.js';+ import { mode } from 'mode-watcher';import CustomColorDialog from './custom-color.svelte';import { CheckIcon, AddIcon } from '#lib/icons/index.js';@@ -20,7 +21,7 @@let showCustomColorDialog = $state(false);const accentColors = [- { label: 'Default', color: 'oklch(0.606 0.25 292.717)' },+ { label: 'Purple', color: 'oklch(0.606 0.25 292.717)' },{ label: 'Rose', color: 'oklch(0.63 0.2 15)' },{ label: 'Orange', color: 'oklch(0.68 0.2 50)' },{ label: 'Amber', color: 'oklch(0.75 0.18 80)' },@@ -29,14 +30,17 @@{ label: 'Blue', color: 'oklch(0.6 0.2 240)' }];+ const themePrimary = $derived(resolveThemePrimary(mode.current === 'dark'));+// Check if current accent color is a custom color (not in predefined list)- let isCustomColor = $derived(!accentColors.some((c) => c.color === selectedColor));- let isPreviousColorCustom = $derived(!accentColors.some((c) => c.color === previousColor));+ let isCustomColor = $derived(selectedColor !== 'theme' && !accentColors.some((c) => c.color === selectedColor));+ let isPreviousColorCustom = $derived(previousColor !== 'theme' && !accentColors.some((c) => c.color === previousColor));function handleAccentColorChange(accentValue: string) {+ const storedValue = accentValue === 'theme' ? 'default' : accentValue;selectedColor = accentValue;- applyAccentColor(accentValue);- onSelect?.(accentValue);+ applyAccentColor(storedValue);+ onSelect?.(storedValue);}</script>@@ -49,6 +53,7 @@}}}>+ {@render colorOption('Theme', 'theme', selectedColor === 'theme')}{#each accentColors as accent (accent.color)}{@render colorOption(accent.label, accent.color, selectedColor === accent.color)}{/each}@@ -78,10 +83,9 @@><divclass={{- 'relative z-[var(--arcane-z-raised)] size-8 rounded-full border-2 transition-all duration-200 ease-out group-hover/item:z-[var(--arcane-z-sticky)] group-hover/item:scale-110': true,- 'bg-black dark:bg-white': color === 'default'+ 'relative z-[var(--arcane-z-raised)] size-8 rounded-full border-2 transition-all duration-200 ease-out group-hover/item:z-[var(--arcane-z-sticky)] group-hover/item:scale-110': true}}- style={color !== 'default' ? `background-color: ${color}` : ''}+ style={`background-color: ${color === 'theme' ? themePrimary : color}`}title={label}>{#if isCustomColorSelection}diff --git a/frontend/src/lib/components/application-theme/application-theme-picker.svelte b/frontend/src/lib/components/application-theme/application-theme-picker.svelteindex 6f1b0e85f..c6754dfea 100644--- a/frontend/src/lib/components/application-theme/application-theme-picker.svelte+++ b/frontend/src/lib/components/application-theme/application-theme-picker.svelte@@ -32,6 +32,10 @@label: m.application_theme_graphite(),description: m.application_theme_graphite_description()},+ carbon: {+ label: m.application_theme_carbon(),+ description: m.application_theme_carbon_description()+ },ocean: {label: m.application_theme_ocean(),description: m.application_theme_ocean_description()@@ -129,7 +133,8 @@{#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}+ {@const previewAccentColor =+ accentColor.trim() === '' || accentColor.trim() === 'theme' ? preview.primary : accentColor}<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} />diff --git a/frontend/src/lib/components/dialogs/version-info-dialog.svelte b/frontend/src/lib/components/dialogs/version-info-dialog.svelteindex b6d936adb..708138d5d 100644--- a/frontend/src/lib/components/dialogs/version-info-dialog.svelte+++ b/frontend/src/lib/components/dialogs/version-info-dialog.svelte@@ -6,7 +6,8 @@import { m } from '#lib/paraglide/messages.js';import { CopyButton } from '#lib/components/ui/copy-button/index.js';import { getApplicationLogo } from '#lib/utils/docker.js';- import { accentColorPreview } from '#lib/utils/theme.svelte.js';+ import { resolveLogoColor } from '#lib/utils/theme.svelte.js';+ import { mode } from 'mode-watcher';import { ExternalLinkIcon, GithubIcon, BookOpenIcon } from '#lib/icons/index.js';import { hasPermission } from '#lib/utils/auth.js';import settingsStore from '#lib/stores/config-store.svelte.js';@@ -41,8 +42,8 @@const displayInfo = $derived(debugMode ? mockVersionInfo : versionInfo);const enabledFeatures = $derived((displayInfo.enabledFeatures ?? []).filter(Boolean).join(', '));- const accentColor = $derived(accentColorPreview.current);- const logoUrl = $derived(getApplicationLogo(false, accentColor, accentColor));+ const logoColor = $derived(resolveLogoColor(mode.current === 'dark'));+ const logoUrl = $derived(getApplicationLogo(false, logoColor, logoColor));const canToggleExperimental = $derived(hasPermission('settings:write'));const experimentalEnabled = $derived(settingsStore.current?.experimentalFeaturesEnabled === true);diff --git a/frontend/src/lib/components/oidc-status-panel.svelte b/frontend/src/lib/components/oidc-status-panel.svelteindex 211ef16cf..256154daa 100644--- a/frontend/src/lib/components/oidc-status-panel.svelte+++ b/frontend/src/lib/components/oidc-status-panel.svelte@@ -1,9 +1,10 @@<script lang="ts">import type { Snippet } from 'svelte';import { getApplicationLogo } from '#lib/utils/docker.js';- import { accentColorPreview } from '#lib/utils/theme.svelte.js';+ import { resolveLogoColor } from '#lib/utils/theme.svelte.js';import userStore from '#lib/stores/user-store.svelte.js';import { m } from '#lib/paraglide/messages.js';+ import { mode } from 'mode-watcher';interface Props {busy: boolean;@@ -15,10 +16,10 @@let { busy, busyTitle, busyDescription, error, children }: Props = $props();- const accentColor = $derived(accentColorPreview.current);+ const logoColor = $derived(resolveLogoColor(mode.current === 'dark'));const animationsEnabled = $derived(userStore.current?.preferences?.animationsEnabled ?? true);const loaderLogoUrl = $derived(- getApplicationLogo(false, accentColor, accentColor, { animated: animationsEnabled, loop: animationsEnabled })+ getApplicationLogo(false, logoColor, logoColor, { animated: animationsEnabled, loop: animationsEnabled }));</script>diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelteindex 280abf871..5cfa9abaf 100644--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte@@ -2,14 +2,15 @@import { cn } from '#lib/utils.js';import { m } from '#lib/paraglide/messages.js';import { getApplicationLogo } from '#lib/utils/docker.js';- import { accentColorPreview } from '#lib/utils/theme.svelte.js';+ import { resolveLogoColor } from '#lib/utils/theme.svelte.js';import userStore from '#lib/stores/user-store.svelte.js';+ import { mode } from 'mode-watcher';let { isCollapsed }: { isCollapsed: boolean } = $props();- const accentColor = $derived(accentColorPreview.current);+ const logoColor = $derived(resolveLogoColor(mode.current === 'dark'));const animationsEnabled = $derived(userStore.current?.preferences?.animationsEnabled ?? true);- const logoUrl = $derived(getApplicationLogo(!isCollapsed, accentColor, accentColor, { animated: animationsEnabled }));+ const logoUrl = $derived(getApplicationLogo(!isCollapsed, logoColor, logoColor, { animated: animationsEnabled }));</script><divdiff --git a/frontend/src/lib/types/settings.ts b/frontend/src/lib/types/settings.tsindex e891dcf43..2929e9f99 100644--- a/frontend/src/lib/types/settings.ts+++ b/frontend/src/lib/types/settings.ts@@ -3,7 +3,16 @@ import type { TemplateRegistryConfig } from './swarm';// --- Application settings ----export type ApplicationTheme = 'default' | 'graphite' | 'ocean' | 'amber' | 'github' | 'nord' | 'everforest' | 'rosepine';+export type ApplicationTheme =+ | 'default'+ | 'graphite'+ | 'carbon'+ | 'ocean'+ | 'amber'+ | 'github'+ | 'nord'+ | 'everforest'+ | 'rosepine';export type IconCatalog = 'selfhst' | 'dashboard-icons';export type Settings = {diff --git a/frontend/src/lib/utils/theme.svelte.ts b/frontend/src/lib/utils/theme.svelte.tsindex e8b94a479..11f062a87 100644--- a/frontend/src/lib/utils/theme.svelte.ts+++ b/frontend/src/lib/utils/theme.svelte.ts@@ -3,6 +3,7 @@ import type { ApplicationTheme } from '#lib/types/settings.js';const APPLICATION_THEME_VALUES = ['default','graphite',+ 'carbon','ocean','amber','github',@@ -76,24 +77,45 @@ export const APPLICATION_THEME_OPTIONS: readonly ApplicationThemeOption[] = [}}},+ {+ value: 'carbon',+ preview: {+ light: {+ background: '#F4F4F4',+ sidebar: '#EBEBEC',+ card: '#FCFCFC',+ border: '#D4D4D8',+ foreground: '#1C1C1E',+ primary: '#4A6FA5'+ },+ dark: {+ background: '#0B0B0B',+ sidebar: '#131315',+ card: '#1C1C1F',+ border: '#46464B',+ foreground: '#D8D8D8',+ primary: '#6B91D1'+ }+ }+ },{value: 'ocean',preview: {light: {- background: '#edf6fb',- sidebar: '#d7ebf5',- card: '#f8fcff',- border: '#b7d7e7',- foreground: '#0f2942',- primary: '#0f77a8'+ background: '#EAF0FF',+ sidebar: '#DDE5FA',+ card: '#F8FAFF',+ border: '#B9C6E8',+ foreground: '#1E2A45',+ primary: '#3B5CB5'},dark: {- background: '#22384c',- sidebar: '#1b2d3f',- card: '#2a4358',- border: '#456983',- foreground: '#eef7fb',- primary: '#73b9da'+ background: '#10121B',+ sidebar: '#151A2C',+ card: '#1D2338',+ border: '#474C5E',+ foreground: '#CFD2E4',+ primary: '#83ABFF'}}},@@ -208,7 +230,7 @@ const APP_THEME_ATTRIBUTE = 'data-app-theme';const OLED_CLASS = 'oled';const DARK_CLASS = 'dark';const OLED_THEME_COLOR = '#000000';-export const DEFAULT_ACCENT_COLOR = 'oklch(0.606 0.25 292.717)';+const DEFAULT_ACCENT_COLOR = 'oklch(0.606 0.25 292.717)';let htmlClassObserver: MutationObserver | null = null;@@ -258,7 +280,31 @@ function updateAppearanceCache(partial: AppearanceCache): void {}}-export const accentColorPreview = $state({ current: DEFAULT_ACCENT_COLOR });+const appearanceState = $state({ theme: 'default' as ApplicationTheme, accent: 'default' });++const THEME_LOGO_PRIMARIES = Object.fromEntries(+ APPLICATION_THEME_OPTIONS.map((option) => [+ option.value,+ { light: option.preview.light.primary, dark: option.preview.dark.primary }+ ])+) as Record<ApplicationTheme, { light: string; dark: string }>;++export function resolveThemePrimary(isDarkMode: boolean): string {+ if (appearanceState.theme === 'default') {+ return DEFAULT_ACCENT_COLOR;+ }++ const primaries = THEME_LOGO_PRIMARIES[appearanceState.theme];+ return isDarkMode ? primaries.dark : primaries.light;+}++export function resolveLogoColor(isDarkMode: boolean): string {+ if (appearanceState.accent !== 'default' && appearanceState.accent !== 'theme') {+ return appearanceState.accent;+ }++ return resolveThemePrimary(isDarkMode);+}export function resolveApplicationTheme(value?: string | null): ApplicationTheme {if (!value) {@@ -270,6 +316,7 @@ export function resolveApplicationTheme(value?: string | null): ApplicationThemeexport function applyApplicationTheme(themeValue?: string | null): void {const theme = resolveApplicationTheme(themeValue);+ appearanceState.theme = theme;if (typeof document === 'undefined') {return;@@ -336,14 +383,18 @@ function syncBrowserThemeColor(): void {}export function applyAccentColor(accentValue: string) {- const resolvedAccent = accentValue === 'default' ? DEFAULT_ACCENT_COLOR : accentValue;- accentColorPreview.current = resolvedAccent;+ // The 'theme' sentinel means "inherit the application theme" and behaves+ // exactly like 'default' (no override). It is normalized here so invalid+ // CSS can never reach the custom-accent branch below.+ const normalizedAccent = accentValue === 'theme' ? 'default' : accentValue;+ const resolvedAccent = normalizedAccent === 'default' ? DEFAULT_ACCENT_COLOR : normalizedAccent;+ appearanceState.accent = normalizedAccent;if (typeof document === 'undefined') {return;}- if (accentValue === 'default') {+ if (normalizedAccent === 'default') {document.documentElement.style.removeProperty('--primary');document.documentElement.style.removeProperty('--primary-foreground');document.documentElement.style.removeProperty('--ring');diff --git a/frontend/src/routes/(app)/account/account-preferences-panel.svelte b/frontend/src/routes/(app)/account/account-preferences-panel.svelteindex 8ed9fe904..6b8f712d0 100644--- a/frontend/src/routes/(app)/account/account-preferences-panel.svelte+++ b/frontend/src/routes/(app)/account/account-preferences-panel.svelte@@ -13,7 +13,7 @@import { Switch } from '#lib/components/ui/switch/index.js';import { DEFAULT_LANDING_PAGE, getLandingPageNavItems } from '#lib/config/navigation-config.js';import { getMobileNavigation } from '#lib/utils/navigation.js';- import { applyGlassEffects, applyInterfaceAnimations, applyOledMode, DEFAULT_ACCENT_COLOR } from '#lib/utils/theme.svelte.js';+ import { applyGlassEffects, applyInterfaceAnimations, applyOledMode } from '#lib/utils/theme.svelte.js';import { debounced } from '#lib/utils/ws.js';import { m } from '#lib/paraglide/messages.js';import { userService } from '#lib/services/user-service.js';@@ -29,7 +29,7 @@const preferences = $derived(currentUser?.preferences ?? {});const applicationThemeValue = $derived<ApplicationTheme>(preferences.applicationTheme ?? 'default');const accentColorValue = $derived(- preferences.accentColor && preferences.accentColor !== 'default' ? preferences.accentColor : DEFAULT_ACCENT_COLOR+ preferences.accentColor && preferences.accentColor !== 'default' ? preferences.accentColor : 'theme');const iconCatalogValue = $derived(preferences.iconCatalog ?? 'selfhst');const oledModeEnabled = $derived(preferences.oledMode ?? false);diff --git a/frontend/src/routes/(auth)/login/+page.svelte b/frontend/src/routes/(auth)/login/+page.svelteindex 4452bf243..f13ae446c 100644--- a/frontend/src/routes/(auth)/login/+page.svelte+++ b/frontend/src/routes/(auth)/login/+page.svelte@@ -19,7 +19,8 @@import { getEffectiveLandingPage } from '#lib/utils/navigation.js';import { queryKeys } from '#lib/query/query-keys.js';import { getApplicationLogo } from '#lib/utils/docker.js';- import { accentColorPreview } from '#lib/utils/theme.svelte.js';+ import { resolveLogoColor } from '#lib/utils/theme.svelte.js';+ import { mode } from 'mode-watcher';import { ArcaneButton } from '#lib/components/arcane-button/index.js';import AuthAmbient from '#lib/components/auth/auth-ambient.svelte';import MFAChallenge from '#lib/components/auth/mfa-challenge.svelte';@@ -36,9 +37,9 @@const showPasskeyLoginButton = $derived(passkeySupported && data.passkeyLoginAvailable === true);const queryClient = useQueryClient();- const accentColor = $derived(accentColorPreview.current);+ const logoColor = $derived(resolveLogoColor(mode.current === 'dark'));const animationsEnabled = $derived(userStore.current?.preferences?.animationsEnabled ?? true);- const logoUrl = $derived(getApplicationLogo(true, accentColor, accentColor, { animated: animationsEnabled }));+ const logoUrl = $derived(getApplicationLogo(true, logoColor, logoColor, { animated: animationsEnabled }));const oidcEnabledBySettings = $derived(data.settings?.oidcEnabled === true);const showOidcLoginButton = $derived(oidcEnabledBySettings);diff --git a/frontend/src/routes/themes.css b/frontend/src/routes/themes.cssindex ffad0ae6e..db56b7cdf 100644--- a/frontend/src/routes/themes.css+++ b/frontend/src/routes/themes.css@@ -64,70 +64,136 @@--glass-shadow-color: oklch(0 0 0 / 0.38);}+:root[data-app-theme='carbon'] {+ --background: oklch(0.967 0 0);+ --foreground: oklch(0.227 0.004 286.1);+ --card: oklch(0.991 0 0 / 0.85);+ --card-foreground: oklch(0.227 0.004 286.1);+ --popover: oklch(0.991 0 0);+ --popover-foreground: oklch(0.227 0.004 286.1);+ --primary: oklch(0.538 0.095 257.8);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.932 0.003 286.3 / 0.85);+ --secondary-foreground: oklch(0.29 0.005 286.1);+ --muted: oklch(0.932 0.003 286.3 / 0.85);+ --muted-foreground: oklch(0.487 0.008 286.1);+ --accent: oklch(0.932 0.003 286.3 / 0.85);+ --accent-foreground: oklch(0.29 0.005 286.1);+ --border: oklch(0.871 0.005 286.3);+ --input: oklch(0.871 0.005 286.3);+ --ring: oklch(0.538 0.095 257.8);+ --sidebar: oklch(0.94 0.001 286.4 / 0.9);+ --sidebar-foreground: oklch(0.227 0.004 286.1);+ --sidebar-primary: oklch(0.538 0.095 257.8);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.928 0.003 286.3 / 0.85);+ --sidebar-accent-foreground: oklch(0.29 0.005 286.1);+ --sidebar-border: oklch(0.871 0.005 286.3);+ --sidebar-ring: oklch(0.538 0.095 257.8);+ --surface: oklch(0.952 0 0);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0.227 0.004 286.1 / 0.12);+}++:root.dark[data-app-theme='carbon'] {+ --background: oklch(0.15 0 0);+ --foreground: oklch(0.882 0 0);+ --card: oklch(0.228 0.006 285.9 / 0.75);+ --card-foreground: oklch(0.882 0 0);+ --popover: oklch(0.228 0.006 285.9);+ --popover-foreground: oklch(0.882 0 0);+ --primary: oklch(0.655 0.105 260.5);+ --primary-foreground: oklch(0.15 0 0);+ --secondary: oklch(0.402 0.002 286 / 0.62);+ --secondary-foreground: oklch(0.882 0 0);+ --muted: oklch(0.402 0.002 286 / 0.62);+ --muted-foreground: oklch(0.733 0.007 286.2);+ --accent: oklch(0.402 0.002 286 / 0.62);+ --accent-foreground: oklch(0.882 0 0);+ --border: oklch(0.882 0 0 / 0.12);+ --input: oklch(0.882 0 0 / 0.16);+ --ring: oklch(0.655 0.105 260.5);+ --sidebar: oklch(0.188 0.004 286 / 0.85);+ --sidebar-foreground: oklch(0.882 0 0);+ --sidebar-primary: oklch(0.655 0.105 260.5);+ --sidebar-primary-foreground: oklch(0.15 0 0);+ --sidebar-accent: oklch(0.402 0.002 286 / 0.62);+ --sidebar-accent-foreground: oklch(0.882 0 0);+ --sidebar-border: oklch(0.882 0 0 / 0.12);+ --sidebar-ring: oklch(0.655 0.105 260.5);+ --surface: oklch(0.208 0.005 286);+ --bg-surface: var(--surface);+ --glass-base: var(--surface);+ --glass-tint: var(--primary);+ --glass-shadow-color: oklch(0 0 0 / 0.4);+}+: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);+ --background: oklch(0.955 0.021 268.4);+ --foreground: oklch(0.288 0.052 265.1);+ --card: oklch(0.985 0.007 268.5 / 0.85);+ --card-foreground: oklch(0.288 0.052 265.1);+ --popover: oklch(0.985 0.007 268.5);+ --popover-foreground: oklch(0.288 0.052 265.1);+ --primary: oklch(0.498 0.146 266);+ --primary-foreground: oklch(0.985 0.007 268.5);+ --secondary: oklch(0.912 0.03 267.2 / 0.84);+ --secondary-foreground: oklch(0.327 0.053 270.1);+ --muted: oklch(0.912 0.03 267.2 / 0.84);+ --muted-foreground: oklch(0.473 0.073 268);+ --accent: oklch(0.912 0.03 267.2 / 0.84);+ --accent-foreground: oklch(0.327 0.053 270.1);+ --border: oklch(0.828 0.05 268.8);+ --input: oklch(0.828 0.05 268.8);+ --ring: oklch(0.498 0.146 266);+ --sidebar: oklch(0.922 0.03 269.1 / 0.9);+ --sidebar-foreground: oklch(0.288 0.052 265.1);+ --sidebar-primary: oklch(0.498 0.146 266);+ --sidebar-primary-foreground: oklch(0.985 0.007 268.5);+ --sidebar-accent: oklch(0.905 0.032 268 / 0.84);+ --sidebar-accent-foreground: oklch(0.327 0.053 270.1);+ --sidebar-border: oklch(0.828 0.05 268.8);+ --sidebar-ring: oklch(0.498 0.146 266);+ --surface: oklch(0.943 0.02 267.3);--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-shadow-color: oklch(0.288 0.052 265.1 / 0.12);}: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);+ --background: oklch(0.185 0.019 274.7);+ --foreground: oklch(0.867 0.025 278.3);+ --card: oklch(0.261 0.041 271.2 / 0.74);+ --card-foreground: oklch(0.867 0.025 278.3);+ --popover: oklch(0.261 0.041 271.2);+ --popover-foreground: oklch(0.867 0.025 278.3);+ --primary: oklch(0.747 0.13 264.1);+ --primary-foreground: oklch(0.185 0.019 274.7);+ --secondary: oklch(0.472 0.057 275.3 / 0.64);+ --secondary-foreground: oklch(0.867 0.025 278.3);+ --muted: oklch(0.472 0.057 275.3 / 0.64);+ --muted-foreground: oklch(0.725 0.051 271);+ --accent: oklch(0.472 0.057 275.3 / 0.64);+ --accent-foreground: oklch(0.867 0.025 278.3);+ --border: oklch(0.867 0.025 278.3 / 0.12);+ --input: oklch(0.867 0.025 278.3 / 0.16);+ --ring: oklch(0.747 0.13 264.1);+ --sidebar: oklch(0.222 0.036 271.4 / 0.84);+ --sidebar-foreground: oklch(0.867 0.025 278.3);+ --sidebar-primary: oklch(0.747 0.13 264.1);+ --sidebar-primary-foreground: oklch(0.185 0.019 274.7);+ --sidebar-accent: oklch(0.472 0.057 275.3 / 0.64);+ --sidebar-accent-foreground: oklch(0.867 0.025 278.3);+ --sidebar-border: oklch(0.867 0.025 278.3 / 0.12);+ --sidebar-ring: oklch(0.747 0.13 264.1);+ --surface: oklch(0.24 0.038 272);--bg-surface: var(--surface);--glass-base: var(--surface);--glass-tint: var(--primary);- --glass-shadow-color: oklch(0 0 0 / 0.36);+ --glass-shadow-color: oklch(0 0 0 / 0.38);}:root[data-app-theme='amber'] {diff --git a/types/user/user.go b/types/user/user.goindex 874c776dd..a31be4deb 100644--- a/types/user/user.go+++ b/types/user/user.go@@ -15,7 +15,7 @@ const (// on the user model and as the wire DTO.type Preferences struct {ThemeMode *string `json:"themeMode,omitempty" enum:"light,dark,system" doc:"Light/dark mode preference"`- ApplicationTheme *string `json:"applicationTheme,omitempty" enum:"default,graphite,ocean,amber,github,nord,everforest,rosepine" doc:"Application theme preset"`+ ApplicationTheme *string `json:"applicationTheme,omitempty" enum:"default,graphite,carbon,ocean,amber,github,nord,everforest,rosepine" doc:"Application theme preset"`AccentColor *string `json:"accentColor,omitempty" doc:"Primary accent color, or 'default'"`IconCatalog *string `json:"iconCatalog,omitempty" enum:"selfhst,dashboard-icons" doc:"Catalog used to resolve project and container icon slugs"`OledMode *bool `json:"oledMode,omitempty" doc:"Use true-black backgrounds in dark mode"`