IMS · UI REFRESH · HANDOFF SPEC
Patterns, tokens and states
Everything in IMS Admin.dc.html is built from the pieces below. Values are the ones used in the mockups; map them to Tailwind theme tokens once and the screens follow. Type is Geist (UI) and Geist Mono (references, keyboard hints).
1 · Color
{{ c.name }}
{{ c.hex }}
{{ c.use }}
Status pills
{{ p.label }}{{ p.bg }} / {{ p.fg }}
Pill text is always a dark ramp step on a light tint — never white on a saturated fill. Priority uses the same scale: Critical = red, High = orange, Medium = yellow, Low = neutral. Incident status and CAPA status share one palette so the dashboard reads consistently.
2 · Type, radius, shadow
{{ t.spec }}{{ t.sample }}
{{ s.k }}{{ s.v }}
3 · Buttons and controls
Primary · 32px · #303030, inset highlight{{ ic.plus }}Report incidenthover #1f1f1f · active #000 · focus 2px ring #0f766e offset 2px
Secondary · white, 1px #d4d4d4 ring{{ ic.download }}Exporthover bg #f7f7f7 · active bg #ebebeb
Icon button · 28px, ghost{{ ic.more }}rest transparent · hover #ebebeb
Filter chip · 28px
Owner{{ ic.chev12 }}Priority: Critical{{ ic.x12 }}
unset: chevron · set: teal tint + value + clear ×
Segmented · 2px padding on #e3e3e3
{{ ic.rows }}List{{ ic.kanban }}Board
Checkbox · 16px, radius 5
{{ ic.tick12 }}{{ ic.minus12 }}
off · on · indeterminate (header)
Text input · 36px desktop, 48px mobile
Placeholder
rest ring #8a8a8a · focus ring 2px #0f766e · error #b3261e
4 · Table card
One component wraps every list in the app. Anatomy top to bottom; every part is optional except the table and the card.
All 248
Open 37
{{ ic.plus }}
A · saved views · padding 8 · active #e3e3e3
{{ ic.search }}Search
Site{{ ic.chev12 }}B · search + filter chips · padding 10/12
Reference{{ ic.down12 }}Status{{ ic.sort12 }}C · header #f7f7f7 · 12px/550 · sorted column ink, others #c4c4c4
IMS-2026-0248InvestigatingD · row rest · #fff · 13px · 12px cell padding · 1px #ebebeb rule
IMS-2026-0247TriagedE · row hover · #f7f7f7 · quick actions appear right
{{ ic.eye }}{{ ic.more }}
{{ ic.tick12 }}IMS-2026-0246ReportedF · row selected · #f2f7f6
Showing 1–3 of 248G · footer #f7f7f7 · count left, pager right
{{ ic.chevLeft }}{{ ic.chevRight }}
{{ ic.tick12 }}1 selectedAssignExportH · bulk bar · floats centred above footer, appears on first selection
BehaviourWhole row is clickable and opens the record; the checkbox cell, links and quick actions stop propagation.Sorting is single-column; the sorted header shows a filled arrow, others a faint double chevron.Saved views are server-side filters; the + opens "Save current filters as view". Counts update live.Empty state replaces thead + tbody with a 64px icon tile, one line of copy and the primary action (see artboard 08).
MobileBelow 768px the table becomes a stacked list in the same card: reference + status on line one, type · zone on line two, date on line three, chevron right (artboard 10).Saved views become horizontally scrolling 999px chips; filters collapse to one "Filter" button opening a sheet.Bulk bar is replaced by a bottom sheet.
5 · Layout shell
DesktopTop bar 56px #1a1a1a: brand 224px · ⌘K search max 520px #303030 · bell + user chip 224px.Sidebar 240px #ebebeb, padding 12, items 32px radius 8; active item white with 1px ring and teal icon; badges 999px #dcdcdc.Main padding 24/32, column gap 16. Page title 20px/650 with actions right. Detail pages use 1fr + 320–340px side rail.Page background #f1f1f1; cards white, radius 12, ring rgba(0,0,0,.08) + 1px shadow.
Mobile (reporter)390px reference. Page title 22px/650, horizontal padding 16, card gap 12.Tab bar: white, 1px top rule, 3 items, 22px icons, 10.5px labels; active #0f766e.Form controls 48px tall, radius 12; primary button full width 48px. Footers sit on #f1f1f1 with a 1px top rule and 30px bottom safe area.Minimum hit target 44px everywhere.
6 · Screen index
{{ s.id }}{{ s.name }}{{ s.route }}