The vendored flare-ui was a Nov-4 snapshot with no recorded pin. Advance it to the furthest-along upstream branch: blueflare/flare-ui `sprint` (0e1f5a259faa), which is 247 commits beyond `main`, 71 beyond `next`, and already contains `next` in full. The scattered 1-3 commit leads on individual sp/* feature branches are unmerged side-work, not a more-ahead integration line, so vendoring one of those would drop the 247-commit integration; `sprint` is the single most-ahead branch. This brings sprint's flare-ui crate additions (form.rs, page.rs, page/, table.rs and the flare-ui-axum / flare-plugin-host crates) into the tree. Record the pin in flare-ui.lock so the next re-vendor is reproducible. alkane-os builds against it with no source changes: the console (console.rs) and the rest compile clean, clippy -D warnings is clean, and 183 lib + integration tests pass (including the dashboard schema tests, so the wschema model stayed compatible). Re-verified the live console on sprint: --serve-sim boots, the flare-ui shell and control pages render, and stop -> ambient:18000 -> start all succeed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdKQBPjAXpCwmigUov5eQk
1.6 KiB
Shared theme
Load tokens.css, theme.css, then components.css for the canonical shell.
The first defines brand primitives; the second selects semantic --app-*
values. The component sheet applies them to the canvas, text, links,
navigation surfaces and keyboard focus. It also sets the shared body font
and removes the browser's body margin.
Stale values keep their state marker and use --app-text-muted; fading the
whole element would reduce text contrast. Stale canvases remain dimmed.
Dark is the default. System preference applies when data-theme is absent;
an explicit data-theme="light" or data-theme="dark" on the root wins.
The optional warden-compat.css maps legacy console names (--bg,
--sp-3, --accent) onto the same tokens. Load it after theme.css.
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.
The maintained schema-page browser test checks computed colors, painted
pixels and focus in both themes and engines. Run node page.cjs --shell-only
from crates/flare-ui/tests/browser for the focused shell cases. Pass
--css=/path/to/components.css to check another component sheet against the
same regression. Legacy console adoption remains consumer work.