Spike, not the final UI: it answers whether flare-ui can drive Alkane OS's on-box pages, and what it costs. What works: - schema/alkane-bb.json authors the sidebar as data (3 sections, 14 tabs); - src/bin/ui-spike.rs renders it through flare_ui::nav + flare_ui::shell, so the unified sidebar, ordering and surface filtering come from the schema rather than from hand-written HTML; - the render uses the shared bf- design tokens, the same ones the rest of the suite uses. Size, measured rather than assumed (armv7, release, stripped): ui-baseline 323 KiB (maud + serde_json, no flare-ui) ui-spike 771 KiB (flare-ui + wschema + sha2) marginal 448 KiB Vendoring: third-party/flare-ui is the full v0.2.9 tree pinned in flare-ui/flare-ui.lock (a partial archive does not compile, since the crate include_str!s assets from dash-editor/). vendor/ is re-generated as a cargo directory source with the new registry dependencies (maud, sha2, typenum, digest, generic-array, block-buffer, crypto-common, cfg-if, etc.) so the build still works offline. third-party/README.md records how to re-pin.
19 lines
839 B
Markdown
19 lines
839 B
Markdown
# Shared theme
|
|
|
|
`tokens.css` holds brand primitives, `theme.css` the `--app-*` semantic layer
|
|
(dark default, light by `data-theme` or system preference), and
|
|
`warden-compat.css` maps the legacy Warden console names (`--bg`, `--sp-3`,
|
|
`--accent`, ...) onto them. Load in that order.
|
|
|
|
Differences resolved:
|
|
|
|
| Topic | FLARE | Warden console | Unified |
|
|
|---|---|---|---|
|
|
| Default theme | dark | light | dark; system preference applies when `data-theme` is absent |
|
|
| Link/accent | cyan-400 (dark), cyan-600 (light) | accent #3ABCF8/#3776BE | `--app-link` |
|
|
| Danger | #FF6B6B / #C7162B | #F0555A / #B42318 | `--app-danger` |
|
|
|
|
Tests in `src/tokens.rs` check that every `var()` resolves, the three theme
|
|
blocks define the same names, and every legacy console name is mapped.
|
|
Switching the console stylesheet over is the consumer's follow-up.
|