From eb8a55c59fcf6665e036d1a2b41865daf3335be0 Mon Sep 17 00:00:00 2001 From: vkpdeveloper Date: Tue, 27 Oct 2026 00:40:11 +0530 Subject: [PATCH] fix(web): New design dark mode puts emphasis on what matters In the New design's dark theme, secondary text often outranked primary text: bold labels read dimmer than body copy, settings sections dimmer than their descriptions, zero counts and passing checks in alert colors, and open panel toggles looked the same as closed ones. Re-rank those surfaces so emphasis follows importance. All changes are scoped to the New design. --- apps/web/src/components/ChatMarkdown.tsx | 2 +- .../src/components/chat/ComposerControl.tsx | 2 +- .../web/src/components/chat/DiffStatLabel.tsx | 16 +++++++-- .../chat/threadDetailsPanelStyles.ts | 2 +- .../pullRequest/PullRequestChecksPopover.tsx | 9 ++++- .../pullRequest/PullRequestListGroups.tsx | 6 ++-- .../pullRequest/pullRequestPresentation.tsx | 15 +++++++-- .../settings/SettingsSidebarNav.tsx | 2 +- .../components/sidebar/SidebarThreadRow.tsx | 6 ++-- apps/web/src/index.css | 33 +++++++++++++++++-- apps/web/src/lib/diffRendering.ts | 5 +++ 11 files changed, 82 insertions(+), 16 deletions(-) diff --git a/apps/web/src/components/ChatMarkdown.tsx b/apps/web/src/components/ChatMarkdown.tsx index e5691c8cbd35e..10d92a4be6f38 100644 --- a/apps/web/src/components/ChatMarkdown.tsx +++ b/apps/web/src/components/ChatMarkdown.tsx @@ -1628,7 +1628,7 @@ function ChatMarkdown({ className={cn( "chat-markdown w-full min-w-0 [overflow-wrap:anywhere] [word-break:break-word]", !inline && - "text-sm leading-relaxed text-foreground/[calc(90%+var(--appearance-contrast-boost)/10)]", + "text-sm leading-relaxed text-foreground/[calc(90%+var(--appearance-contrast-boost)/10)] redesign:dark:text-foreground/[calc(80%+var(--appearance-contrast-boost)/10)]", className, )} data-streaming={componentState.isStreaming ? "" : undefined} diff --git a/apps/web/src/components/chat/ComposerControl.tsx b/apps/web/src/components/chat/ComposerControl.tsx index 6f1824fd72642..5e9441ba2f3bd 100644 --- a/apps/web/src/components/chat/ComposerControl.tsx +++ b/apps/web/src/components/chat/ComposerControl.tsx @@ -15,7 +15,7 @@ function composerControlClassName(size: ComposerControlSize, className?: string) "[&_:is([data-composer-control-label],[data-chat-provider-model-picker-label])]:[text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:[&_:is([data-composer-control-label],[data-chat-provider-model-picker-label])]:py-1.5", size === "xs" ? "h-7 gap-1 px-1.75 font-normal text-foreground/70 text-sm hover:text-foreground dark:text-muted-foreground sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1" - : "h-7 gap-1.5 px-2 font-medium text-foreground/80 [&_svg:not([class*='text-'])]:text-muted-foreground hover:text-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4", + : "h-7 gap-1.5 px-2 font-medium text-foreground/80 redesign:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground hover:text-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4", "aria-pressed:bg-accent aria-pressed:text-accent-foreground aria-pressed:hover:bg-accent/80", className, ); diff --git a/apps/web/src/components/chat/DiffStatLabel.tsx b/apps/web/src/components/chat/DiffStatLabel.tsx index 7f759a87eade5..5c971e83f0cae 100644 --- a/apps/web/src/components/chat/DiffStatLabel.tsx +++ b/apps/web/src/components/chat/DiffStatLabel.tsx @@ -40,10 +40,22 @@ export const DiffStatLabel = memo(function DiffStatLabel(props: { className, )} > -