Chat Blue Isolation Guide
Overview
This guide explains how to implement chat features that maintain blue styling regardless of the selected brand palette (Tuscan/Modern/Forest).CSS Variables (Already Configured)
The following CSS variables are available inglobals.css under the .chat-context class:
Implementation Strategy
1. Wrap Chat Routes with .chat-context
When creating a chat feature, wrap the layout/page with the.chat-context class:
2. Use Chat-Specific Variables in Components
Within chat components, use the--chat-accent variables:
3. Alternative: Use Hardcoded Blue Classes
For simpler implementation, you can use standard Tailwind blue classes inside.chat-context:
.chat-context wrapper ensures these blue colors won’t be affected by brand palette switches.
Current State (No Chat Feature Yet)
As of TASKSET 4 completion:- ✅ CSS variables defined and ready
- ✅ All non-chat blue usage removed (WorkspaceSwitcher now uses
bg-accent) - ✅ Brand palette system operational
- ⏳ Chat feature not yet implemented
Testing Checklist (When Chat is Added)
- Open chat interface
- Switch to Tuscan palette → Chat should stay blue
- Switch to Modern palette → Chat should stay blue
- Switch to Forest palette → Chat should stay blue
- Verify message bubbles, buttons, and highlights use blue tones
- Verify rest of app uses selected brand palette
Example Chat Component
Related Files
web/apps/client/src/app/globals.css- Chat CSS variablesweb/apps/client/src/components/brand-provider.tsx- Brand palette contextweb/apps/client/src/shared/types/brand.ts- Brand type definitions