Skip to content

Part of the approved Iteration 2 design pack. Read together with design-decision.md, which records binding corrections, including the token-naming corrections that override this file's --syrf-accent/--syrf-brand-ink hex values and the final token names (--syrf-warning-container, --syrf-warning-accent, --syrf-info-container — the --syrf-color-* spellings below are provisional and superseded).

Iteration 2 — token mapping (Wave 3 handoff)

Every colour/typography role used by the Study management designs, mapped from the design-system CSS variable used in the prototype to the production Angular theme. Rule: no raw hexes in product code — hexes below are the light-mode fallbacks baked into the DS variables. Dark mode: all tokens flip via .global-dark-theme / data-theme="dark"; --syrf-brand-ink stays navy by design.

Surfaces and text

Role in design DS token (fallback) Angular / M3 mapping
Page + card surface --syrf-surface (#fdfcff) --mat-sys-surface
Row detail / op strip / code block bg --syrf-surface-container-low (#f8f9fd) --mat-sys-surface-container-low
Progress track --syrf-surface-variant (#e1e2ec) --mat-sys-surface-variant
Reduced-motion indeterminate track --syrf-surface-dim (#dddce4) --mat-sys-surface-dim
Primary text --syrf-on-surface (#1a1c1e) --mat-sys-on-surface
Secondary text, column headers, meta --syrf-on-surface-variant (#393b42) SyRF-bumped --mat-sys-on-surface-variant (see styles.scss override)
Toolbar / active-group heading --syrf-brand-ink (#1c3053) --syrf-brand-ink (non-M3 brand surface, both modes)

Interactive and semantic

Role in design DS token (fallback) Angular / M3 mapping
Links, progress fill, focus outline --syrf-accent (#4b5e84) --mat-sys-primary (M3 tone 40; tone 80 in dark)
Cancel button (destructive outline) --syrf-error-accent (#b3261e) --mat-sys-error
Needs-attention row tint --syrf-warning-container (#fdecd3) --syrf-color-warning-container
Needs-attention group heading --syrf-warning-accent (#8a5000) --syrf-color-warning-accent
Revealed (deep-linked) row tint --syrf-info-container (#dfe8f7) --syrf-color-info-container
Field/select border --syrf-outline (#74777f) --mat-sys-outline
Op strip / error list / Copy borders --syrf-outline-variant (#c5c6cf) --mat-sys-outline-variant

Status chip kinds (shared component — StatusView contract)

Chip colours live inside the DS Chip component; consumers pass kind only, never colour.

StatusView kind DS Chip kind Semantic
ok success Terminal success (Complete, PDFs uploaded, Completed parsing)
info info Active/running states
warn warning Needs attention, recoverable (Error, Timed Out)
stopped error Hard stop (Infected/Upload stopped)
muted neutral Cancelled, Abandoned, Expired, Unknown status

Literals that stay literal (documented exceptions)

Value Use Note
rgba(0,0,0,0.12) Card/hairline borders DS-documented divider value
#eef0f4 Row dividers inside tables Map to --mat-sys-surface-container in Wave 3 if a token is preferred
#ffffff Table/card interiors on tinted page --mat-sys-surface acceptable substitute

Prototype-only (never ship)

#26282e chrome bar, #e9eaef/#dfe1e7 board backgrounds, frame border rgba(0,0,0,0.16), frame shadow — these belong to the review harness, not the product.

Type and spacing

Roboto only; Roboto Mono for job IDs, raw enum values and error lines. Sizes used: h1 28/24 (narrow), group heading 12 uppercase, row body 13, meta 12–12.5, column header 11.5. All spacing on the 4px grid (--syrf-sp-*): card padding 24, row padding 9×14, group gap 14. Radii: 4 buttons/selects, 6 op strips, 8 cards/groups (--syrf-radius-md), 999 chrome pills (prototype only).