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:
@@ -10,7 +10,7 @@ import { lazy, Suspense } from 'react'
|
||||
import { BrowserRouter, Route, Routes } from 'react-router-dom'
|
||||
import { AccessProvider } from '@xenia/access'
|
||||
import { createI18n } from '@xenia/i18n'
|
||||
import { Spinner } from '@xenia/ui'
|
||||
import { Spinner, ToastProvider } from '@xenia/ui'
|
||||
import client from './api/client'
|
||||
import DeviceProvider from './device/DeviceProvider'
|
||||
import { useDevice } from './device/context'
|
||||
@@ -29,7 +29,9 @@ function Root() {
|
||||
const { sessionKey } = useDevice()
|
||||
return (
|
||||
<AccessProvider client={client} token={sessionKey} i18n={i18n} loading={loading} autoRetryMs={AUTO_RETRY_MS}>
|
||||
<Terminal />
|
||||
<ToastProvider placement="bottom-center">
|
||||
<Terminal />
|
||||
</ToastProvider>
|
||||
</AccessProvider>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user