Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(themes): separate the theme-scoped focus glow from the generic token
[._.]/ Adam Eivy1baba203ba2b
diff --git a/client/src/index.css b/client/src/index.cssindex d6ebcf4efd..9971924a64 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -138,6 +138,11 @@--port-card-surface-image: none;--port-card-surface-size: auto;--port-focus-shadow: 0 0 0 4px rgb(var(--port-focus-ring) / 0.2);+ /* Only read by the theme-scoped focus rule below (Lumen Glass, Lumen Glass+ Day, Kestrel Neon) — deliberately separate from --port-focus-shadow so a+ theme's stronger glow can't leak onto the [role="button"]/[tabindex="0"]+ elements the generic rule also covers. */+ --port-focus-glow: none;--port-nav-active-rule: none;/* `inherit`, not `none` — `text-shadow` is naturally inherited, and BlackICE's body-wide glow used to reach this element through that inheritance.@@ -1647,11 +1652,15 @@ a:focus-visible,`.bg-port-accent`'s `box-shadow: var(--port-shadow-interactive)`, so anaccent-colored button would lose its focus glow to the interactive shadow.Restoring the original per-theme selector shape (specificity, not the- values) keeps these three themes' stronger glow winning, same as before. */+ values) keeps these three themes' stronger glow winning, same as before.+ A DIFFERENT token than the generic rule's `--port-focus-shadow` on purpose+ — that rule also covers `[role="button"]`/`[tabindex="0"]`, which this+ selector (matching the original) never did, so reusing the same token+ would leak the stronger glow onto elements it was never meant to reach. */html:is([data-port-theme="lumen-glass"], [data-port-theme="lumen-glass-day"], [data-port-theme="kestrel-neon"]) :is(input, textarea, select):focus,html:is([data-port-theme="lumen-glass"], [data-port-theme="lumen-glass-day"], [data-port-theme="kestrel-neon"]) button:focus-visible,html:is([data-port-theme="lumen-glass"], [data-port-theme="lumen-glass-day"], [data-port-theme="kestrel-neon"]) a:focus-visible {- box-shadow: var(--port-focus-shadow);+ box-shadow: var(--port-focus-glow);}/* DRY pointer cursor for interactive elements. Tailwind v4 dropped thediff --git a/client/src/themes/portosThemes.js b/client/src/themes/portosThemes.jsindex e0ac18f43d..6212b69f2c 100644--- a/client/src/themes/portosThemes.js+++ b/client/src/themes/portosThemes.js@@ -293,7 +293,7 @@ export const THEMES = {'--port-font-display': 'var(--port-font-ui)','--port-font-mono': "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",'--port-card-border-alpha': '0.28',- '--port-focus-shadow': '0 0 0 4px rgb(var(--port-focus-ring) / 0.18), 0 0 36px rgb(var(--port-focus-ring) / 0.12)',+ '--port-focus-glow': '0 0 0 4px rgb(var(--port-focus-ring) / 0.18), 0 0 36px rgb(var(--port-focus-ring) / 0.12)','--port-shadow-card': '0 22px 55px rgb(0 0 0 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.08)','--port-shadow-elevated': '0 28px 80px rgb(0 0 0 / 0.42), inset 0 1px 0 rgb(255 255 255 / 0.12)','--port-shadow-interactive': '0 0 0 1px rgb(var(--port-accent) / 0.18), 0 0 28px rgb(var(--port-accent) / 0.12)',@@ -377,7 +377,7 @@ export const THEMES = {'--port-font-display': 'var(--port-font-ui)','--port-font-mono': "'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",'--port-card-border-alpha': '0.22',- '--port-focus-shadow': '0 0 0 3px rgb(var(--port-focus-ring) / 0.22), 0 0 24px rgb(var(--port-focus-ring) / 0.16)',+ '--port-focus-glow': '0 0 0 3px rgb(var(--port-focus-ring) / 0.22), 0 0 24px rgb(var(--port-focus-ring) / 0.16)','--port-shadow-card': 'inset 0 1px 0 0 rgb(255 255 255 / 0.6), 0 10px 30px -12px rgb(8 80 110 / 0.16), 0 2px 6px -2px rgb(8 80 110 / 0.08)','--port-shadow-elevated': 'inset 0 1px 0 0 rgb(255 255 255 / 0.7), 0 22px 56px -16px rgb(8 80 110 / 0.24), 0 6px 14px -4px rgb(8 80 110 / 0.12)','--port-shadow-interactive': '0 0 0 1px rgb(var(--port-accent) / 0.3), 0 0 28px rgb(var(--port-accent) / 0.16)',@@ -804,7 +804,7 @@ export const THEMES = {'--port-card-min-alpha': '0.88','--port-overlay-alpha': '0.8','--port-heading-glow': '0 0 12px rgb(var(--port-accent) / 0.5)',- '--port-focus-shadow': '0 0 0 1px rgb(var(--port-focus-ring) / 0.7), 0 0 18px rgb(var(--port-focus-ring) / 0.35)',+ '--port-focus-glow': '0 0 0 1px rgb(var(--port-focus-ring) / 0.7), 0 0 18px rgb(var(--port-focus-ring) / 0.35)','--port-code-glow': '0 0 8px rgb(var(--port-accent) / 0.25)','--port-nav-active-glow': '0 0 8px rgb(var(--port-accent) / 0.6)','--port-shadow-card': '0 0 0 1px rgb(var(--port-accent-2) / 0.14), 0 0 34px rgb(var(--port-accent-2) / 0.08), inset 0 0 48px rgb(0 0 0 / 0.45)',diff --git a/docs/themes/README.md b/docs/themes/README.mdindex f04d709b71..47e82e1483 100644--- a/docs/themes/README.md+++ b/docs/themes/README.md@@ -81,7 +81,11 @@ Black ICE Terminal (both modes) uses `scanlines`; Kestrel Neon uses all five, anThe same "tokens over per-theme selector blocks" pattern covers the shared card/focus/nav/code rules — with one twist: `border-color` and `box-shadow` are properties a component can also set for its own reasons (a card's "selected"/"error" border class, an accent button's interactive shadow), so a theme's override has to keep winning against those *without* also winning for every theme that never opted in. Where that matters, the token-driven rule stays scoped to the exact theme(s) that use it (`html:is([data-port-theme="…"], …) …`) rather than becoming unconditional — same values-not-selectors win, without a specificity regression.-`--port-card-surface-image` / `--port-card-surface-size` (a card's `background-image`/`background-size`, both a no-op by default) are safe to share unconditionally. `--port-card-border-color` / `--port-card-border-alpha` (a card's border, `rgb(var(--port-card-border-color) / var(--port-card-border-alpha))`) are read by a rule scoped to the themes that override them (Lumen Glass, Black ICE Terminal both modes, Kestrel both modes — Lumen Glass Day's wider `bg-port-card/NN` coverage is its own selector, predating this rule). `--port-focus-shadow` (button/link/field focus box-shadow) is read by the shared `button:focus-visible` rule for its default, and by the same theme-scoped pattern for Lumen Glass, Lumen Glass Day, and Kestrel Neon — unscoped, it would lose to `.bg-port-accent`'s interactive shadow on an accent-colored button. `--port-nav-active-rule` (the active sidebar link's `border-left`) and `--port-nav-active-glow` (its `text-shadow`, defaulted to `inherit` rather than `none` since `text-shadow` is naturally inherited — Black ICE's body-wide glow reaches the active link through that) are shared unconditionally; `border-left` and `text-shadow` aren't properties any component sets on that element today. `--port-code-glow` (a `text-shadow` on `pre`/`code`/`textarea`/`input`, `none` by default) is likewise unconditional. `caret-color: rgb(var(--port-accent))` on that same selector is unconditional too — every theme gets an accent-colored text cursor, not just Kestrel.+`--port-card-surface-image` / `--port-card-surface-size` (a card's `background-image`/`background-size`, both a no-op by default) are safe to share unconditionally. `--port-card-border-color` / `--port-card-border-alpha` (a card's border, `rgb(var(--port-card-border-color) / var(--port-card-border-alpha))`) are read by a rule scoped to the themes that override them (Lumen Glass, Lumen Glass Day, Black ICE Terminal both modes, Kestrel both modes — Lumen Glass Day's wider `bg-port-card/NN` coverage beyond `.bg-port-card`/`/50` is its own separate selector, predating this rule).++`--port-focus-shadow` is the generic `button:focus-visible`/`a:focus-visible`/`[role="button"]`/`[tabindex="0"]` rule's default box-shadow and is never overridden per theme. Lumen Glass, Lumen Glass Day, and Kestrel Neon's stronger glow is a *different* token, `--port-focus-glow` (`none` by default, read only by their own theme-scoped `:is(input, textarea, select):focus, button:focus-visible, a:focus-visible` rule) — reusing `--port-focus-shadow` there would leak the glow onto `[role="button"]`/`[tabindex="0"]` elements the original per-theme rule never touched, and unscoping it entirely would lose to `.bg-port-accent`'s interactive shadow on an accent-colored button (a `.bg-port-accent` class carries higher specificity than the bare `button:focus-visible` rule).++`--port-nav-active-rule` (the active sidebar link's `border-left`) and `--port-nav-active-glow` (its `text-shadow`, defaulted to `inherit` rather than `none` since `text-shadow` is naturally inherited — Black ICE's body-wide glow reaches the active link through that) are shared unconditionally; `border-left` and `text-shadow` aren't properties any component sets on that element today. `--port-code-glow` (a `text-shadow` on `pre`/`code`/`textarea`/`input`, `none` by default) is likewise unconditional. `caret-color: rgb(var(--port-accent))` on that same selector is unconditional too — every theme gets an accent-colored text cursor, not just Kestrel.## New Feature Checklist