mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 02:05:57 +08:00
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
This commit is contained in:
@@ -122,3 +122,33 @@ html.dark ::-webkit-scrollbar-thumb:hover {
|
||||
*:focus-visible {
|
||||
@apply outline-2 outline-blue-500 outline-offset-2;
|
||||
}
|
||||
|
||||
/* 统一边框设计系统 - 使用工具类定义 */
|
||||
@layer utilities {
|
||||
/* 默认边框:1px,使用主题边框颜色 */
|
||||
.border-default {
|
||||
border-width: 1px;
|
||||
border-color: hsl(var(--border));
|
||||
}
|
||||
|
||||
/* 激活边框:2px,使用主色 */
|
||||
.border-active {
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.border-border-default {
|
||||
border-color: hsl(var(--border));
|
||||
}
|
||||
|
||||
.border-border-active {
|
||||
border-color: hsl(var(--primary));
|
||||
}
|
||||
|
||||
.border-border-hover {
|
||||
border-color: hsl(var(--primary) / 0.4);
|
||||
}
|
||||
|
||||
.border-border-dragging {
|
||||
border-color: hsl(var(--primary) / 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user