feat: update theme and UI styles across components

- Refactored CSS variables for consistent theming, replacing hardcoded colors with CSS variables for better maintainability.
- Updated various components including `AgentAvatar`, `AgentSelector`, and `AgentShareSettings` to utilize new theme variables for colors, backgrounds, and shadows.
- Enhanced SVG icons to use `currentColor` for better adaptability to theme changes.
- Improved overall UI consistency by aligning styles with the new theming approach, enhancing user experience across the application.

These changes significantly improve the visual coherence and maintainability of the UI, ensuring a more seamless user experience.
This commit is contained in:
wizardchen
2026-03-05 11:19:36 +08:00
committed by lyingbug
parent 44f38ca6c3
commit dbc7c32874
95 changed files with 2544 additions and 2407 deletions
@@ -122,13 +122,13 @@ const handleAddModel = (subSection: string) => {
h2 {
font-size: 20px;
font-weight: 600;
color: #333333;
color: var(--td-text-color-primary);
margin: 0 0 8px 0;
}
.section-description {
font-size: 14px;
color: #666666;
color: var(--td-text-color-secondary);
margin: 0;
line-height: 1.5;
}
@@ -145,7 +145,7 @@ const handleAddModel = (subSection: string) => {
align-items: flex-start;
justify-content: space-between;
padding: 20px 0;
border-bottom: 1px solid #e5e7eb;
border-bottom: 1px solid var(--td-component-stroke);
&:last-child {
border-bottom: none;
@@ -160,19 +160,19 @@ const handleAddModel = (subSection: string) => {
label {
font-size: 15px;
font-weight: 500;
color: #333333;
color: var(--td-text-color-primary);
display: block;
margin-bottom: 4px;
.required {
color: #fa5151;
color: var(--td-error-color);
margin-left: 2px;
}
}
.desc {
font-size: 13px;
color: #666666;
color: var(--td-text-color-secondary);
margin: 0;
line-height: 1.5;
}