Shared states — one component each, the same words on every screen

<StatusMessage kind="loading">

Loading …

where the data will appear · aria-busy on the region · muted text

<StatusMessage kind="empty">

No uploads in this session yet.

“No <things> yet.” · with a filter: “No <things> with <filter>.” · muted text

<StatusMessage kind="error" onRetry>
FeeCheck service unreachable. No data loaded.Reload

role="alert" · “<Service> unreachable. No data loaded.” · Reload re-runs the route's loader

<StatusMessage kind="status">

synthetic-contract-003.pdf is uploaded.

role="status" · “<Thing> is <result>.” · after a confirmed action

<ConfirmDialog title body confirmLabel onConfirm>

Title as a question?

One sentence on what happens and whether it can be undone.

CancelAction

If the action fails: the error shows here, the dialog stays open, nothing changes.

Native <dialog> with showModal(): focus starts on Cancel, Tab stays inside, Escape and Cancel change nothing, focus returns to the button that opened it. The opening button's text ends in “…”. Used for every action with an effect outside the page or on a state; the action is written to the audit trail by the backend.

<Button variant> · <StateChip tone> · <Icon name>
primary — one per screensecondary — everything else, Canceldanger — filled only inside a dialog

44 px high, 8 px radius. A link that looks like a button stays an <a> (navigation); a <button> acts.

successwarningneeds a personinfoAIneutral

StateChip tones are design.md's six status pairs; the chip always carries the word, colour never alone. Icon is the feecheck-icons.svg sprite, shared with the website — not Lucide.