Adopt WorkClaw's shadcn/ui Neutral token contract (Tailwind v4)
Replace the hand-rolled @theme color block with a real shadcn init shape: bare :root (light) + .dark (dark) tokens mapped to --color-* via @theme inline, plus the missing semantic/chart/radius tokens. --accent is now neutral (#262626) to match WorkClaw; the ~16 coral-via-accent usages migrate to the dedicated `coral` brand token so they stay coral. Adds cn() (clsx + tailwind-merge) and components.json so future `npx shadcn add` works. Clawmates-specific tokens (coral brand, marketing palette, measured shadows, motion, layout, type scale) are preserved verbatim in a separate @theme block. Root <html> gains `dark` (app/login read .dark; marketing stays light via explicit colors). We do NOT add shadcn's Button/Card/etc. — they'd conflict with the existing measured-to-WorkClaw components. Verified value-preserving: typecheck/lint/86 unit/31 E2E all green, and all 6 visual baselines pass with no diff. Compiled + live CSS confirm bg-accent→#262626 (neutral), text-coral→#f96565, chart tokens present. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e6f50c7ecb
commit
5ff2b2ca33
@@ -50,7 +50,7 @@ export function Avatar({
|
||||
<span
|
||||
aria-hidden
|
||||
className={`inline-flex items-center justify-center font-medium text-background ${radius} ${SIZES[size]}`}
|
||||
style={{ backgroundColor: accent || "var(--color-accent)" }}
|
||||
style={{ backgroundColor: accent || "var(--color-coral)" }}
|
||||
>
|
||||
{initials}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user