Skip to content

Self-improving AI Employees for everyone

refactor(client): Phase 3 (kickoff) - theme.ts deprecation banner + AIAgentNode hex cleanup

trohitg8b19808a34d4
diff --git a/client/src/components/AIAgentNode.tsx b/client/src/components/AIAgentNode.tsx
index 2a6dc120..d3f22df2 100644
--- a/client/src/components/AIAgentNode.tsx
+++ b/client/src/components/AIAgentNode.tsx
@@ -8,17 +8,19 @@ import { useNodeStatus } from '../contexts/WebSocketContext';
import { dracula } from '../styles/theme';
import { ClaudeIcon } from './icons/AIProviderIcons';
-// LangGraph phase icons and labels
+// LangGraph phase icons and labels. Colors reference the dracula token
+// constants so a future palette change in tokens.css propagates without
+// editing each phase entry.
const PHASE_CONFIG: Record<string, { icon: string; label: string; color: string }> = {
- initializing: { icon: '⚑', label: 'Initializing', color: '#8be9fd' },
- loading_memory: { icon: 'πŸ’Ύ', label: 'Loading Memory', color: '#bd93f9' },
- memory_loaded: { icon: 'βœ“', label: 'Memory Ready', color: '#50fa7b' },
- building_tools: { icon: 'πŸ”§', label: 'Building Tools', color: '#ffb86c' },
- building_graph: { icon: 'πŸ”—', label: 'Building Graph', color: '#ffb86c' },
- invoking_llm: { icon: '🧠', label: 'Thinking...', color: '#ff79c6' },
- executing_tool: { icon: '⚑', label: 'Using Tool', color: '#ff79c6' },
- tool_completed: { icon: 'βœ“', label: 'Tool Done', color: '#50fa7b' },
- saving_memory: { icon: 'πŸ’Ύ', label: 'Saving Memory', color: '#bd93f9' },
+ initializing: { icon: '⚑', label: 'Initializing', color: dracula.cyan },
+ loading_memory: { icon: 'πŸ’Ύ', label: 'Loading Memory', color: dracula.purple },
+ memory_loaded: { icon: 'βœ“', label: 'Memory Ready', color: dracula.green },
+ building_tools: { icon: 'πŸ”§', label: 'Building Tools', color: dracula.orange },
+ building_graph: { icon: 'πŸ”—', label: 'Building Graph', color: dracula.orange },
+ invoking_llm: { icon: '🧠', label: 'Thinking...', color: dracula.pink },
+ executing_tool: { icon: '⚑', label: 'Using Tool', color: dracula.pink },
+ tool_completed: { icon: 'βœ“', label: 'Tool Done', color: dracula.green },
+ saving_memory: { icon: 'πŸ’Ύ', label: 'Saving Memory', color: dracula.purple },
};
// Theme color keys for accent colors
diff --git a/client/src/styles/theme.ts b/client/src/styles/theme.ts
index 8a9bdb0a..49403ab3 100644
--- a/client/src/styles/theme.ts
+++ b/client/src/styles/theme.ts
@@ -1,4 +1,23 @@
// Unified theme system - consolidated design tokens and component styles
+//
+// PHASE-OUT NOTICE (Phase 3 of docs-internal/ui_migration_plan.md):
+// The single source of truth for color tokens is the :root / .dark
+// blocks in client/src/index.css. New components SHOULD prefer Tailwind
+// utility classes (e.g. `bg-dracula-green`, `text-foreground`,
+// `bg-dracula-orange/15`) over reading these TS exports.
+//
+// Migration cheatsheet:
+// theme.dracula.green -> className="text-dracula-green"
+// { backgroundColor: theme.dracula.X } -> className="bg-dracula-X"
+// { color: theme.colors.text } -> className="text-foreground"
+// { backgroundColor: theme.colors.X } -> className="bg-{token}"
+// theme.dracula.X + '25' -> className="bg-dracula-X/15"
+//
+// The `dracula` and `solarized` constants stay for cases a Tailwind
+// class can't express (SVG `fill=`, react-flow JS edge styles, prismjs
+// token CSS strings). Spacing / fontSize / fontWeight / nodeSize /
+// iconSize / buttonSize / layout / transitions / constants stay too β€”
+// they are not color tokens.
// ============================================================================
// DRACULA COLOR PALETTE (vibrant action colors + dark theme backgrounds)