The app's own buttons went monochrome on 2026-10-19; the public site kept
a warm orange (#ff5c00) on Start a project, Get started, the auth submit,
the focus ring and the essay progress bar. It is not Bitcoin orange and it
means nothing on a product that is not about Bitcoin (owner, 2026-11-11).
- --accent-warm, --accent-warm-hover and --public-accent are removed; every
class that used them reads --accent-primary / --accent-hover, so one
filled button exists in Loki and it is theme-aware
- --on-accent is the inverted text. It was a fixed near-black, which on the
near-black light-theme accent left .ui-btn-xs.ui-btn-primary unreadable
- the focus ring and the public glow are neutral
- token-drift declares the divergence from @bitbaum/design-tokens; the
widget theme is regenerated from the tokens
Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq
Co-authored-by: Claude <noreply@anthropic.com>
* feat(widget): Loki's own look, in Loki's light or dark mode, with one scroll
The site widget took its colours from the fleet's shared tokens, whose
accent is OrangeCat's warm orange, and was dark only: on a client's light
site the owner saw an orange-ringed black panel and asked why Loki's widget
looked like OrangeCat.
- Themes are generated from Loki's own globals.css, light and dark. The
accent is the ink; the warm colour is only the focus ring and a picked
element's outline on the host page.
- Every widget stylesheet reads var(--lk-*), defined for both modes on the
shadow host; widget/theme-mode.ts picks one. The owner gets the mode they
chose in Loki (user_preferences.theme, saved by ThemeSync via
PUT /api/me/theme, returned with their changes and remembered per site);
everyone else gets their device's setting, followed live.
- The panel is one column with one scroll area (the thread) between a fixed
header and composer. The whole card used to scroll too, which hid the
composer below a laptop's fold and nested scrolls on phones.
- The desktop card no longer greys out the site it invites you to use; the
phone sheet opens at two thirds of the screen with a lighter scrim.
- About is a segmented control that fits a 320px phone on one line.
- The walkthrough card follows the same mode; its ring uses the highlight
so it reads on light and dark sites.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
* fix(widget): the launcher is findable — Loki's mark at full strength
On the owner's phone, signed out of the owner pass, AOZ showed a grey
pencil at 38% opacity and 85% size, and the owner said the widget was gone.
Without the launcher there is no way to the sign-in that brings owner mode
back. The resting launcher is now Loki's spiral at full strength with a
hairline and a soft lift off the page, on phones and desktop; it still
fades while the page scrolls.
Also: the user_theme migration is renumbered 0107 after main's 0106.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
* fix(widget): keep the shared chat's thread bounded however chatkit nests it
CI's widget-kit-browser (needs @bitbaum/chatkit, so it only runs there)
failed one check: the chat thread no longer had a max-height once the panel
became a flex column. The flex layout bounds it only when the wrap is a
direct child, so the cap is back as a backstop, and the test now pins the
outcome — the thread scrolls and ends inside a card that fits the screen —
instead of the mechanism.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk
---------
Co-authored-by: Claude <noreply@anthropic.com>
The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.
- Three article slugs carried the old name and had been shared; permanent
redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
because they are now the same name.
Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* feat(widget): the theme is derived from @bitbaum/design-tokens, not typed
The widget cannot read our CSS variables on someone else's site, so it ships
concrete values — and those were typed by hand into palette.ts, which is how
it drifted into "does not look like part of FleetCrown". Now
scripts/generate-widget-theme.ts reads @bitbaum/design-tokens/tokens.css
(the fleet's design SSOT) and writes src/lib/widget-theme.generated.ts:
--surface-public, the .dark text/border/status scales, --public-accent,
--on-accent, the radii and the type stacks. PALETTE.widget is that file.
scripts/test/widget-theme-from-tokens.ts regenerates and compares, so a
token bump that was not regenerated fails, and pins the HSL→hex conversion.
The widget takes radii and fonts from the theme too, with fallbacks for an
older boot response.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX
* fix(widget): a picked container is named by its heading, not by every word inside it
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX
* docs(widget): the widget's colours are generated from the fleet tokens, not literal by design
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>