From 373a72e82362c8101d6647ce10d19f129bd7c0d3 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Wed, 6 May 2026 20:44:47 -0700 Subject: [PATCH] refactor(ui): tokenize chat control colors --- web/src/components/ChatControl.tsx | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/web/src/components/ChatControl.tsx b/web/src/components/ChatControl.tsx index 6f6470e..8a45cb1 100644 --- a/web/src/components/ChatControl.tsx +++ b/web/src/components/ChatControl.tsx @@ -89,38 +89,38 @@ export const normalizeProfileForApply = (profileData: any) => ({ const RobotIcon = ({ size = 32 }: { size?: number }) => ( {/* Antenna */} - - + + {/* Head */} - + {/* Eyes */} - - + + - - + + {/* Mouth */} - + {/* Body */} - + {/* Body detail */} - + {/* Arms */} - - + + - - + + - - + + @@ -310,7 +310,7 @@ export const ChatControl = ({ profiles, onApplyProfile }: ChatControlProps) => { const panelStyle: React.CSSProperties = { background: 'var(--card)', border: '1px solid var(--border)', - boxShadow: '0 25px 80px rgba(0,0,0,0.22)', + boxShadow: 'var(--card-shadow)', }; const inputStyle: React.CSSProperties = { background: 'var(--input)', @@ -361,7 +361,7 @@ export const ChatControl = ({ profiles, onApplyProfile }: ChatControlProps) => { justifyContent: 'center', background: 'var(--card)', border: '1.5px solid var(--border)', - boxShadow: '0 8px 32px rgba(0,0,0,0.18), 0 0 20px color-mix(in oklab, var(--ring) 16%, transparent)', + boxShadow: 'var(--card-shadow), 0 0 20px color-mix(in oklab, var(--ring) 16%, transparent)', transition: 'transform 0.2s', }}> @@ -404,7 +404,7 @@ export const ChatControl = ({ profiles, onApplyProfile }: ChatControlProps) => { position: 'fixed', inset: 0, zIndex: 999998, - background: 'rgba(15, 23, 42, 0.45)', + background: 'color-mix(in oklab, var(--background) 45%, transparent)', backdropFilter: 'blur(6px)', animation: 'fadeIn 0.15s ease-out', }} @@ -438,7 +438,7 @@ export const ChatControl = ({ profiles, onApplyProfile }: ChatControlProps) => {
@@ -478,10 +478,10 @@ export const ChatControl = ({ profiles, onApplyProfile }: ChatControlProps) => {
{msg.content} @@ -499,7 +499,7 @@ export const ChatControl = ({ profiles, onApplyProfile }: ChatControlProps) => {
{ variant="ghost" className="flex-1 py-2.5 flex items-center justify-center gap-1.5 text-[11px] font-bold transition-all hover:bg-white/[0.03]" style={{ - color: '#fbbf24', + color: 'var(--bl-warning)', borderRight: '1px solid var(--border)', }} >