Skip to content

ADR 0009: Commitment Desk web appearance

Accepted.

Inbox needs the Parcel Verify identity, supported palette variants, and an appearance preference that works before a session exists and throughout the review workflow.

Use plain CSS custom properties, organized as brand anchors and semantic tokens. Civic Modern and System are the defaults. Light and Dark are resolved into data-mode; data-theme identifies the palette. Form controls follow the resolved color-scheme. Success, warning, review, and danger have separate tokens and written status labels. Accent, accent foreground, control border, focus, and selected colors have separate roles.

The same-origin, synchronous appearance script in the HTML head validates local browser settings and sets the root attributes before the UI mounts. It owns OS preference updates and browser storage. React controls request preference changes through that script so the route and query state stay intact. Storage is optional and holds only palette and mode identifiers.

The app composes the approved lockup as live text and a local SVG mark, using Manrope for headings and Inter for UI text. Both variable fonts are bundled from OFL-licensed Fontsource packages.

Browser tests cover every resolved palette, WCAG AA contrast thresholds for representative semantic pairs and status pills, keyboard focus, preference persistence, system changes, and storage errors.