From 36268806639693512ac5567d74f62bf6c7d0d9a0 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 20 Oct 2025 23:44:06 +0800 Subject: [PATCH] refactor: implement unified border design system - Define custom border utilities in @layer utilities for consistent theming - Add border-default (1px gray), border-active (2px primary), border-hover (40% primary), and border-dragging (60% primary) classes - Update all UI components (Input, Select, TextArea, Button, Dialog, Dropdown) to use unified border classes - Replace hardcoded border colors (gray-200/300/600/700) with theme-responsive border-border-default - Update provider cards, MCP components, settings, and forms with new border system - Remove dark mode border overrides to simplify CSS and improve maintainability - Ensure all borders automatically adapt to light/dark themes via CSS variables --- src/components/AppSwitcher.tsx | 2 +- src/components/UpdateBadge.tsx | 2 +- src/components/UsageFooter.tsx | 4 +-- src/components/UsageScriptModal.tsx | 2 +- src/components/mcp/McpFormModal.tsx | 2 +- src/components/mcp/McpListItem.tsx | 2 +- src/components/mcp/McpWizardModal.tsx | 20 ++++++------- src/components/providers/ProviderCard.tsx | 10 +++---- .../providers/forms/ApiKeyInput.tsx | 4 +-- .../providers/forms/ClaudeConfigEditor.tsx | 2 +- .../forms/CodexCommonConfigModal.tsx | 2 +- .../providers/forms/CodexConfigSections.tsx | 6 ++-- .../providers/forms/CodexQuickWizardModal.tsx | 2 +- .../providers/forms/CommonConfigEditor.tsx | 2 +- .../providers/forms/EndpointSpeedTest.tsx | 6 ++-- .../providers/forms/KimiModelSelector.tsx | 4 +-- src/components/ui/button.tsx | 2 +- src/components/ui/dialog.tsx | 2 +- src/components/ui/dropdown-menu.tsx | 4 +-- src/components/ui/input.tsx | 2 +- src/components/ui/select.tsx | 4 +-- src/components/ui/textarea.tsx | 2 +- src/index.css | 30 +++++++++++++++++++ 23 files changed, 74 insertions(+), 44 deletions(-) diff --git a/src/components/AppSwitcher.tsx b/src/components/AppSwitcher.tsx index ac46961..b37b58f 100644 --- a/src/components/AppSwitcher.tsx +++ b/src/components/AppSwitcher.tsx @@ -13,7 +13,7 @@ export function AppSwitcher({ activeApp, onSwitch }: AppSwitcherProps) { }; return ( -
+