feat(ui): board design language as global tokens; KDS on tokens and shared components (platform-v2 3.2b-2)

- @xenia/ui: --x-board-* tokens (the kitchen display's look: dark board, light cards,
  status colours, card radius/shadows, number font), Tailwind board.* colours, contrast
  test for the board pairs; near-identical shades merged.
- New shared Stepper component (gallery + ui.mjs), labels ui.decrease / ui.increase.
- KDS: theme.js maps to the board tokens, no colour literals left (only stored setting
  values); decline / call waiter / settings use Dialog, Button, Switch, Select, Stepper;
  toasts are @xenia/ui toasts (ToastProvider at the terminal root).
- Terminal: apps can set their theme (APP_THEMES, KDS dark) while they run.
- CS-16: board screens and "no hard-coded colours in app code".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 20:02:35 +02:00
co-authored by Claude Opus 5.5
parent 5f6d4ab428
commit 77e0adbe9c
26 changed files with 485 additions and 383 deletions
+18
View File
@@ -271,6 +271,24 @@
.x-select__control { appearance: none; -webkit-appearance: none; padding-right: var(--x-space-10); cursor: pointer; }
.x-select__chevron { position: absolute; right: var(--x-space-3); top: 50%; transform: translateY(-50%); color: var(--x-ink-3); pointer-events: none; }
/* ── Stepper ─────────────────────────────────────────────────────────────── */
.x-stepper { display: inline-flex; align-items: center; gap: var(--x-space-1-5); flex-shrink: 0; }
.x-stepper__btn {
display: inline-flex; align-items: center; justify-content: center;
width: var(--x-control-md); height: var(--x-control-md); padding: 0;
border: 1px solid var(--x-line-strong); border-radius: var(--x-radius-control);
background: var(--x-surface-2); color: var(--x-ink); cursor: pointer;
transition: background-color var(--x-duration-fast) var(--x-ease);
-webkit-tap-highlight-color: transparent;
}
.x-stepper__btn:hover:not(:disabled) { background: var(--x-surface-3); }
.x-stepper__btn:focus-visible { outline: none; box-shadow: var(--x-focus-ring); }
.x-stepper__btn:disabled { color: var(--x-ink-3); opacity: 0.5; cursor: default; }
.x-stepper__value {
min-width: 64px; text-align: center; font-family: var(--x-font-mono);
font-size: var(--x-text-body-lg); font-weight: var(--x-weight-bold); color: var(--x-ink);
}
/* ── Switch ──────────────────────────────────────────────────────────────── */
.x-switch {
position: relative; flex-shrink: 0;