From 04698f9026c4e6c7e21a354bb8cc2e6c1d984795 Mon Sep 17 00:00:00 2001 From: Mariana Martinho Date: Tue, 10 Nov 2026 17:18:30 +0100 Subject: [PATCH] style: neutral gray palette for the dark theme Drop the hue-285 tint from the dark grays (same lightness, zero chroma) so the app reads as the Graphite palette the design uses. Co-Authored-By: Claude Opus 5.5 --- src/main/lib/theme.ts | 2 +- src/renderer/panel.html | 2 +- .../src/assets/design-system-theme.css | 20 +++++++------- src/renderer/src/assets/main.css | 26 +++++++++---------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/main/lib/theme.ts b/src/main/lib/theme.ts index c414463b6..a9ca60b56 100644 --- a/src/main/lib/theme.ts +++ b/src/main/lib/theme.ts @@ -8,7 +8,7 @@ export const COMFY_BG_LIGHT = '#f5f5f5' export const COMFY_BG = '#171717' -export const TITLEBAR_BG = '#050506' +export const TITLEBAR_BG = '#050505' export function readableSymbolColor(bg: string): string { const rgb = parseColor(bg) diff --git a/src/renderer/panel.html b/src/renderer/panel.html index ab59e0c05..a97228cc1 100644 --- a/src/renderer/panel.html +++ b/src/renderer/panel.html @@ -15,7 +15,7 @@ #panel-boot-splash { position: fixed; inset: 0; - background: #050506; + background: #050505; z-index: 0; } #app { diff --git a/src/renderer/src/assets/design-system-theme.css b/src/renderer/src/assets/design-system-theme.css index 1a60baf53..42e4cf75e 100644 --- a/src/renderer/src/assets/design-system-theme.css +++ b/src/renderer/src/assets/design-system-theme.css @@ -1,14 +1,14 @@ @import '@comfyorg/design-system/css/baseline.css'; :root { - --background: oklch(0.19 0.003 285); - --foreground: oklch(0.955 0.002 285); - --card: oklch(0.23 0.008 285); - --popover: oklch(0.23 0.008 285); + --background: oklch(0.19 0 0); + --foreground: oklch(0.955 0 0); + --card: oklch(0.23 0 0); + --popover: oklch(0.23 0 0); --primary: var(--foreground); --secondary: oklch(1 0 0 / 0.06); --muted: oklch(1 0 0 / 0.06); - --muted-foreground: oklch(0.76 0.006 285); + --muted-foreground: oklch(0.76 0 0); --accent: oklch(1 0 0 / 0.1); --input: oklch(1 0 0 / 0.06); --ring: oklch(1 0 0 / 0.45); @@ -20,11 +20,11 @@ --font-display: 'PP Formula', 'Inter', system-ui, sans-serif; --color-success: oklch(0.78 0.15 155); - --color-window-background: oklch(0.119 0.003 285); - --color-sidebar-background: oklch(0.196 0.003 285); - --color-content-background: oklch(0.14 0.005 285); - --color-card-hover: oklch(0.265 0.009 285); - --color-subtle-foreground: oklch(0.6 0.008 285); + --color-window-background: oklch(0.119 0 0); + --color-sidebar-background: oklch(0.196 0 0); + --color-content-background: oklch(0.14 0 0); + --color-card-hover: oklch(0.265 0 0); + --color-subtle-foreground: oklch(0.6 0 0); --color-border-strong: oklch(1 0 0 / 0.14); --color-media-overlay: oklch(0 0 0 / 0.55); --color-snapshot-chip: #202020; diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index 37a664a61..b20f18833 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -185,18 +185,18 @@ :root[data-theme='dark'], :root.desktop-panel, :root [data-theme='dark'] { - --neutral-950: oklch(0.13 0.004 285); - --neutral-900: oklch(0.165 0.005 285); - --neutral-800: oklch(0.2 0.006 285); - --neutral-700: oklch(0.23 0.008 285); - --neutral-600: oklch(0.23 0.008 285); - --neutral-500: oklch(0.36 0.008 285); - --neutral-400: oklch(0.48 0.008 285); - --neutral-300: oklch(0.6 0.008 285); - --neutral-200: oklch(0.76 0.006 285); - --neutral-100: oklch(0.9 0.003 285); - - --neutral-50: oklch(0.96 0.002 285); + --neutral-950: oklch(0.13 0 0); + --neutral-900: oklch(0.165 0 0); + --neutral-800: oklch(0.2 0 0); + --neutral-700: oklch(0.23 0 0); + --neutral-600: oklch(0.23 0 0); + --neutral-500: oklch(0.36 0 0); + --neutral-400: oklch(0.48 0 0); + --neutral-300: oklch(0.6 0 0); + --neutral-200: oklch(0.76 0 0); + --neutral-100: oklch(0.9 0 0); + + --neutral-50: oklch(0.96 0 0); --comfy-yellow: var(--neutral-50); --surface-recessed: var(--neutral-900); @@ -207,7 +207,7 @@ --titlebar-icon: var(--color-muted-foreground); --surface: var(--color-card); --secondary-background: var(--color-secondary); - --terminal-bg: oklch(0.1 0.004 285); + --terminal-bg: oklch(0.1 0 0); --text: var(--color-foreground); --text-muted: var(--color-muted-foreground);