fix(web): item type badge colors don't match style guide #65

Closed
opened 2026-02-13 19:00:08 +00:00 by forbes · 0 comments
Owner

The item type badge color mapping in ItemTable.tsx (lines 52-55) and ItemDetail.tsx (lines 67-70) contradicts docs/STYLE.md Accent Usage for Data Types.

Current (wrong):

  • Part → blue, Assembly → green, Document → yellow

Should be (per style guide):

  • Part → --ctp-green / rgba(166,227,161,0.2)
  • Assembly → --ctp-mauve / rgba(203,166,247,0.2)
  • Document → --ctp-blue / rgba(137,180,250,0.2)
  • Purchased → --ctp-peach / rgba(250,179,135,0.2)
  • Phantom → --ctp-overlay1

Tooling (currently red) is not in the style guide — pick a color and add it to the spec.

Files: web/src/components/items/ItemTable.tsx, web/src/components/items/ItemDetail.tsx

The item type badge color mapping in `ItemTable.tsx` (lines 52-55) and `ItemDetail.tsx` (lines 67-70) contradicts `docs/STYLE.md` Accent Usage for Data Types. **Current (wrong):** - Part → blue, Assembly → green, Document → yellow **Should be (per style guide):** - Part → `--ctp-green` / `rgba(166,227,161,0.2)` - Assembly → `--ctp-mauve` / `rgba(203,166,247,0.2)` - Document → `--ctp-blue` / `rgba(137,180,250,0.2)` - Purchased → `--ctp-peach` / `rgba(250,179,135,0.2)` - Phantom → `--ctp-overlay1` Tooling (currently red) is not in the style guide — pick a color and add it to the spec. **Files:** `web/src/components/items/ItemTable.tsx`, `web/src/components/items/ItemDetail.tsx`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo#65