Foundations · policy
One list of patterns that are already designed and must be reused everywhere — no native OS controls, no one-off pills, no bespoke re-implementations. This card is the visible face of the registry; the authoritative copy is guidelines/MANDATES.md, the binding rule is in CLAUDE.md, and machine checks live in _adherence.oxlintrc.json.
| # | Pattern | Use this | Never this |
|---|---|---|---|
| 1 | Select / dropdown | <Select> · vanilla .sc-select via scEnhanceSelects() | the browser's native option popup |
| 2 | Status pill | <Badge> · .sc-badge--<tone> | a span with inline background + radius |
| 3 | Button | <Button> · .sc-btn | a raw <button> styled inline |
| 4 | Input & field | <Input> · .sc-field + .sc-input | a bare <input> without the field shell |
| 5 | Icon | <Icon> · data-lucide (Lucide) | a hand-drawn inline <svg> |
| 6 | Avatar + presence | <Avatar status> · .sc-avatar | a circle with an absolutely-placed dot |
| 7 | Data table | .sc-table chrome (--striped / --hover) | an unstyled <table> or ad-hoc grid |
| 8 | Pagination | <Pager> · .sc-pager | a custom prev / next number row |
| 9 | Color & spacing | token var(--…) values | raw hex / px where a token exists |
The full table — with the exact React component file and CSS class per row — lives in guidelines/MANDATES.md. Add a row whenever you create a pattern worth reusing.
Every status across the portal, mobile app and specimen tables resolves to these — audited, no drift. Content is text or a system icon + label — never a leading bullet.
<select> into line with #1.