From 754cd59d5037ebaacd401395a475001539755ab0 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 22 Oct 2025 22:44:42 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20Replace=20hardcoded=20colors?= =?UTF-8?q?=20with=20Tailwind=20semantic=20utilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 16 semantic color variables to @theme in globals.css - Text colors: muted, text-dim, text-light, text-lighter, text-subdued - Background colors: bg-dark, bg-darker, bg-hover, separator, modal-bg - Border colors: border-light, border-medium - Accent colors: accent, accent-dark - Status colors: success, danger - Replace ~90 common hardcoded hex colors across 43 files - ReviewPanel.tsx (30 colors), ProjectSidebar.tsx (26 colors) - CostsTab, GitStatusIndicatorView, FileTree, AIView, and 38+ more - Update global styles (tooltips, markdown, plan content) to use CSS variables - Remaining ~215 colors are intentional (syntax highlighting, git indicators, etc.) Benefits: - Single source of truth for common UI colors - Consistent semantic naming - Theme-ready architecture - ~30% reduction in hardcoded colors Generated with `cmux` --- src/App.tsx | 4 +- src/components/AIView.tsx | 16 +++--- src/components/ChatInput.tsx | 2 +- src/components/ChatInputToast.tsx | 4 +- src/components/ChatMetaSidebar.tsx | 2 +- src/components/CommandSuggestions.tsx | 4 +- src/components/Context1MCheckbox.tsx | 6 +- src/components/DirectorySelectModal.tsx | 2 +- src/components/GitStatusIndicatorView.tsx | 8 +-- src/components/ImageAttachments.tsx | 2 +- src/components/KebabMenu.tsx | 10 ++-- src/components/LeftSidebar.tsx | 8 +-- .../Messages/ChatBarrier/StreamingBarrier.tsx | 4 +- .../Messages/HistoryHiddenMessage.tsx | 2 +- src/components/Messages/MessageWindow.tsx | 2 +- src/components/Messages/TerminalOutput.tsx | 2 +- src/components/Messages/UserMessage.tsx | 2 +- src/components/Modal.tsx | 12 ++-- src/components/ModelSelector.tsx | 10 ++-- src/components/NewWorkspaceModal.tsx | 8 +-- src/components/ProjectSidebar.tsx | 48 ++++++++-------- src/components/RightSidebar.tsx | 14 ++--- .../RightSidebar/CodeReview/FileTree.tsx | 20 +++---- .../RightSidebar/CodeReview/HunkViewer.tsx | 18 +++--- .../RightSidebar/CodeReview/RefreshButton.tsx | 4 +- .../CodeReview/ReviewControls.tsx | 14 ++--- .../RightSidebar/CodeReview/ReviewPanel.tsx | 56 +++++++++---------- .../CodeReview/UntrackedStatus.tsx | 10 ++-- .../RightSidebar/ConsumerBreakdown.tsx | 10 ++-- src/components/RightSidebar/CostsTab.tsx | 28 +++++----- .../RightSidebar/VerticalTokenMeter.tsx | 16 +++--- src/components/SecretsModal.tsx | 12 ++-- src/components/TitleBar.tsx | 2 +- src/components/Tooltip.tsx | 4 +- src/components/VimTextArea.tsx | 4 +- src/components/WorkspaceListItem.tsx | 8 +-- src/components/shared/DiffRenderer.tsx | 4 +- src/components/tools/BashToolCall.tsx | 2 +- src/components/tools/FileEditToolCall.tsx | 4 +- src/components/tools/FileReadToolCall.tsx | 2 +- src/components/tools/ProposePlanToolCall.tsx | 4 +- .../tools/shared/ToolPrimitives.tsx | 6 +- src/styles/globals.css | 32 ++++++++--- 43 files changed, 225 insertions(+), 207 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 3720b7748..17b1606f5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -662,7 +662,7 @@ function AppInner() { return ( <> -
+
) : (
= ({ return (
= ({ return (
= ({ return (
= ({ return (
= ({ ref={chatAreaRef} className="flex-1 min-w-[400px] flex flex-col [@media(max-width:768px)]:min-w-0 [@media(max-width:768px)]:w-full [@media(max-width:768px)]:max-h-full" > -
-
+
+
= ({ {projectName} / {branch} - + {namedWorkspacePath} )} -