--- title: "Design System & Visual Identity" lastUpdated: 2026-11-03 --- # OmniRoute — Design System & Visual Identity > **Status:** the dashboard is built on the **Keak CI UI Kit** (`@keak/cheaper-inference-ui-kit`), vendored > as the workspace `packages/ui-kit` (`@omniroute/ui-kit`; the upstream snapshot is pinned in > `packages/ui-kit/UPSTREAM.md` and guarded by `npm run check:ui-kit-snapshot`). Light is the canonical > theme; the default preference is `system`. The default palette is the kit's **Editions** appearance > (warm paper neutrals and the copper accent `#e5ac82`, `packages/ui-kit/src/ci-editions.css`); Settings → > Appearance → Color palette offers **Classic**, the kit's base tokens with the lime accent. Switzer is > the single family for UI, display and code text (`--ci-font-ui`; `--ci-font-display` and > `--ci-font-mono` resolve to it), self-hosted by the kit itself (`packages/ui-kit/src/ci-fonts.css`, > imported by `ci-tokens.css`). Scripts Switzer lacks fall through glyph by glyph (`src/app/globals.css`): > Inter for Cyrillic, Greek and Vietnamese and, only under `html[dir="rtl"]`, Vazirmatn for Arabic script. > Every icon is a Lucide glyph. ## 1. Where things live - **Kit.** `packages/ui-kit/src` is a byte-for-byte copy of the upstream `src/` at the commit pinned in `packages/ui-kit/UPSTREAM.md` (which also records the license authorization); `PATCHES.md` lists local patches (none). It is consumed as source, with no build: `next.config.mjs` transpiles it, and `tsconfig.json` maps `@omniroute/ui-kit` → `packages/ui-kit/src` and `@omniroute/ui-kit/*` → `packages/ui-kit/src/*` (`vitest.config.ts` and `vitest.mcp.config.ts` carry the same alias). Import a kit component by its subpath (`@omniroute/ui-kit/table`, `@omniroute/ui-kit/page-header`…), never through the `@omniroute/ui-kit` barrel: the barrel pulls every component (including the date picker) into each importer. The kit stylesheet enters through `src/app/globals.css` (`@import "../../packages/ui-kit/src/ci-styles.css"`, the complete sheet: the core `ci-ui.css` plus every pattern family). - **Tokens.** `packages/ui-kit/src/ci-tokens.css` declares the `--ci-*` tokens; `src/app/globals.css` bridges them to the legacy OmniRoute names (`--color-*`, `--radius-*`, `--font-sans`/`--font-mono`, `--table-*`, `--orch-status-*`, `--color-fd-*`), so the existing `var(--color-*)` reads and Tailwind utilities keep working. New code uses the Tailwind utilities (`bg-surface`, `text-text-muted`, `border-border`, `text-success`, `bg-success-bg`, `bg-chart-1`…) or kit classes — never a hex value (`tests/unit/design-kit-bridge.test.ts` enforces the bridge). `text-primary` resolves to `--color-primary-ink` through `--text-color-primary`, so primary text stays readable while `bg-primary`/`border-primary` keep the accent surface: under Editions it is the kit's `--ci-color-accent-active` (the deep copper `#99562f` in light, the copper accent in dark); under Classic, lime-800 in light and the lime accent in dark. Chart series use `--color-chart-1` … `--color-chart-8`, each with a text-safe `--color-chart-N-ink` and an opaque `--color-chart-N-subtle` chip tint, assigned in the kit series order (`ciChartSeriesOrder`). - **Themes.** `` (`src/app/layout.tsx`) opts the document into the kit theme and into the kit scrollbars (`--ci-scrollbar-*` tokens; `globals.css` has no scrollbar rule of its own, and an element must not set `scrollbar-width` or `scrollbar-color`, which would drop the kit styling in Chromium and Safari; `tests/unit/design-kit-bridge.test.ts` guards both). The preference is `light`, `dark` or `system` (`THEME_CONFIG.defaultTheme = "system"` in `src/shared/constants/appConfig.ts`; `system` follows `prefers-color-scheme`). `applyTheme()` in `src/store/themeStore.ts` (mirrored by `THEME_BOOT_SCRIPT`, inlined in `src/app/layout.tsx`, which runs before hydration) sets `data-theme="dark"|"light"` and toggles the `.dark` class on `` together. The kit's dark token set is keyed on `data-theme="dark"` (`packages/ui-kit/src/ci-tokens.css`); OmniRoute's own dark overrides (the `.dark` block in `globals.css`) and the legacy Tailwind `dark:` utilities key on the `.dark` class. There are no accent color presets: the accent always comes from the kit, and a persisted preset from an older build is dropped when the store loads. - **Palettes.** Two, both from the kit (`src/shared/constants/appearancePalette.ts`): `editions`, the default, and `classic`. Editions is the kit's `data-ci-appearance="editions"` attribute on ``, which `ci-editions.css` (imported by `ci-ui.css`) combines with `data-theme`; Classic is the attribute's absence. The root layout server-renders the attribute, so a visitor with nothing stored (or no JS) gets Editions on every surface — dashboard, login, `/status`, error pages, `/docs` and the PWA. The choice is persisted next to the theme in the same `theme` store (`palette`, `setPalette()`, `applyPalette()` in `src/store/themeStore.ts`) and applied before paint by `THEME_BOOT_SCRIPT` (`src/shared/utils/themeBootScript.ts`, inlined in the layout's `
`), which removes the attribute only when the stored palette is `"classic"`; `src/app/global-error.tsx`, outside the root layout, applies it from the same store. Do not put `data-ci-appearance` on any other element: the kit matches it with `html:root:has([data-ci-appearance="editions"])`, so one descendant would switch the whole document. The Editions `data-ci-editions-variant="landing"` variant is for marketing pages, not the dashboard. Browser chrome: the server renders the default, Editions, in `viewport.themeColor` (one tag per `prefers-color-scheme`) and the web manifest — `PWA_THEME_COLORS` in `src/shared/constants/pwaThemeColors.ts`, the one mirror of the Editions `--ci-color-background` (`#f3f1e9` / `#11120f`), pinned to `ci-editions.css` by `tests/unit/pwa-theme-colors.test.ts`. The live `` then follows the stored palette and mode: `THEME_BOOT_SCRIPT` rewrites the tags before paint and the theme store's actions do it on every change (`resolveThemeColor()` / `applyThemeColor()` in `src/shared/utils/themeColorMeta.ts`, with `CLASSIC_PAGE_BACKGROUND` read from the kit's `ciTokens`). An explicit light/dark theme sets every tag to that mode; `system` keeps one colour per scheme. The manifest stays Editions: it is fetched once per install, without the preference. Monaco reads its colours off a probe (`monacoKitTheme.ts`); under Editions the probe read flips the root `data-theme` for one synchronous pass, because the kit resolves Editions light/dark from the root. - **Components (adapters).** `src/shared/components/index.tsx` keeps the OmniRoute component API (same names, default exports and props), and the primitives behind it are adapters over the kit: forms (`Button`, `Input`, `Textarea`, `Checkbox`, `Select`, `Toggle`, `Badge`, `Card`), overlays and feedback (`Modal`/`ConfirmModal`, `Tooltip`/`InfoTooltip`, `NotificationToast`, `EmptyState`, `Loading`), structure (`Collapsible`, `CollapsibleSection`, `SegmentedControl`, `Breadcrumbs`, `Avatar`) and tables (`DataTable`, `FilterBar`, `ColumnToggle`, `FilterPills`, `PresetSlider`). An adapter imports the kit component by subpath and maps the legacy props onto it — for example `Button variant="primary"` is the kit `default` button (`--ci-button-primary-*`: the inverse surface in light, the accent with its `--ci-color-accent-foreground` ink in dark), `danger` is `destructive`, and `warning` is the kit `warning` button. `Badge` status variants are kit tones, and `Select` with `