feat(ui): status colour tokens and status pills #48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/status-tokens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Second paint-job PR (after #47's harness marks): sweatshop's status-colour token contract and StatusPill, so app TSX uses semantic tokens only — no raw Tailwind palette classes.
Commit 1 —
feat(ui): status colour tokens (success/warning/info)styles.css:--success/--warning/--infoin:root(Tailwind green-600/amber-600/blue-600 oklch, verbatim from the installed tailwindcss@4.3.3 theme) and.darkat the 400 lightness; mapped in@theme inlinesotext-success,bg-success/10,border-warning/40(color-mix alpha) all work.text-green-*/bg-green-*→success,text/blue-*→info,yellow/amber-*→warning, prompt-diff del→destructive, including theborder-*-500/40frames the original grep missed. No behaviour change — a rename, not a redesign.Commit 2 —
feat(ui): status pills on delegation and tool cardscomponents/status-pill.tsx(ported from sweatshop's harness-card): rounded-full, mono 10px, leading dot pulsing only when running; tonesrunning|ok|fail|neutralon the new tokens.Verification
pnpm typecheck,pnpm test(1290 passed, 246 pre-existing skips) pass..text-success{color:var(--success)},.bg-success\/10{…color-mix…}, tokens on:root+.dark.components/ui/): zero matches.Screenshots
Before (live main — icons for status):
After — every delegation state and tool cards (light):
After (dark — tokens shift to their 400-lightness pairs):