diff --git a/docs/design-system/GATES.md b/docs/design-system/GATES.md index ce86429c3..0e654aca2 100644 --- a/docs/design-system/GATES.md +++ b/docs/design-system/GATES.md @@ -73,6 +73,29 @@ Canonical role → live utility (TOKENS §6): `--text-xs` → `text-xs`; `--text `--text-body` → `text-base-minus`; `--text-md` → `text-[length:var(--text-md)]`; `--text-lg` → `text-xl`; `--text-xl` → `text-2xl`; `--text-hero` → `text-hero`. +**Step selection map (guidance only — DS-P2-02).** Pick the named step that matches the +rendered size. The `*-minus` steps sit one notch under the Tailwind default they are +named for. This table is documentation, not a gate: do not delete type steps, and do +not add a blocking ESLint rule for which existing step a surface chooses. + +| Size | Utility | When to use | +| ----- | ----------------- | ------------------------------------------------------------------- | +| 10px | `text-3xs` | Micro floor: dense metadata, legends, count bubbles | +| 11px | `text-2xs` | Chip compact / secondary labels | +| 12px | `text-xs` | Tailwind default; Chip `standard` | +| 13px | `text-sm-minus` | One notch under `text-sm` (14px) — dense body/labels | +| 14px | `text-sm` | Tailwind default body/label | +| 15px | `text-base-minus` | One notch under `text-base` (16px) — comfortable body just under 16 | +| 16px | `text-base` | Tailwind default | +| 17px | `text-lg-minus` | One notch under `text-lg` (18px) | +| 18px | `text-lg` | Tailwind default | +| 20px | `text-xl` | Tailwind default | +| 22px | `text-2xl-minus` | One notch under `text-2xl` (24px) | +| 24px | `text-2xl` | Tailwind default | +| 26px | `text-3xl-minus` | One notch under `text-3xl` (30px) | +| 30px | `text-3xl` | Tailwind default | +| fluid | `text-hero` | Mode-home display heading (`clamp`) | + ⚠️ **The "1 318 call sites" figure this section used to quote was a repo-wide grep including `src/app/mockups/**`, which every one of these gates excludes** — 1 360 at `7aaf9349c`. Production consumers of the eight non-standard steps total **705** **[verified: AST class-root diff --git a/src/components/clinical-dashboard/dashboard-nav.tsx b/src/components/clinical-dashboard/dashboard-nav.tsx index 58f15da44..b125f01f1 100644 --- a/src/components/clinical-dashboard/dashboard-nav.tsx +++ b/src/components/clinical-dashboard/dashboard-nav.tsx @@ -274,7 +274,7 @@ export function MobileSectionFab({ aria-hidden={!open} inert={!open} hidden={!open} - className="fixed z-40 overflow-hidden rounded-lg border border-[color:var(--border-lux)] bg-[color:var(--surface-lux)] text-[color:var(--text)] shadow-[var(--shadow-lux)] ring-1 ring-[color:var(--ring-highlight)] backdrop-blur-md" + className="fixed z-40 overflow-hidden rounded-lg border border-[color:var(--border-lux)] bg-[color:var(--surface-lux)] text-[color:var(--text)] shadow-[var(--shadow-lux)] backdrop-blur-md" style={{ right: "max(0.75rem, env(safe-area-inset-right))", bottom: "calc(max(0.75rem, env(safe-area-inset-bottom)) + 4.5rem)", diff --git a/src/components/clinical-dashboard/medication-prescribing-workspace.tsx b/src/components/clinical-dashboard/medication-prescribing-workspace.tsx index f8025655d..37e2113ad 100644 --- a/src/components/clinical-dashboard/medication-prescribing-workspace.tsx +++ b/src/components/clinical-dashboard/medication-prescribing-workspace.tsx @@ -823,7 +823,7 @@ function MedicationResults({ data-medication-cell="action" className="flex min-w-0 items-start gap-2 pt-0.5 text-sm-minus font-medium leading-5 text-[color:var(--text-heading)]" > - + {result.action} {result.href ? ( diff --git a/src/components/document-viewer/document-rail-panels.tsx b/src/components/document-viewer/document-rail-panels.tsx index 58dec45dd..45a130226 100644 --- a/src/components/document-viewer/document-rail-panels.tsx +++ b/src/components/document-viewer/document-rail-panels.tsx @@ -176,7 +176,7 @@ export function DocumentViewerRail({