From 17123ae9fbef77241ed44602aacf47866a4863b3 Mon Sep 17 00:00:00 2001 From: nblog <503407184@qq.com> Date: Tue, 9 Jun 2026 23:56:25 +0800 Subject: [PATCH 1/3] fix: honor light theme in playground --- frontend/src/app/globals.css | 20 +++--- .../src/components/layout/GlobalSidebar.tsx | 2 +- .../src/components/layout/LumenXBranding.tsx | 8 +-- .../modules/playground/AssetPickerModal.tsx | 42 +++++------ .../modules/playground/DetailPanel.tsx | 42 +++++------ .../modules/playground/GalleryView.tsx | 42 +++++------ .../modules/playground/MediaInput.tsx | 42 +++++------ .../modules/playground/ModeSelector.tsx | 16 ++--- .../modules/playground/ModelSelector.tsx | 24 +++---- .../modules/playground/ParameterBar.tsx | 70 +++++++++---------- .../modules/playground/PlaygroundPage.tsx | 40 +++++------ .../playground/PromptHistoryDrawer.tsx | 28 ++++---- .../modules/playground/PromptInput.tsx | 12 ++-- .../playground/PromptTemplateModal.tsx | 70 +++++++++---------- .../modules/playground/ResultCard.tsx | 60 ++++++++-------- .../modules/playground/ResultGallery.tsx | 34 ++++----- 16 files changed, 276 insertions(+), 276 deletions(-) diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 675b4cbd..dfd4fdfb 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -61,22 +61,22 @@ html.dark { } html.light { - --color-bg-base: #f8f9fa; - --color-bg-surface: #ffffff; + --color-bg-base: #eef1f6; + --color-bg-surface: rgba(247, 249, 252, 0.86); --color-bg-elevated: #ffffff; - --color-bg-input: #f1f3f5; - --color-bg-hover: rgba(0, 0, 0, 0.04); - --color-glass: rgba(0, 0, 0, 0.03); - --color-border-default: rgba(0, 0, 0, 0.1); - --color-border-subtle: rgba(0, 0, 0, 0.06); + --color-bg-input: rgba(255, 255, 255, 0.72); + --color-bg-hover: rgba(15, 23, 42, 0.06); + --color-glass: rgba(15, 23, 42, 0.035); + --color-border-default: rgba(15, 23, 42, 0.12); + --color-border-subtle: rgba(15, 23, 42, 0.07); --color-text-primary: #1a1a1a; --color-text-secondary: #6b7280; --color-text-muted: #9ca3af; --color-overlay: rgba(0, 0, 0, 0.2); - --color-bg-inset: rgba(0, 0, 0, 0.02); + --color-bg-inset: rgba(15, 23, 42, 0.035); --foreground-rgb: 26, 26, 26; - --background-start-rgb: 248, 249, 250; - --background-end-rgb: 248, 249, 250; + --background-start-rgb: 238, 241, 246; + --background-end-rgb: 238, 241, 246; /* Light theme: same hues, slightly higher chroma + darker lightness so chips read with enough weight against a white surface. */ diff --git a/frontend/src/components/layout/GlobalSidebar.tsx b/frontend/src/components/layout/GlobalSidebar.tsx index 3ea29f11..a06673ec 100644 --- a/frontend/src/components/layout/GlobalSidebar.tsx +++ b/frontend/src/components/layout/GlobalSidebar.tsx @@ -28,7 +28,7 @@ export default function GlobalSidebar({ activeTab, onTabChange }: GlobalSidebarP }; return ( -