From c9ed4c927f4361468f658dfc30c182f4da43e2f9 Mon Sep 17 00:00:00 2001 From: Nexus Dev Date: Sat, 11 Apr 2026 17:22:15 +0000 Subject: [PATCH] refactor(nexus): replace literal brand hexes with tailwind aliases --- ui/src/components/frame/GlobalMicButton.tsx | 10 +++++----- ui/src/components/projects/ProjectCard.test.tsx | 4 ++-- ui/src/components/projects/ProjectCard.tsx | 5 ++--- ui/src/components/projects/tabs/OverviewTab.tsx | 4 ++-- ui/src/components/projects/tabs/TabPlaceholder.tsx | 2 +- ui/src/components/settings/TelegramSection.tsx | 2 +- ui/src/pages/Projects.tsx | 8 ++++---- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/ui/src/components/frame/GlobalMicButton.tsx b/ui/src/components/frame/GlobalMicButton.tsx index 7d586e8e..21670350 100644 --- a/ui/src/components/frame/GlobalMicButton.tsx +++ b/ui/src/components/frame/GlobalMicButton.tsx @@ -15,9 +15,9 @@ import { useVoice } from "../../context/VoiceContext"; * - listening: volt fill, 1.5s pulse loop + expanding volt ring * - speaking: silver fill, no pulse * - * Literal hex `#166534` (forest) and `#a0a0a0` (silver) are used because - * MIGRATION-PLAN.md §3 proposes these as new CSS variables but has not yet - * shipped them. Volt uses the `text-primary`/`bg-primary` semantic token. + * Uses the direct brand Tailwind aliases (`bg-forest`, `bg-silver`) that + * resolve to the `--forest` / `--silver` CSS vars declared in index.css. + * Volt uses the `text-primary`/`bg-primary` semantic token. */ export function GlobalMicButton() { const { state, toggleListening, hasQueuedVoice } = useVoice(); @@ -53,7 +53,7 @@ export function GlobalMicButton() { aria-hidden="true" className={cn( "h-2 w-2 rounded-full", - hasQueuedVoice ? "bg-primary" : "bg-[#166534]", + hasQueuedVoice ? "bg-primary" : "bg-forest", )} /> )} @@ -72,7 +72,7 @@ export function GlobalMicButton() { {state === "speaking" && (