You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor to semantic color system with Tailwind-inspired structure
Replace 60+ specific color properties with semantic roles:
- Core: primary, secondary, success, error, warning, info
- Neutrals: foreground, background, muted, border, surface, surfaceHover
- Context: aiLine, userLine, aiText, agentContent, etc.
Changes:
- Update ChatTheme interface with semantic color structure
- Refactor dark and light theme definitions to use semantic colors
- Update all 50+ component files to use new property names
- statusAccent → primary
- statusSecondary → secondary
- messageAiText → aiText
- chromeText → foreground
- agentResponseCount → muted
- logoColor → logo
- linkColor → link
- (and 20+ more mappings)
- Remove color constants from login/constants.ts
- Update LoginModal to use theme.success/error instead of constants
- Fix background property mapping in theme-config.ts
Benefits:
- Much easier to create custom themes (15 semantic colors vs 60+ specific)
- Cleaner component code (theme.primary vs theme.statusAccent)
- Matches modern design system patterns (Tailwind, Chakra, MUI)
- Single source of truth for color roles
0 commit comments