Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(theme): darker slate default, Osaka Jade replaces Forest, cooler Ultra Dark
Josh Corbett051af140361d
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/WorkflowUiContext.tsx b/invokeai/frontend/webv2/src/features/workflow/ui/WorkflowUiContext.tsxindex 834153607a..fd0c2eaa4e 100644--- a/invokeai/frontend/webv2/src/features/workflow/ui/WorkflowUiContext.tsx+++ b/invokeai/frontend/webv2/src/features/workflow/ui/WorkflowUiContext.tsx@@ -15,7 +15,7 @@ import type {export interface WorkflowPreferences {reduceMotion: boolean;- themeId: 'classic' | 'light' | 'forest' | 'mono' | 'ultradark';+ themeId: 'classic' | 'light' | 'osakaJade' | 'mono' | 'ultradark';workflowEdgeStyle: 'curved' | 'square';workflowShowMinimap: boolean;workflowSnapToGrid: boolean;diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/__fixtures__/legacyTokenBaseline.json b/invokeai/frontend/webv2/src/platform/ui/theme/__fixtures__/legacyTokenBaseline.jsonindex 26ae854c66..2d58f20946 100644--- a/invokeai/frontend/webv2/src/platform/ui/theme/__fixtures__/legacyTokenBaseline.json+++ b/invokeai/frontend/webv2/src/platform/ui/theme/__fixtures__/legacyTokenBaseline.json@@ -1,48 +1,48 @@{"classic": {- "bg": "oklch(21.074% 0.0087 264.37)",- "bg.subtle": "oklch(26.279% 0.0123 264.34)",- "bg.muted": "oklch(31.237% 0.0157 264.32)",- "bg.panel": "oklch(31.237% 0.0157 264.32)",- "bg.emphasized": "oklch(36.004% 0.019 264.3)",- "bg.inset": "oklch(21.074% 0.0087 264.37)",- "bg.error": "color-mix(in oklab, oklch(70.61% 0.0841 19.38) 14%, oklch(26.279% 0.0123 264.34))",- "bg.success": "color-mix(in oklab, oklch(79.8% 0.1132 141.63) 14%, oklch(26.279% 0.0123 264.34))",- "bg.warning": "color-mix(in oklab, oklch(76.62% 0.0612 62.9) 14%, oklch(26.279% 0.0123 264.34))",- "fg": "oklch(96.017% 0.0029 264.54)",- "fg.muted": "oklch(73.736% 0.0202 264.44)",- "fg.subtle": "oklch(57.965% 0.0337 264.27)",- "fg.grid": "oklch(40.619% 0.0221 264.29)",+ "bg": "oklch(18.8% 0.014 264.4)",+ "bg.subtle": "oklch(23.8% 0.016 264.35)",+ "bg.muted": "oklch(28.8% 0.018 264.3)",+ "bg.panel": "oklch(28.8% 0.018 264.3)",+ "bg.emphasized": "oklch(34% 0.02 264.3)",+ "bg.inset": "oklch(18.8% 0.014 264.4)",+ "bg.error": "color-mix(in oklab, oklch(70.61% 0.0841 19.38) 14%, oklch(23.8% 0.016 264.35))",+ "bg.success": "color-mix(in oklab, oklch(79.8% 0.1132 141.63) 14%, oklch(23.8% 0.016 264.35))",+ "bg.warning": "color-mix(in oklab, oklch(76.62% 0.0612 62.9) 14%, oklch(23.8% 0.016 264.35))",+ "fg": "oklch(96% 0.006 264.5)",+ "fg.muted": "oklch(73.5% 0.019 264.4)",+ "fg.subtle": "oklch(57.5% 0.026 264.3)",+ "fg.grid": "oklch(38.5% 0.022 264.3)","fg.error": "oklch(70.61% 0.0841 19.38)","fg.success": "oklch(79.8% 0.1132 141.63)","fg.warning": "oklch(76.62% 0.0612 62.9)",- "border": "oklch(40.619% 0.0221 264.29)",- "border.subtle": "oklch(40.619% 0.0221 264.29)",- "border.muted": "oklch(40.619% 0.0221 264.29)",- "border.emphasized": "oklch(45.106% 0.0251 264.28)",+ "border": "oklch(39% 0.022 264.3)",+ "border.subtle": "oklch(39% 0.022 264.3)",+ "border.muted": "oklch(39% 0.022 264.3)",+ "border.emphasized": "oklch(44% 0.024 264.3)","border.error": "oklch(70.61% 0.0841 19.38)",- "gray.contrast": "oklch(21.074% 0.0087 264.37)",- "gray.fg": "oklch(96.017% 0.0029 264.54)",- "gray.subtle": "oklch(38.5% 0.0203 264.29)",- "gray.muted": "oklch(36.004% 0.019 264.3)",- "gray.emphasized": "oklch(45.106% 0.0251 264.28)",- "gray.solid": "oklch(96.017% 0.0029 264.54)",+ "gray.contrast": "oklch(18.8% 0.014 264.4)",+ "gray.fg": "oklch(96% 0.006 264.5)",+ "gray.subtle": "oklch(36% 0.021 264.3)",+ "gray.muted": "oklch(34% 0.02 264.3)",+ "gray.emphasized": "oklch(44% 0.024 264.3)",+ "gray.solid": "oklch(96% 0.006 264.5)","gray.focusRing": "oklch(77.738% 0.1 231.76)",- "gray.border": "oklch(45.106% 0.0251 264.28)",+ "gray.border": "oklch(44% 0.024 264.3)","brand.solid": "oklch(92.041% 0.2103 116.59)",- "brand.contrast": "oklch(21.074% 0.0087 264.37)",+ "brand.contrast": "oklch(18.8% 0.014 264.4)","brand.fg": "oklch(92.041% 0.2103 116.59)",- "brand.subtle": "color-mix(in oklab, oklch(92.041% 0.2103 116.59) 16%, oklch(26.279% 0.0123 264.34))",- "brand.muted": "color-mix(in oklab, oklch(92.041% 0.2103 116.59) 26%, oklch(26.279% 0.0123 264.34))",- "brand.emphasized": "color-mix(in oklab, oklch(92.041% 0.2103 116.59) 36%, oklch(26.279% 0.0123 264.34))",+ "brand.subtle": "color-mix(in oklab, oklch(92.041% 0.2103 116.59) 16%, oklch(23.8% 0.016 264.35))",+ "brand.muted": "color-mix(in oklab, oklch(92.041% 0.2103 116.59) 26%, oklch(23.8% 0.016 264.35))",+ "brand.emphasized": "color-mix(in oklab, oklch(92.041% 0.2103 116.59) 36%, oklch(23.8% 0.016 264.35))","brand.focusRing": "oklch(77.738% 0.1 231.76)","brand.border": "oklch(92.041% 0.2103 116.59)","accent.solid": "oklch(77.738% 0.1 231.76)",- "accent.contrast": "oklch(21.074% 0.0087 264.37)",+ "accent.contrast": "oklch(18.8% 0.014 264.4)","accent.fg": "oklch(77.738% 0.1 231.76)",- "accent.subtle": "color-mix(in oklab, oklch(77.738% 0.1 231.76) 16%, oklch(26.279% 0.0123 264.34))",- "accent.muted": "color-mix(in oklab, oklch(77.738% 0.1 231.76) 26%, oklch(26.279% 0.0123 264.34))",- "accent.emphasized": "color-mix(in oklab, oklch(77.738% 0.1 231.76) 36%, oklch(26.279% 0.0123 264.34))",+ "accent.subtle": "color-mix(in oklab, oklch(77.738% 0.1 231.76) 16%, oklch(23.8% 0.016 264.35))",+ "accent.muted": "color-mix(in oklab, oklch(77.738% 0.1 231.76) 26%, oklch(23.8% 0.016 264.35))",+ "accent.emphasized": "color-mix(in oklab, oklch(77.738% 0.1 231.76) 36%, oklch(23.8% 0.016 264.35))","accent.focusRing": "oklch(77.738% 0.1 231.76)","accent.border": "oklch(77.738% 0.1 231.76)"},@@ -93,52 +93,52 @@"accent.focusRing": "oklch(54.615% 0.2152 262.88)","accent.border": "oklch(54.615% 0.2152 262.88)"},- "forest": {- "bg": "oklch(17.349% 0.0154 144.88)",- "bg.subtle": "oklch(19.03% 0.0175 144.85)",- "bg.muted": "oklch(20.99% 0.0219 144.74)",- "bg.panel": "oklch(20.99% 0.0219 144.74)",- "bg.emphasized": "oklch(25.62% 0.03 144.64)",- "bg.inset": "oklch(17.349% 0.0154 144.88)",- "bg.error": "color-mix(in oklab, oklch(69.305% 0.1467 35.44) 14%, oklch(19.03% 0.0175 144.85))",- "bg.success": "color-mix(in oklab, oklch(78% 0.16 148) 14%, oklch(19.03% 0.0175 144.85))",- "bg.warning": "color-mix(in oklab, oklch(80% 0.12 76) 14%, oklch(19.03% 0.0175 144.85))",- "fg": "oklch(90.57% 0.0511 134.45)",- "fg.muted": "oklch(71.619% 0.0575 135.25)",- "fg.subtle": "oklch(53.577% 0.0538 136.73)",- "fg.grid": "oklch(34.825% 0.0526 141.63)",- "fg.error": "oklch(69.305% 0.1467 35.44)",- "fg.success": "oklch(78% 0.16 148)",- "fg.warning": "oklch(80% 0.12 76)",- "border": "oklch(27.425% 0.0354 143.04)",- "border.subtle": "oklch(27.425% 0.0354 143.04)",- "border.muted": "oklch(27.425% 0.0354 143.04)",- "border.emphasized": "oklch(36.133% 0.0575 141.06)",- "border.error": "oklch(69.305% 0.1467 35.44)",- "gray.contrast": "oklch(17.349% 0.0154 144.88)",- "gray.fg": "oklch(90.57% 0.0511 134.45)",- "gray.subtle": "oklch(28.489% 0.0483 141.22)",- "gray.muted": "oklch(25.62% 0.03 144.64)",- "gray.emphasized": "oklch(36.133% 0.0575 141.06)",- "gray.solid": "oklch(90.57% 0.0511 134.45)",- "gray.focusRing": "oklch(70.437% 0.1101 178.23)",- "gray.border": "oklch(36.133% 0.0575 141.06)",- "brand.solid": "oklch(79.714% 0.1784 136.37)",- "brand.contrast": "oklch(18.298% 0.0314 147.69)",- "brand.fg": "oklch(79.714% 0.1784 136.37)",- "brand.subtle": "color-mix(in oklab, oklch(79.714% 0.1784 136.37) 16%, oklch(19.03% 0.0175 144.85))",- "brand.muted": "color-mix(in oklab, oklch(79.714% 0.1784 136.37) 26%, oklch(19.03% 0.0175 144.85))",- "brand.emphasized": "color-mix(in oklab, oklch(79.714% 0.1784 136.37) 36%, oklch(19.03% 0.0175 144.85))",- "brand.focusRing": "oklch(70.437% 0.1101 178.23)",- "brand.border": "oklch(79.714% 0.1784 136.37)",- "accent.solid": "oklch(70.437% 0.1101 178.23)",- "accent.contrast": "oklch(17.44% 0.0258 171.89)",- "accent.fg": "oklch(70.437% 0.1101 178.23)",- "accent.subtle": "color-mix(in oklab, oklch(70.437% 0.1101 178.23) 16%, oklch(19.03% 0.0175 144.85))",- "accent.muted": "color-mix(in oklab, oklch(70.437% 0.1101 178.23) 26%, oklch(19.03% 0.0175 144.85))",- "accent.emphasized": "color-mix(in oklab, oklch(70.437% 0.1101 178.23) 36%, oklch(19.03% 0.0175 144.85))",- "accent.focusRing": "oklch(70.437% 0.1101 178.23)",- "accent.border": "oklch(70.437% 0.1101 178.23)"+ "osakaJade": {+ "bg": "oklch(16.5% 0.015 184)",+ "bg.subtle": "oklch(18.5% 0.017 184)",+ "bg.muted": "oklch(21% 0.021 184)",+ "bg.panel": "oklch(21% 0.021 184)",+ "bg.emphasized": "oklch(25.5% 0.026 183)",+ "bg.inset": "oklch(16.5% 0.015 184)",+ "bg.error": "color-mix(in oklab, oklch(69.5% 0.147 33) 14%, oklch(18.5% 0.017 184))",+ "bg.success": "color-mix(in oklab, oklch(78% 0.15 155) 14%, oklch(18.5% 0.017 184))",+ "bg.warning": "color-mix(in oklab, oklch(80% 0.12 78) 14%, oklch(18.5% 0.017 184))",+ "fg": "oklch(92% 0.028 178)",+ "fg.muted": "oklch(70.5% 0.036 180)",+ "fg.subtle": "oklch(53% 0.037 181)",+ "fg.grid": "oklch(34.5% 0.035 182)",+ "fg.error": "oklch(69.5% 0.147 33)",+ "fg.success": "oklch(78% 0.15 155)",+ "fg.warning": "oklch(80% 0.12 78)",+ "border": "oklch(28.5% 0.03 183)",+ "border.subtle": "oklch(28.5% 0.03 183)",+ "border.muted": "oklch(28.5% 0.03 183)",+ "border.emphasized": "oklch(36.5% 0.038 182)",+ "border.error": "oklch(69.5% 0.147 33)",+ "gray.contrast": "oklch(16.5% 0.015 184)",+ "gray.fg": "oklch(92% 0.028 178)",+ "gray.subtle": "oklch(28.5% 0.032 182)",+ "gray.muted": "oklch(25.5% 0.026 183)",+ "gray.emphasized": "oklch(36.5% 0.038 182)",+ "gray.solid": "oklch(92% 0.028 178)",+ "gray.focusRing": "oklch(72% 0.105 195)",+ "gray.border": "oklch(36.5% 0.038 182)",+ "brand.solid": "oklch(81% 0.145 165)",+ "brand.contrast": "oklch(17% 0.028 175)",+ "brand.fg": "oklch(81% 0.145 165)",+ "brand.subtle": "color-mix(in oklab, oklch(81% 0.145 165) 16%, oklch(18.5% 0.017 184))",+ "brand.muted": "color-mix(in oklab, oklch(81% 0.145 165) 26%, oklch(18.5% 0.017 184))",+ "brand.emphasized": "color-mix(in oklab, oklch(81% 0.145 165) 36%, oklch(18.5% 0.017 184))",+ "brand.focusRing": "oklch(72% 0.105 195)",+ "brand.border": "oklch(81% 0.145 165)",+ "accent.solid": "oklch(72% 0.105 195)",+ "accent.contrast": "oklch(16.5% 0.024 195)",+ "accent.fg": "oklch(72% 0.105 195)",+ "accent.subtle": "color-mix(in oklab, oklch(72% 0.105 195) 16%, oklch(18.5% 0.017 184))",+ "accent.muted": "color-mix(in oklab, oklch(72% 0.105 195) 26%, oklch(18.5% 0.017 184))",+ "accent.emphasized": "color-mix(in oklab, oklch(72% 0.105 195) 36%, oklch(18.5% 0.017 184))",+ "accent.focusRing": "oklch(72% 0.105 195)",+ "accent.border": "oklch(72% 0.105 195)"},"mono": {"bg": "oklch(18.22% 0 0)",@@ -189,48 +189,48 @@},"ultradark": {"bg": "oklch(0% 0 0)",- "bg.subtle": "oklch(11.492% 0 0)",- "bg.muted": "oklch(14.479% 0 0)",- "bg.panel": "oklch(14.479% 0 0)",- "bg.emphasized": "oklch(19.125% 0 0)",+ "bg.subtle": "oklch(11.5% 0.003 250)",+ "bg.muted": "oklch(14.5% 0.003 250)",+ "bg.panel": "oklch(14.5% 0.003 250)",+ "bg.emphasized": "oklch(19% 0.004 250)","bg.inset": "oklch(0% 0 0)",- "bg.error": "color-mix(in oklab, oklch(71.161% 0.1812 22.84) 14%, oklch(11.492% 0 0))",- "bg.success": "color-mix(in oklab, oklch(76.5% 0.16 150.5) 14%, oklch(11.492% 0 0))",- "bg.warning": "color-mix(in oklab, oklch(79.5% 0.13 80) 14%, oklch(11.492% 0 0))",- "fg": "oklch(88.901% 0.0317 120.83)",- "fg.muted": "oklch(66.382% 0.0192 131.96)",- "fg.subtle": "oklch(47.041% 0.0184 127.12)",- "fg.grid": "oklch(23.929% 0 0)",+ "bg.error": "color-mix(in oklab, oklch(71.161% 0.1812 22.84) 14%, oklch(11.5% 0.003 250))",+ "bg.success": "color-mix(in oklab, oklch(76.5% 0.16 150.5) 14%, oklch(11.5% 0.003 250))",+ "bg.warning": "color-mix(in oklab, oklch(79.5% 0.13 80) 14%, oklch(11.5% 0.003 250))",+ "fg": "oklch(89% 0.008 250)",+ "fg.muted": "oklch(66.5% 0.007 250)",+ "fg.subtle": "oklch(47% 0.006 250)",+ "fg.grid": "oklch(24% 0.004 250)","fg.error": "oklch(71.161% 0.1812 22.84)","fg.success": "oklch(76.5% 0.16 150.5)","fg.warning": "oklch(79.5% 0.13 80)",- "border": "oklch(20.904% 0 0)",- "border.subtle": "oklch(20.904% 0 0)",- "border.muted": "oklch(20.904% 0 0)",- "border.emphasized": "oklch(26.862% 0 0)",+ "border": "oklch(21% 0.004 250)",+ "border.subtle": "oklch(21% 0.004 250)",+ "border.muted": "oklch(21% 0.004 250)",+ "border.emphasized": "oklch(27% 0.005 250)","border.error": "oklch(71.161% 0.1812 22.84)","gray.contrast": "oklch(0% 0 0)",- "gray.fg": "oklch(88.901% 0.0317 120.83)",- "gray.subtle": "oklch(21.779% 0 0)",- "gray.muted": "oklch(19.125% 0 0)",- "gray.emphasized": "oklch(26.862% 0 0)",- "gray.solid": "oklch(88.901% 0.0317 120.83)",+ "gray.fg": "oklch(89% 0.008 250)",+ "gray.subtle": "oklch(21.8% 0.004 250)",+ "gray.muted": "oklch(19% 0.004 250)",+ "gray.emphasized": "oklch(27% 0.005 250)",+ "gray.solid": "oklch(89% 0.008 250)","gray.focusRing": "oklch(80.623% 0.1248 228.24)",- "gray.border": "oklch(26.862% 0 0)",+ "gray.border": "oklch(27% 0.005 250)","brand.solid": "oklch(93.444% 0.19 125.56)",- "brand.contrast": "oklch(15.913% 0.0233 128.66)",+ "brand.contrast": "oklch(15% 0.004 250)","brand.fg": "oklch(93.444% 0.19 125.56)",- "brand.subtle": "color-mix(in oklab, oklch(93.444% 0.19 125.56) 16%, oklch(11.492% 0 0))",- "brand.muted": "color-mix(in oklab, oklch(93.444% 0.19 125.56) 26%, oklch(11.492% 0 0))",- "brand.emphasized": "color-mix(in oklab, oklch(93.444% 0.19 125.56) 36%, oklch(11.492% 0 0))",+ "brand.subtle": "color-mix(in oklab, oklch(93.444% 0.19 125.56) 16%, oklch(11.5% 0.003 250))",+ "brand.muted": "color-mix(in oklab, oklch(93.444% 0.19 125.56) 26%, oklch(11.5% 0.003 250))",+ "brand.emphasized": "color-mix(in oklab, oklch(93.444% 0.19 125.56) 36%, oklch(11.5% 0.003 250))","brand.focusRing": "oklch(80.623% 0.1248 228.24)","brand.border": "oklch(93.444% 0.19 125.56)","accent.solid": "oklch(80.623% 0.1248 228.24)","accent.contrast": "oklch(17.416% 0.0256 235.84)","accent.fg": "oklch(80.623% 0.1248 228.24)",- "accent.subtle": "color-mix(in oklab, oklch(80.623% 0.1248 228.24) 16%, oklch(11.492% 0 0))",- "accent.muted": "color-mix(in oklab, oklch(80.623% 0.1248 228.24) 26%, oklch(11.492% 0 0))",- "accent.emphasized": "color-mix(in oklab, oklch(80.623% 0.1248 228.24) 36%, oklch(11.492% 0 0))",+ "accent.subtle": "color-mix(in oklab, oklch(80.623% 0.1248 228.24) 16%, oklch(11.5% 0.003 250))",+ "accent.muted": "color-mix(in oklab, oklch(80.623% 0.1248 228.24) 26%, oklch(11.5% 0.003 250))",+ "accent.emphasized": "color-mix(in oklab, oklch(80.623% 0.1248 228.24) 36%, oklch(11.5% 0.003 250))","accent.focusRing": "oklch(80.623% 0.1248 228.24)","accent.border": "oklch(80.623% 0.1248 228.24)"}diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/__tokenResolve.ts b/invokeai/frontend/webv2/src/platform/ui/theme/__tokenResolve.tsindex 0bdd9a12b3..a991d2e389 100644--- a/invokeai/frontend/webv2/src/platform/ui/theme/__tokenResolve.ts+++ b/invokeai/frontend/webv2/src/platform/ui/theme/__tokenResolve.ts@@ -25,7 +25,7 @@ const dataSel = (id: string): string => `&:root[data-theme=${id}]`;export const THEME_SELECTORS: Record<string, string[]> = {classic: [DARK_SEL, BASE_SEL], // default theme: no [data-theme=classic] rulelight: [dataSel('light'), LIGHT_SEL, BASE_SEL],- forest: [dataSel('forest'), DARK_SEL, BASE_SEL],+ osakaJade: [dataSel('osakaJade'), DARK_SEL, BASE_SEL],mono: [dataSel('mono'), DARK_SEL, BASE_SEL],ultradark: [dataSel('ultradark'), DARK_SEL, BASE_SEL],};diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/system.test.ts b/invokeai/frontend/webv2/src/platform/ui/theme/system.test.tsindex ae48691acc..cb226e1588 100644--- a/invokeai/frontend/webv2/src/platform/ui/theme/system.test.ts+++ b/invokeai/frontend/webv2/src/platform/ui/theme/system.test.ts@@ -57,7 +57,7 @@ describe('ramp + mapping structure', () => {it('uses pure black/white low-opacity image outlines by color mode', () => {expect(resolveToken(sys, 'light', 'border.image')).toBe('oklch(0 0 0 / 0.1)');- for (const theme of ['classic', 'forest', 'mono', 'ultradark']) {+ for (const theme of ['classic', 'osakaJade', 'mono', 'ultradark']) {expect(resolveToken(sys, theme, 'border.image')).toBe('oklch(1 0 0 / 0.1)');}});diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/themes.ts b/invokeai/frontend/webv2/src/platform/ui/theme/themes.tsindex 2defd0a9fe..e034c96f6f 100644--- a/invokeai/frontend/webv2/src/platform/ui/theme/themes.ts+++ b/invokeai/frontend/webv2/src/platform/ui/theme/themes.ts@@ -1,4 +1,4 @@-export type WorkbenchThemeId = 'classic' | 'light' | 'forest' | 'mono' | 'ultradark';+export type WorkbenchThemeId = 'classic' | 'light' | 'osakaJade' | 'mono' | 'ultradark';/*** Steps of the neutral ramp. `50` is the lightest, `950` the darkest — the same@@ -57,32 +57,35 @@ export interface ThemeDefinition {colors: ThemeColors;}+// The slate tint is deliberately even: chroma tracks the ramp smoothly+// (0.014 → 0.026 → 0.014) instead of the old spike-at-400 curve, and the dark+// end sits ~2.5% L lower so the chrome reads as slate, not washed graphite.const classic: ThemeColors = {neutral: {- 50: 'oklch(96.017% 0.0029 264.54)',- 100: 'oklch(91.561% 0.0064 264.52)',- 200: 'oklch(82.648% 0.0133 264.48)',- 300: 'oklch(73.736% 0.0202 264.44)',- 400: 'oklch(57.965% 0.0337 264.27)',- 500: 'oklch(45.106% 0.0251 264.28)',- 600: 'oklch(40.619% 0.0221 264.29)',- 700: 'oklch(36.004% 0.019 264.3)',- 800: 'oklch(31.237% 0.0157 264.32)',- 900: 'oklch(26.279% 0.0123 264.34)',- 950: 'oklch(21.074% 0.0087 264.37)',+ 50: 'oklch(96% 0.006 264.5)',+ 100: 'oklch(91.5% 0.009 264.5)',+ 200: 'oklch(82.5% 0.014 264.5)',+ 300: 'oklch(73.5% 0.019 264.4)',+ 400: 'oklch(57.5% 0.026 264.3)',+ 500: 'oklch(44% 0.024 264.3)',+ 600: 'oklch(39% 0.022 264.3)',+ 700: 'oklch(34% 0.02 264.3)',+ 800: 'oklch(28.8% 0.018 264.3)',+ 900: 'oklch(23.8% 0.016 264.35)',+ 950: 'oklch(18.8% 0.014 264.4)',},- brand: { solid: 'oklch(92.041% 0.2103 116.59)', contrast: 'oklch(21.074% 0.0087 264.37)' },- accent: { solid: 'oklch(77.738% 0.1 231.76)', contrast: 'oklch(21.074% 0.0087 264.37)' },+ brand: { solid: 'oklch(92.041% 0.2103 116.59)', contrast: 'oklch(18.8% 0.014 264.4)' },+ accent: { solid: 'oklch(77.738% 0.1 231.76)', contrast: 'oklch(18.8% 0.014 264.4)' },danger: 'oklch(70.61% 0.0841 19.38)',success: 'oklch(79.8% 0.1132 141.63)',warning: 'oklch(76.62% 0.0612 62.9)',- inset: 'oklch(21.074% 0.0087 264.37)',+ inset: 'oklch(18.8% 0.014 264.4)',// Sits ~7% L above the neutral.800 surface like every other dark theme's- // fill; it previously matched neutral.800 exactly, making ghost hovers- // invisible on muted surfaces.- fill: 'oklch(38.5% 0.0203 264.29)',- grid: 'oklch(40.619% 0.0221 264.29)',- control: 'oklch(36.004% 0.019 264.3)',+ // fill; matching neutral.800 exactly made ghost hovers invisible on muted+ // surfaces.+ fill: 'oklch(36% 0.021 264.3)',+ grid: 'oklch(38.5% 0.022 264.3)',+ control: 'oklch(34% 0.02 264.3)',};// Cool blue-gray neutrals (hue 264, harmonizing with the blue accent): near-white@@ -112,29 +115,31 @@ const light: ThemeColors = {control: 'oklch(93.5% 0.005 264)',};-const forest: ThemeColors = {+// Jade rather than leaf: the ramp lives on the blue-green side (hue ~180)+// like stone, with the leafier greens reserved for brand and success.+const osakaJade: ThemeColors = {neutral: {- 50: 'oklch(90.57% 0.0511 134.45)',- 100: 'oklch(86.78% 0.0524 134.61)',- 200: 'oklch(79.199% 0.0549 134.93)',- 300: 'oklch(71.619% 0.0575 135.25)',- 400: 'oklch(53.577% 0.0538 136.73)',- 500: 'oklch(36.133% 0.0575 141.06)',- 600: 'oklch(27.425% 0.0354 143.04)',- 700: 'oklch(25.62% 0.03 144.64)',- 800: 'oklch(20.99% 0.0219 144.74)',- 900: 'oklch(19.03% 0.0175 144.85)',- 950: 'oklch(17.349% 0.0154 144.88)',+ 50: 'oklch(92% 0.028 178)',+ 100: 'oklch(87.5% 0.03 178)',+ 200: 'oklch(79% 0.033 179)',+ 300: 'oklch(70.5% 0.036 180)',+ 400: 'oklch(53% 0.037 181)',+ 500: 'oklch(36.5% 0.038 182)',+ 600: 'oklch(28.5% 0.03 183)',+ 700: 'oklch(25.5% 0.026 183)',+ 800: 'oklch(21% 0.021 184)',+ 900: 'oklch(18.5% 0.017 184)',+ 950: 'oklch(16.5% 0.015 184)',},- brand: { solid: 'oklch(79.714% 0.1784 136.37)', contrast: 'oklch(18.298% 0.0314 147.69)' },- accent: { solid: 'oklch(70.437% 0.1101 178.23)', contrast: 'oklch(17.44% 0.0258 171.89)' },- danger: 'oklch(69.305% 0.1467 35.44)',- success: 'oklch(78% 0.16 148)',- warning: 'oklch(80% 0.12 76)',- inset: 'oklch(17.349% 0.0154 144.88)',- fill: 'oklch(28.489% 0.0483 141.22)',- grid: 'oklch(34.825% 0.0526 141.63)',- control: 'oklch(25.62% 0.03 144.64)',+ brand: { solid: 'oklch(81% 0.145 165)', contrast: 'oklch(17% 0.028 175)' },+ accent: { solid: 'oklch(72% 0.105 195)', contrast: 'oklch(16.5% 0.024 195)' },+ danger: 'oklch(69.5% 0.147 33)',+ success: 'oklch(78% 0.15 155)',+ warning: 'oklch(80% 0.12 78)',+ inset: 'oklch(16.5% 0.015 184)',+ fill: 'oklch(28.5% 0.032 182)',+ grid: 'oklch(34.5% 0.035 182)',+ control: 'oklch(25.5% 0.026 183)',};const mono: ThemeColors = {@@ -162,29 +167,32 @@ const mono: ThemeColors = {control: 'oklch(27.274% 0 0)',};+// True-black floor with faintly cool text: the old light steps carried a+// green-lime cast that clashed with everything but the brand mark; the ramp+// now cools toward slate and lets brand lime and sky accent be the color.const ultradark: ThemeColors = {neutral: {- 50: 'oklch(88.901% 0.0317 120.83)',- 100: 'oklch(84.397% 0.0292 123.06)',- 200: 'oklch(75.39% 0.0242 127.51)',- 300: 'oklch(66.382% 0.0192 131.96)',- 400: 'oklch(47.041% 0.0184 127.12)',- 500: 'oklch(26.862% 0 0)',- 600: 'oklch(20.904% 0 0)',- 700: 'oklch(19.125% 0 0)',- 800: 'oklch(14.479% 0 0)',- 900: 'oklch(11.492% 0 0)',+ 50: 'oklch(89% 0.008 250)',+ 100: 'oklch(84.5% 0.008 250)',+ 200: 'oklch(75.5% 0.007 250)',+ 300: 'oklch(66.5% 0.007 250)',+ 400: 'oklch(47% 0.006 250)',+ 500: 'oklch(27% 0.005 250)',+ 600: 'oklch(21% 0.004 250)',+ 700: 'oklch(19% 0.004 250)',+ 800: 'oklch(14.5% 0.003 250)',+ 900: 'oklch(11.5% 0.003 250)',950: 'oklch(0% 0 0)',},- brand: { solid: 'oklch(93.444% 0.19 125.56)', contrast: 'oklch(15.913% 0.0233 128.66)' },+ brand: { solid: 'oklch(93.444% 0.19 125.56)', contrast: 'oklch(15% 0.004 250)' },accent: { solid: 'oklch(80.623% 0.1248 228.24)', contrast: 'oklch(17.416% 0.0256 235.84)' },danger: 'oklch(71.161% 0.1812 22.84)',success: 'oklch(76.5% 0.16 150.5)',warning: 'oklch(79.5% 0.13 80)',inset: 'oklch(0% 0 0)',- fill: 'oklch(21.779% 0 0)',- grid: 'oklch(23.929% 0 0)',- control: 'oklch(19.125% 0 0)',+ fill: 'oklch(21.8% 0.004 250)',+ grid: 'oklch(24% 0.004 250)',+ control: 'oklch(19% 0.004 250)',};/**@@ -208,11 +216,11 @@ export const THEMES: ThemeDefinition[] = [colors: light,},{- id: 'forest',- label: 'Forest',- description: 'Deep greens with a leafy accent.',+ id: 'osakaJade',+ label: 'Osaka Jade',+ description: 'Deep jade stone with a cool green accent.',colorScheme: 'dark',- colors: forest,+ colors: osakaJade,},{id: 'mono',@@ -252,6 +260,20 @@ export const THEMES_BY_ID: Record<WorkbenchThemeId, ThemeDefinition> = THEMES.reexport const isWorkbenchThemeId = (value: unknown): value is WorkbenchThemeId =>typeof value === 'string' && Object.prototype.hasOwnProperty.call(THEMES_BY_ID, value);+/** Renamed themes keep working for preferences persisted under the old id. */+const LEGACY_THEME_IDS: Record<string, WorkbenchThemeId> = {+ forest: 'osakaJade',+};++/** A stored theme preference → a current theme id, or `null` for junk. */+export const resolveWorkbenchThemeId = (value: unknown): WorkbenchThemeId | null => {+ if (isWorkbenchThemeId(value)) {+ return value;+ }++ return typeof value === 'string' ? (LEGACY_THEME_IDS[value] ?? null) : null;+};+/** The default panel surface of a theme (lightest end in light mode, near-darkest in dark). */const surfaceOf = (theme: ThemeDefinition): string =>theme.colorScheme === 'light' ? theme.colors.neutral[50] : theme.colors.neutral[900];diff --git a/invokeai/frontend/webv2/src/workbench/settings/store.test.ts b/invokeai/frontend/webv2/src/workbench/settings/store.test.tsindex a05501bc32..1efc3c7736 100644--- a/invokeai/frontend/webv2/src/workbench/settings/store.test.ts+++ b/invokeai/frontend/webv2/src/workbench/settings/store.test.ts@@ -87,15 +87,23 @@ beforeEach(async () => {});describe('loadWorkbenchSettings', () => {- it('adopts backend preferences without writing them back', async () => {+ it('migrates a preference stored under a renamed theme id', async () => {seedBackendPreferences({ themeId: 'forest' });const preferences = await store.loadWorkbenchSettings();- expect(preferences.themeId).toBe('forest');+ expect(preferences.themeId).toBe('osakaJade');+ });++ it('adopts backend preferences without writing them back', async () => {+ seedBackendPreferences({ themeId: 'osakaJade' });++ const preferences = await store.loadWorkbenchSettings();++ expect(preferences.themeId).toBe('osakaJade');expect(api.setClientStateValue).not.toHaveBeenCalled();expect(store.useWorkbenchSettings).toBeDefined();- expect(store.getWorkbenchPreferences().themeId).toBe('forest');+ expect(store.getWorkbenchPreferences().themeId).toBe('osakaJade');});it('migrates legacy session-blob preferences once when the settings key is missing', async () => {@@ -115,7 +123,7 @@ describe('loadWorkbenchSettings', () => {});it('resolves once per scope and reloads when the scope changes', async () => {- seedBackendPreferences({ themeId: 'forest' });+ seedBackendPreferences({ themeId: 'osakaJade' });await store.loadWorkbenchSettings();await store.loadWorkbenchSettings();@@ -139,7 +147,7 @@ describe('loadWorkbenchSettings', () => {});it('serves the local copy when the backend is unreachable and retries next time', async () => {- seedBackendPreferences({ themeId: 'forest' });+ seedBackendPreferences({ themeId: 'osakaJade' });await store.loadWorkbenchSettings();vi.resetModules();@@ -148,12 +156,12 @@ describe('loadWorkbenchSettings', () => {const offline = await store.loadWorkbenchSettings();- expect(offline.themeId).toBe('forest');+ expect(offline.themeId).toBe('osakaJade');expect(store.useWorkbenchSettings).toBeDefined();const recovered = await store.loadWorkbenchSettings();- expect(recovered.themeId).toBe('forest');+ expect(recovered.themeId).toBe('osakaJade');});it('reports an error with defaults when nothing is available anywhere', async () => {@@ -181,7 +189,7 @@ describe('loadWorkbenchSettings', () => {account.accountLifecycle.activate('user-a', ':user:a');await expect(store.loadWorkbenchSettings()).resolves.toMatchObject({ themeId: 'light' });- resolveOld?.(JSON.stringify({ themeId: 'forest' }));+ resolveOld?.(JSON.stringify({ themeId: 'osakaJade' }));await expect(oldLoad).rejects.toThrow('no longer active');expect(store.getWorkbenchPreferences().themeId).toBe('light');});@@ -189,19 +197,19 @@ describe('loadWorkbenchSettings', () => {describe('patchWorkbenchPreferences', () => {it('persists to the backend and localStorage', async () => {- seedBackendPreferences({ themeId: 'forest' });+ seedBackendPreferences({ themeId: 'osakaJade' });await store.loadWorkbenchSettings();await store.patchWorkbenchPreferences({ reduceMotion: true });expect(readBackendPreferences().reduceMotion).toBe(true);- expect(readBackendPreferences().themeId).toBe('forest');+ expect(readBackendPreferences().themeId).toBe('osakaJade');expect(store.getWorkbenchPreferences().reduceMotion).toBe(true);expect(store.getWorkbenchReduceMotion()).toBe(true);});it('persists account-bound custom hotkeys', async () => {- seedBackendPreferences({ themeId: 'forest' });+ seedBackendPreferences({ themeId: 'osakaJade' });await store.loadWorkbenchSettings();await store.patchWorkbenchPreferences({ customHotkeys: { 'app.invoke': ['mod+shift+enter'] } });@@ -220,13 +228,13 @@ describe('patchWorkbenchPreferences', () => {});it('replays an offline edit on the next load instead of reverting to the server copy', async () => {- seedBackendPreferences({ themeId: 'forest' });+ seedBackendPreferences({ themeId: 'osakaJade' });await store.loadWorkbenchSettings();api.setClientStateValue.mockRejectedValueOnce(new Error('offline'));await store.patchWorkbenchPreferences({ themeId: 'light' });- expect(readBackendPreferences().themeId).toBe('forest');+ expect(readBackendPreferences().themeId).toBe('osakaJade');vi.resetModules();store = await import('./store');@@ -251,7 +259,7 @@ describe('patchWorkbenchPreferences', () => {}));- const first = store.patchWorkbenchPreferences({ themeId: 'forest' });+ const first = store.patchWorkbenchPreferences({ themeId: 'osakaJade' });const second = store.patchWorkbenchPreferences({ themeId: 'light' });await vi.waitFor(() => {@@ -279,7 +287,7 @@ describe('patchWorkbenchPreferences', () => {}));- const write = store.patchWorkbenchPreferences({ themeId: 'forest' });+ const write = store.patchWorkbenchPreferences({ themeId: 'osakaJade' });account.accountLifecycle.invalidate();account.accountLifecycle.activate('user-b', ':user:b');resolveWrite?.();@@ -291,7 +299,7 @@ describe('patchWorkbenchPreferences', () => {describe('clearWorkbenchSettings', () => {it('resets to defaults locally and deletes the backend key', async () => {- seedBackendPreferences({ themeId: 'forest' });+ seedBackendPreferences({ themeId: 'osakaJade' });await store.loadWorkbenchSettings();await store.clearWorkbenchSettings();@@ -315,7 +323,7 @@ describe('clearWorkbenchSettings', () => {}));- const patch = store.patchWorkbenchPreferences({ themeId: 'forest' });+ const patch = store.patchWorkbenchPreferences({ themeId: 'osakaJade' });const clear = store.clearWorkbenchSettings();await vi.waitFor(() => {diff --git a/invokeai/frontend/webv2/src/workbench/settings/store.ts b/invokeai/frontend/webv2/src/workbench/settings/store.tsindex 5542b158a2..c75843446b 100644--- a/invokeai/frontend/webv2/src/workbench/settings/store.ts+++ b/invokeai/frontend/webv2/src/workbench/settings/store.ts@@ -19,7 +19,7 @@ import {} from '@platform/state/accountLifecycle';import { createExternalStore } from '@platform/state/externalStore';import { createSingleFlight } from '@platform/state/singleFlight';-import { DEFAULT_THEME_ID, isWorkbenchThemeId } from '@theme/themes';+import { DEFAULT_THEME_ID, resolveWorkbenchThemeId } from '@theme/themes';import { deleteClientStateValue, getClientStateValue, setClientStateValue } from '@workbench/projects/api';import { fetchSessionBlob } from '@workbench/projects/session';@@ -351,7 +351,7 @@ export const normalizeWorkbenchPreferences = (preferences?: WorkbenchPreferencestypeof preferences?.showPromptSyntaxHighlighting === 'boolean'? preferences.showPromptSyntaxHighlighting: DEFAULT_PREFERENCES.showPromptSyntaxHighlighting,- themeId: isWorkbenchThemeId(preferences?.themeId) ? preferences.themeId : DEFAULT_PREFERENCES.themeId,+ themeId: resolveWorkbenchThemeId(preferences?.themeId) ?? DEFAULT_PREFERENCES.themeId,workflowEdgeStyle:preferences?.workflowEdgeStyle === 'square' || preferences?.workflowEdgeStyle === 'straight'? 'square'diff --git a/invokeai/frontend/webv2/src/workbench/workbenchState.test.ts b/invokeai/frontend/webv2/src/workbench/workbenchState.test.tsindex 9fd2adb65c..11717fbc19 100644--- a/invokeai/frontend/webv2/src/workbench/workbenchState.test.ts+++ b/invokeai/frontend/webv2/src/workbench/workbenchState.test.ts@@ -985,6 +985,54 @@ describe('adopting a project from another realm', () => {});});+describe('workbench widget alignment', () => {+ it('moves a bottom widget between the strip clusters and back', () => {+ const initial = createInitialWorkbenchState();+ const instanceId = getActiveProject(initial).widgetRegions.bottom.instanceIds[0]!;++ const alignedEnd = workbenchReducer(initial, {+ align: 'end',+ instanceId,+ region: 'bottom',+ type: 'setWidgetInstanceAlignment',+ });++ expect(getActiveProject(alignedEnd).widgetRegions.bottom.alignEndInstanceIds).toEqual([instanceId]);+ // Placement itself is untouched: alignment is a render split, not a move.+ expect(getActiveProject(alignedEnd).widgetRegions.bottom.instanceIds).toEqual(+ getActiveProject(initial).widgetRegions.bottom.instanceIds+ );++ const alignedStart = workbenchReducer(alignedEnd, {+ align: 'start',+ instanceId,+ region: 'bottom',+ type: 'setWidgetInstanceAlignment',+ });++ expect(getActiveProject(alignedStart).widgetRegions.bottom.alignEndInstanceIds).toEqual([]);+ });++ it('aligning an already-aligned widget is a no-op', () => {+ const initial = createInitialWorkbenchState();+ const instanceId = getActiveProject(initial).widgetRegions.bottom.instanceIds[0]!;+ const once = workbenchReducer(initial, {+ align: 'end',+ instanceId,+ region: 'bottom',+ type: 'setWidgetInstanceAlignment',+ });+ const twice = workbenchReducer(once, {+ align: 'end',+ instanceId,+ region: 'bottom',+ type: 'setWidgetInstanceAlignment',+ });++ expect(twice).toBe(once);+ });+});+describe('workbench widget state updates', () => {it('patches a missing undefined widget value key as a real state change', () => {const initial = createInitialWorkbenchState();@@ -3826,7 +3874,7 @@ describe('workbench account and project settings', () => {const initial = createInitialWorkbenchState();const legacy = {...initial,- account: { activeLayoutPresetId: 'gallery', preferences: { themeId: 'forest' } },+ account: { activeLayoutPresetId: 'gallery', preferences: { themeId: 'osakaJade' } },} as unknown as WorkbenchState;const state = workbenchReducer(initial, { state: legacy, type: 'hydrateWorkbench' });