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
feat(themes): bring the other eight themes up to Kestrel's visual fidelity
Adam Eivy328fdfd93174
diff --git a/client/src/index.css b/client/src/index.cssindex 9971924a64..f5cdf3dea5 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -910,7 +910,7 @@ html[data-port-theme] :is(.bg-port-card, [class~="bg-port-card/50"]):is(.border,let the theme tint win over `.border-port-border` while still losing to acomponent's own semantic border class at equal specificity elsewhere). Atheme not listed here never applied this override and still doesn't. */-html:is([data-port-theme="lumen-glass"], [data-port-theme="lumen-glass-day"], [data-port-theme="black-ice-terminal"], [data-port-theme="black-ice-terminal-day"], [data-port-theme-family="kestrel"])+html:is([data-port-theme="lumen-glass"], [data-port-theme="lumen-glass-day"], [data-port-theme="black-ice-terminal"], [data-port-theme="black-ice-terminal-day"], [data-port-theme-family="blueprint"], [data-port-theme-family="kestrel"]):is(.bg-port-card, [class~="bg-port-card/50"]):is(.border, .rounded, .rounded-lg, .rounded-xl, .rounded-2xl) {border-color: rgb(var(--port-card-border-color) / var(--port-card-border-alpha)) !important;}@@ -1499,12 +1499,26 @@ html[data-port-theme="blueprint-ops-day"] header :is(h1, h2, h3) {--port-fx-grid-floor-opacity: 0.45;--port-fx-grid-floor-duration: 3s;--port-fx-glitch-period: 9s;+ /* Ambient bloom (aurora) and material noise (grain) paint on their own+ children of .port-fx-layer rather than sharing the overlay, so each keeps+ an independent opacity — the overlay's is one value for the whole list. */+ --port-fx-aurora-a: rgb(var(--port-accent) / 0.5);+ --port-fx-aurora-b: rgb(var(--port-accent-2) / 0.4);+ --port-fx-aurora-opacity: 0.5;+ --port-fx-aurora-blur: 70px;+ --port-fx-aurora-duration: 38s;+ --port-fx-grain-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");+ --port-fx-grain-size: 160px 160px;+ --port-fx-grain-blend: overlay;+ --port-fx-grain-opacity: 0.06;}html[data-port-theme-effects~="scanlines"] { --port-fx-scanline-active: var(--port-fx-scanline-color); }html[data-port-theme-effects~="vignette"] { --port-fx-vignette-active: var(--port-fx-vignette-color); }.port-fx-layer,+.port-fx-aurora,+.port-fx-grain,.port-fx-sweep {pointer-events: none;}@@ -1574,6 +1588,41 @@ html[data-port-theme-effects~="grid-floor"] .port-fx-layer::before {to { transform: perspective(1200px) rotateX(60deg) translateY(40px); }}+/* Ambient aurora: two slow, heavily blurred color blooms drifting behind the+ app. The below-content sibling of the grid floor — a theme picks one or the+ other, never both, so they never fight for the same depth. */+html[data-port-theme-effects~="aurora"] .port-fx-aurora {+ position: fixed;+ inset: -20vh -20vw;+ z-index: -1;+ background:+ radial-gradient(38vw 38vw at 24% 26%, var(--port-fx-aurora-a) 0%, transparent 62%),+ radial-gradient(44vw 44vw at 78% 78%, var(--port-fx-aurora-b) 0%, transparent 62%);+ filter: blur(var(--port-fx-aurora-blur));+ opacity: var(--port-fx-aurora-opacity);+ will-change: transform;+ animation: portos-fx-aurora var(--port-fx-aurora-duration) ease-in-out infinite alternate;+}++@keyframes portos-fx-aurora {+ from { transform: translate3d(0, 0, 0) scale(1); }+ to { transform: translate3d(5vw, -4vh, 0) scale(1.14); }+}++/* Material grain: a static monochrome noise tile blended over the app, so a+ paper or frosted-glass theme reads as a surface instead of flat fill. Its+ own element, and its own opacity, so a theme can run it under scanlines at+ a different strength. */+html[data-port-theme-effects~="grain"] .port-fx-grain {+ position: fixed;+ inset: 0;+ z-index: 9997;+ background-image: var(--port-fx-grain-image);+ background-size: var(--port-fx-grain-size);+ mix-blend-mode: var(--port-fx-grain-blend);+ opacity: var(--port-fx-grain-opacity);+}+/* Page titles glitch every few seconds: at rest (the theme's own heading glow)for most of the cycle, then a two-step chromatic split between the accents. */html[data-port-theme-effects~="glitch"] h1 {@@ -1589,6 +1638,7 @@ html[data-port-theme-effects~="glitch"] h1 {@media (prefers-reduced-motion: reduce) {html[data-port-theme-effects] .port-fx-sweep,+ html[data-port-theme-effects] .port-fx-aurora,html[data-port-theme-effects] .port-fx-layer::before,html[data-port-theme-effects] h1 {animation: none;@@ -1651,15 +1701,18 @@ a:focus-visible,`button:focus-visible` rule above: that rule's specificity is lower than`.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.+ Keeping the per-theme selector SHAPE (specificity, not the values) is what+ lets the listed themes' stronger glow win.+ The list is opt-in and must stay in sync with the manifests: `--port-focus-glow`+ defaults to `none`, so adding a theme here without declaring the token would+ replace its accent button's interactive shadow with nothing on focus.A DIFFERENT token than the generic rule's `--port-focus-shadow` on purpose— that rule also covers `[role="button"]`/`[tabindex="0"]`, which thisselector (matching the original) never did, so reusing the same tokenwould 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 {+html:is([data-port-theme-family="glass"], [data-port-theme-family="terminal"], [data-port-theme="blueprint-ops"], [data-port-theme="kestrel-neon"]) :is(input, textarea, select):focus,+html:is([data-port-theme-family="glass"], [data-port-theme-family="terminal"], [data-port-theme="blueprint-ops"], [data-port-theme="kestrel-neon"]) button:focus-visible,+html:is([data-port-theme-family="glass"], [data-port-theme-family="terminal"], [data-port-theme="blueprint-ops"], [data-port-theme="kestrel-neon"]) a:focus-visible {box-shadow: var(--port-focus-glow);}diff --git a/client/src/main.jsx b/client/src/main.jsxindex 2d67d7deaf..f6998f2cee 100644--- a/client/src/main.jsx+++ b/client/src/main.jsx@@ -65,10 +65,15 @@ const router = createBrowserRouter([element: (<><App />- {/* Theme effects (scanlines, grid floor, sweep) paint on this element's- pseudo-elements and child — see the "Theme effects layer" in- index.css. Empty and inert for themes that list no effects. */}- <div className="port-fx-layer" aria-hidden="true"><span className="port-fx-sweep" /></div>+ {/* Theme effects (scanlines, grid floor, aurora, sweep, grain) paint on+ this element's pseudo-elements and children — see the "Theme effects+ layer" in index.css. Each child is unstyled, and so inert, until its+ effect is listed by the active theme. */}+ <div className="port-fx-layer" aria-hidden="true">+ <span className="port-fx-aurora" />+ <span className="port-fx-sweep" />+ <span className="port-fx-grain" />+ </div><Toasterposition="bottom-right"toastOptions={{diff --git a/client/src/themes/portosThemes.js b/client/src/themes/portosThemes.jsindex 6212b69f2c..c694fafa2b 100644--- a/client/src/themes/portosThemes.js+++ b/client/src/themes/portosThemes.js@@ -31,7 +31,7 @@ const DEFAULT_ACCENT2 = {// Full-screen effects a theme composes by listing them in `effects`; each is// a shared block in index.css ("Theme effects layer") tuned by --port-fx-*// tokens. Catalogue and tokens: docs/themes/README.md, "Effects".-export const THEME_EFFECTS = Object.freeze(['scanlines', 'vignette', 'sweep', 'grid-floor', 'glitch']);+export const THEME_EFFECTS = Object.freeze(['scanlines', 'vignette', 'sweep', 'grid-floor', 'glitch', 'aurora', 'grain']);const baseMotionTokens = {'--port-motion-fast': '120ms',@@ -124,17 +124,25 @@ export const THEMES = {'--port-font-ui': "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",'--port-font-display': 'var(--port-font-ui)','--port-font-mono': "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",- '--port-shadow-card': 'none',- '--port-shadow-elevated': '0 18px 45px rgb(0 0 0 / 0.35)',- '--port-shadow-interactive': 'none',+ // Baseline stays neutral graphite + blue; what changed is material, not+ // identity — a hairline top sheen and a real cast shadow so a card reads+ // as raised rather than as a same-color rectangle with a border.+ '--port-heading-tracking': '-0.011em',+ '--port-card-surface-image': 'linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent 72px)',+ '--port-nav-active-rule': '2px solid rgb(var(--port-accent))',+ '--port-shadow-card': 'inset 0 1px 0 rgb(255 255 255 / 0.04), 0 10px 28px -18px rgb(0 0 0 / 0.9)',+ '--port-shadow-elevated': 'inset 0 1px 0 rgb(255 255 255 / 0.05), 0 18px 45px rgb(0 0 0 / 0.35)',+ '--port-shadow-interactive': '0 0 0 1px rgb(var(--port-accent) / 0.35)','--port-backdrop-filter': 'none','--port-border-style': 'solid',- '--port-body-gradient': 'none',- '--port-body-texture': 'none',+ // Deep-to-near-black fall with a faint accent haze off the top edge, read+ // through a slightly translucent app backdrop.+ '--port-body-gradient': 'linear-gradient(180deg, rgb(24 25 30) 0%, rgb(15 15 15) 55%, rgb(10 10 12) 100%)',+ '--port-body-texture': 'radial-gradient(ellipse 90% 46% at 50% -8%, rgb(var(--port-accent) / 0.1) 0%, transparent 70%)','--port-body-size': 'cover, cover',- '--port-body-overlay-opacity': '0',- '--port-app-backdrop': 'rgb(var(--port-bg))',- '--port-sidebar-bg': 'rgb(var(--port-card))',+ '--port-body-overlay-opacity': '1',+ '--port-app-backdrop': 'rgb(var(--port-bg) / 0.88)',+ '--port-sidebar-bg': 'linear-gradient(180deg, rgb(32 32 34), rgb(26 26 28))','--port-input-bg': 'rgb(var(--port-bg))','--port-control-bg': 'rgb(var(--port-border))','--port-control-bg-hover': 'rgb(64 64 64)',@@ -209,17 +217,20 @@ export const THEMES = {'--port-font-ui': "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",'--port-font-display': 'var(--port-font-ui)','--port-font-mono': "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",- '--port-shadow-card': '0 1px 2px rgb(0 0 0 / 0.04), 0 1px 1px rgb(0 0 0 / 0.03)',- '--port-shadow-elevated': '0 14px 40px -12px rgb(15 23 42 / 0.18), 0 4px 10px -2px rgb(15 23 42 / 0.08)',+ '--port-heading-tracking': '-0.011em',+ '--port-card-surface-image': 'linear-gradient(180deg, rgb(var(--port-accent) / 0.028), transparent 72px)',+ '--port-nav-active-rule': '2px solid rgb(var(--port-accent))',+ '--port-shadow-card': 'inset 0 1px 0 rgb(255 255 255 / 0.9), 0 1px 2px rgb(15 23 42 / 0.05), 0 6px 16px -10px rgb(15 23 42 / 0.16)',+ '--port-shadow-elevated': 'inset 0 1px 0 rgb(255 255 255 / 0.9), 0 14px 40px -12px rgb(15 23 42 / 0.18), 0 4px 10px -2px rgb(15 23 42 / 0.08)','--port-shadow-interactive': '0 0 0 1px rgb(var(--port-accent) / 0.4)','--port-backdrop-filter': 'none','--port-border-style': 'solid',- '--port-body-gradient': 'none',- '--port-body-texture': 'none',+ '--port-body-gradient': 'linear-gradient(180deg, rgb(252 252 253) 0%, rgb(240 240 240) 52%, rgb(232 232 235) 100%)',+ '--port-body-texture': 'radial-gradient(ellipse 90% 44% at 50% -8%, rgb(var(--port-accent) / 0.07) 0%, transparent 70%)','--port-body-size': 'cover, cover',- '--port-body-overlay-opacity': '0',- '--port-app-backdrop': 'rgb(var(--port-bg))',- '--port-sidebar-bg': 'rgb(var(--port-card))',+ '--port-body-overlay-opacity': '1',+ '--port-app-backdrop': 'rgb(var(--port-bg) / 0.86)',+ '--port-sidebar-bg': 'linear-gradient(180deg, rgb(255 255 255), rgb(249 249 250))','--port-input-bg': 'rgb(255 255 255)','--port-control-bg': 'rgb(244 244 245)','--port-control-bg-hover': 'rgb(228 228 231)',@@ -247,6 +258,10 @@ export const THEMES = {doc: '/docs/themes/lumen-glass.md',colorScheme: 'dark',density: 'spacious',+ // The night pane finally gets the ambient depth its day partner always had+ // (which drifts on its own body::before/::after): two slow blooms behind+ // the glass, plus edge falloff so the stack reads as lit from the middle.+ effects: ['aurora', 'vignette'],swatches: ['#071016', '#1c2e37', '#67e8f9', '#fb7185'],colors: {'--port-bg': '7 16 22',@@ -293,6 +308,12 @@ 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-heading-tracking': '-0.015em',+ // A pane of glass catches the light along its top-left edge; the wash is+ // what separates a glass panel from a flat translucent rectangle.+ '--port-card-surface-image': 'linear-gradient(155deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.012) 42%, transparent 70%)',+ '--port-nav-active-rule': '2px solid rgb(var(--port-accent) / 0.85)',+ '--port-nav-active-glow': '0 0 14px rgb(var(--port-accent) / 0.4)','--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)',@@ -303,7 +324,9 @@ export const THEMES = {'--port-body-texture': 'linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px), linear-gradient(180deg, rgb(255 255 255 / 0.018) 1px, transparent 1px)','--port-body-size': '28px 28px, 28px 28px, cover','--port-body-overlay-opacity': '0.72',- '--port-app-backdrop': 'linear-gradient(135deg, rgb(var(--port-bg) / 0.82), rgb(9 28 36 / 0.84))',+ // Thinned from 0.82 so the aurora behind it actually reaches the page —+ // a translucent command deck whose shell is nearly opaque isn't one.+ '--port-app-backdrop': 'linear-gradient(135deg, rgb(var(--port-bg) / 0.6), rgb(9 28 36 / 0.62))','--port-sidebar-bg': 'linear-gradient(180deg, rgb(12 24 31 / 0.82), rgb(13 20 29 / 0.72))','--port-input-bg': 'rgb(8 18 24 / 0.72)','--port-control-bg': 'rgb(21 42 52 / 0.82)',@@ -318,6 +341,14 @@ export const THEMES = {'--port-chart-3': '251 191 36','--port-chart-4': '251 113 133','--port-chart-grid': '129 229 255',+ '--port-fx-aurora-a': 'rgb(var(--port-accent) / 0.45)',+ '--port-fx-aurora-b': 'rgb(var(--port-accent-2) / 0.38)',+ '--port-fx-aurora-opacity': '0.7',+ '--port-fx-aurora-blur': '90px',+ '--port-fx-aurora-duration': '44s',+ '--port-fx-vignette-color': 'rgb(0 0 0 / 0.5)',+ '--port-fx-overlay-blend': 'normal',+ '--port-fx-overlay-opacity': '0.55',},},@@ -332,6 +363,9 @@ export const THEMES = {doc: '/docs/themes/lumen-glass.md',colorScheme: 'light',density: 'spacious',+ // The drifting mesh stays on this theme's own body pseudo-elements; grain+ // is what turns its white panes from flat fill into frosted glass.+ effects: ['grain'],swatches: ['#eae4db', '#ffffff', '#155e75', '#fb7185'],colors: {'--port-bg': '234 228 219',@@ -377,6 +411,9 @@ 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-heading-tracking': '-0.015em',+ '--port-card-surface-image': 'linear-gradient(155deg, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.2) 40%, transparent 68%)',+ '--port-nav-active-rule': '2px solid rgb(var(--port-accent) / 0.85)','--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)',@@ -402,6 +439,8 @@ export const THEMES = {'--port-chart-3': '202 138 4','--port-chart-4': '225 29 72','--port-chart-grid': '21 94 117',+ '--port-fx-grain-blend': 'multiply',+ '--port-fx-grain-opacity': '0.035',},},@@ -416,7 +455,10 @@ export const THEMES = {doc: '/docs/themes/black-ice-terminal.md',colorScheme: 'dark',density: 'compact',- effects: ['scanlines'],+ // A cyberpunk CRT was already scanlined but otherwise inert: the phosphor+ // sweep, the tube's edge falloff, and the title glitch are the rest of the+ // same monitor.+ effects: ['scanlines', 'vignette', 'sweep', 'glitch'],swatches: ['#020403', '#151c19', '#00f5a0', '#ff2bd6'],colors: {'--port-bg': '2 4 3',@@ -467,6 +509,11 @@ export const THEMES = {// The shared heading rule sets text-shadow explicitly, so restate the// body glow here or headings would lose what they used to inherit.'--port-heading-glow': '0 0 12px rgb(var(--port-accent) / 0.08)',+ '--port-heading-tracking': '0.04em',+ '--port-title-tracking': '0.12em',+ '--port-title-transform': 'uppercase',+ '--port-focus-glow': '0 0 0 1px rgb(var(--port-focus-ring) / 0.7), 0 0 20px rgb(var(--port-focus-ring) / 0.3)',+ '--port-nav-active-glow': '0 0 8px rgb(var(--port-accent) / 0.55)','--port-card-border-alpha': '0.34','--port-card-surface-image': 'linear-gradient(180deg, rgb(var(--port-accent) / 0.035), transparent 38px)','--port-nav-active-rule': '2px solid rgb(var(--port-accent))',@@ -495,6 +542,17 @@ export const THEMES = {'--port-chart-3': '255 214 10','--port-chart-4': '0 194 255','--port-chart-grid': '0 245 160',+ // `normal` rather than the default `screen`: the overlay carries the+ // vignette too, and screening a black radial is a no-op. Straight alpha+ // compositing still lifts the phosphor line on this near-black page.+ '--port-fx-scanline-color': 'rgb(0 245 160 / 0.055)',+ '--port-fx-scanline-period': '4px',+ '--port-fx-overlay-blend': 'normal',+ '--port-fx-overlay-opacity': '0.75',+ '--port-fx-vignette-color': 'rgb(0 0 0 / 0.62)',+ '--port-fx-sweep-color': 'rgb(var(--port-accent) / 0.05)',+ '--port-fx-sweep-duration': '9s',+ '--port-fx-glitch-period': '14s',},},@@ -509,7 +567,11 @@ export const THEMES = {doc: '/docs/themes/black-ice-terminal.md',colorScheme: 'light',density: 'compact',- effects: ['scanlines'],+ // Paper tooth moved off --port-body-texture (where a 400-char inline SVG+ // sat behind the app backdrop) and onto the shared grain effect, which+ // blends over the whole page the way real stock does. Vignette is the+ // warm edge fall of a page under a desk lamp.+ effects: ['scanlines', 'vignette', 'grain'],swatches: ['#ece6d5', '#fbf6e8', '#086c43', '#b91d6a'],colors: {'--port-bg': '236 230 213',@@ -557,6 +619,10 @@ export const THEMES = {'--port-font-display': "'GeistPixelGrid', 'SFMono-Regular', Consolas, monospace",'--port-font-mono': "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",'--port-heading-glow': '0 0 8px rgb(var(--port-accent) / 0.04)',+ '--port-heading-tracking': '0.04em',+ '--port-title-tracking': '0.12em',+ '--port-title-transform': 'uppercase',+ '--port-focus-glow': '0 0 0 2px rgb(var(--port-focus-ring) / 0.45)','--port-card-border-alpha': '0.32','--port-card-surface-image': 'linear-gradient(180deg, rgb(255 255 255 / 0.5), transparent 38px)','--port-nav-active-rule': '2px solid rgb(var(--port-accent))',@@ -567,8 +633,8 @@ export const THEMES = {'--port-backdrop-filter': 'none','--port-border-style': 'solid','--port-body-gradient': 'linear-gradient(180deg, rgb(248 242 226) 0%, rgb(243 237 220) 100%)',- '--port-body-texture': "linear-gradient(0deg, rgb(10 122 74 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(185 29 106 / 0.035) 1px, transparent 1px), url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.25 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>\")",- '--port-body-size': '28px 28px, 28px 28px, 200px 200px, cover',+ '--port-body-texture': 'linear-gradient(0deg, rgb(10 122 74 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(185 29 106 / 0.035) 1px, transparent 1px)',+ '--port-body-size': '28px 28px, 28px 28px, cover','--port-body-overlay-opacity': '0.9','--port-app-backdrop': 'transparent','--port-sidebar-bg': 'rgb(248 242 226 / 0.96)',@@ -588,6 +654,10 @@ export const THEMES = {'--port-fx-scanline-color': 'rgb(10 60 30 / 0.04)','--port-fx-overlay-blend': 'multiply','--port-fx-overlay-opacity': '0.4',+ '--port-fx-vignette-color': 'rgb(96 78 44 / 0.5)',+ '--port-fx-grain-blend': 'multiply',+ '--port-fx-grain-opacity': '0.06',+ '--port-fx-grain-size': '200px 200px',},},@@ -602,6 +672,8 @@ export const THEMES = {doc: '/docs/themes/blueprint-ops.md',colorScheme: 'dark',density: 'compact',+ // A drafting table is lit from above: the sheet falls off toward its edges.+ effects: ['vignette'],swatches: ['#0b1020', '#1b2231', '#60a5fa', '#f59e0b'],colors: {'--port-bg': '11 16 32',@@ -646,16 +718,25 @@ export const THEMES = {'--port-font-ui': "'Avenir Next', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",'--port-font-display': 'var(--port-font-ui)','--port-font-mono': "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",+ // Sheet titles are drafting labels: uppercase, tracked, ruled off by the+ // accent bar the per-theme heading rule already draws.+ '--port-heading-tracking': '0.03em',+ '--port-title-tracking': '0.1em',+ '--port-title-transform': 'uppercase',+ '--port-card-border-color': 'var(--port-accent)',+ '--port-card-border-alpha': '0.2',+ '--port-nav-active-rule': '2px solid rgb(var(--port-accent))',+ '--port-focus-glow': '0 0 0 1px rgb(var(--port-focus-ring) / 0.6), 0 0 0 4px rgb(var(--port-focus-ring) / 0.12)','--port-card-surface-image': 'linear-gradient(90deg, rgb(var(--port-border) / 0.045) 1px, transparent 1px), linear-gradient(180deg, rgb(var(--port-border) / 0.035) 1px, transparent 1px)','--port-card-surface-size': '20px 20px',- '--port-shadow-card': '0 0 0 1px rgb(var(--port-border) / 0.1), 0 12px 28px rgb(0 0 0 / 0.2)',- '--port-shadow-elevated': '0 0 0 1px rgb(var(--port-border) / 0.18), 0 22px 54px rgb(0 0 0 / 0.38)',+ '--port-shadow-card': 'inset 0 1px 0 rgb(var(--port-border) / 0.08), 0 0 0 1px rgb(var(--port-border) / 0.1), 0 12px 28px rgb(0 0 0 / 0.2)',+ '--port-shadow-elevated': 'inset 0 1px 0 rgb(var(--port-border) / 0.1), 0 0 0 1px rgb(var(--port-border) / 0.18), 0 22px 54px rgb(0 0 0 / 0.38)','--port-shadow-interactive': '0 0 0 1px rgb(var(--port-accent) / 0.35), 0 0 0 4px rgb(var(--port-accent) / 0.08)','--port-backdrop-filter': 'blur(6px)','--port-border-style': 'solid',- '--port-body-gradient': 'linear-gradient(180deg, rgb(9 14 28) 0%, rgb(13 22 38) 100%)',+ '--port-body-gradient': 'radial-gradient(ellipse 120% 60% at 50% -10%, rgb(22 38 66) 0%, transparent 62%), linear-gradient(180deg, rgb(9 14 28) 0%, rgb(13 22 38) 100%)','--port-body-texture': 'linear-gradient(rgb(148 163 184 / 0.055) 1px, transparent 1px), linear-gradient(90deg, rgb(148 163 184 / 0.045) 1px, transparent 1px), linear-gradient(rgb(96 165 250 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(96 165 250 / 0.065) 1px, transparent 1px)',- '--port-body-size': '20px 20px, 20px 20px, 100px 100px, 100px 100px, cover',+ '--port-body-size': '20px 20px, 20px 20px, 100px 100px, 100px 100px, cover, cover','--port-body-overlay-opacity': '0.82','--port-app-backdrop': 'rgb(var(--port-bg) / 0.94)','--port-sidebar-bg': 'linear-gradient(180deg, rgb(13 20 37 / 0.96), rgb(15 23 42 / 0.92))',@@ -672,6 +753,9 @@ export const THEMES = {'--port-chart-3': '245 158 11','--port-chart-4': '248 113 113','--port-chart-grid': '148 163 184',+ '--port-fx-vignette-color': 'rgb(2 6 18 / 0.6)',+ '--port-fx-overlay-blend': 'normal',+ '--port-fx-overlay-opacity': '0.7',},},@@ -686,6 +770,9 @@ export const THEMES = {doc: '/docs/themes/blueprint-ops.md',colorScheme: 'light',density: 'compact',+ // Vellum tooth over the printed grid — the day sheet's counterpart to the+ // night table's edge falloff.+ effects: ['grain'],swatches: ['#eaeef2', '#ffffff', '#1d4ed8', '#d97706'],colors: {'--port-bg': '234 238 242',@@ -730,16 +817,22 @@ export const THEMES = {'--port-font-ui': "'Avenir Next', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",'--port-font-display': 'var(--port-font-ui)','--port-font-mono': "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",+ '--port-heading-tracking': '0.03em',+ '--port-title-tracking': '0.1em',+ '--port-title-transform': 'uppercase',+ '--port-card-border-color': 'var(--port-accent)',+ '--port-card-border-alpha': '0.18',+ '--port-nav-active-rule': '2px solid rgb(var(--port-accent))','--port-card-surface-image': 'linear-gradient(90deg, rgb(var(--port-border) / 0.05) 1px, transparent 1px), linear-gradient(180deg, rgb(var(--port-border) / 0.04) 1px, transparent 1px)','--port-card-surface-size': '20px 20px',- '--port-shadow-card': '0 0 0 1px rgb(var(--port-border) / 0.14), 0 8px 22px -8px rgb(15 23 42 / 0.12)',- '--port-shadow-elevated': '0 0 0 1px rgb(var(--port-border) / 0.22), 0 22px 54px -16px rgb(15 23 42 / 0.22)',+ '--port-shadow-card': 'inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(var(--port-border) / 0.14), 0 8px 22px -8px rgb(15 23 42 / 0.12)',+ '--port-shadow-elevated': 'inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(var(--port-border) / 0.22), 0 22px 54px -16px rgb(15 23 42 / 0.22)','--port-shadow-interactive': '0 0 0 1px rgb(var(--port-accent) / 0.45), 0 0 0 4px rgb(var(--port-accent) / 0.1)','--port-backdrop-filter': 'none','--port-border-style': 'solid',- '--port-body-gradient': 'linear-gradient(180deg, rgb(248 250 252) 0%, rgb(240 244 248) 100%)',+ '--port-body-gradient': 'radial-gradient(ellipse 120% 55% at 50% -8%, rgb(255 255 255) 0%, transparent 60%), linear-gradient(180deg, rgb(248 250 252) 0%, rgb(238 242 247) 100%)','--port-body-texture': 'linear-gradient(rgb(37 99 235 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(37 99 235 / 0.06) 1px, transparent 1px), linear-gradient(rgb(29 78 216 / 0.1) 1px, transparent 1px), linear-gradient(90deg, rgb(29 78 216 / 0.08) 1px, transparent 1px)',- '--port-body-size': '20px 20px, 20px 20px, 100px 100px, 100px 100px, cover',+ '--port-body-size': '20px 20px, 20px 20px, 100px 100px, 100px 100px, cover, cover','--port-body-overlay-opacity': '0.82','--port-app-backdrop': 'rgb(var(--port-bg) / 0.94)','--port-sidebar-bg': 'linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(248 250 252 / 0.9))',@@ -756,6 +849,9 @@ export const THEMES = {'--port-chart-3': '180 83 9','--port-chart-4': '185 28 28','--port-chart-grid': '148 163 184',+ '--port-fx-grain-blend': 'multiply',+ '--port-fx-grain-opacity': '0.045',+ '--port-fx-grain-size': '180px 180px',},},'kestrel-neon': {diff --git a/client/src/themes/portosThemes.test.js b/client/src/themes/portosThemes.test.jsindex 80cdc9bcb2..e75b8ff6c8 100644--- a/client/src/themes/portosThemes.test.js+++ b/client/src/themes/portosThemes.test.js@@ -264,6 +264,39 @@ describe('theme effects', () => {});});+// index.css scopes the stronger focus glow to an opt-in theme list, partly by+// FAMILY. `--port-focus-glow` defaults to `none`, and the rule out-specificities+// `.bg-port-accent`'s interactive shadow — so a theme that the selector matches+// without declaring the token loses its accent button's focus indicator to+// nothing. Adding a variant to a listed family is enough to trip that silently,+// which is why this is a test and not a comment.+describe('the theme-scoped focus glow only matches themes that declare it', () => {+ const css = readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'index.css'), 'utf8');+ // The selector prelude of the one rule whose body is `box-shadow:+ // var(--port-focus-glow)` — everything between the previous `}` and the `{`+ // that opens it. Anchored on the declaration rather than on the selector text+ // so rewording the scope list doesn't quietly stop matching.+ const rule = css.slice(0, css.indexOf('box-shadow: var(--port-focus-glow)'));+ const selector = rule.slice(rule.lastIndexOf('}') + 1, rule.lastIndexOf('{'));++ const matched = Object.values(THEMES).filter((theme) => (+ selector.includes(`[data-port-theme="${theme.id}"]`)+ || selector.includes(`[data-port-theme-family="${theme.family}"]`)+ ));++ it('finds the rule and matches at least one theme', () => {+ expect(css, 'focus-glow declaration not found in index.css').toContain('box-shadow: var(--port-focus-glow)');+ expect(matched.length).toBeGreaterThan(0);+ });++ it.each(matched.map((theme) => [theme.id, theme]))(+ '%s: declares --port-focus-glow',+ (_id, theme) => {+ expect(theme.tokens['--port-focus-glow']).toBeTruthy();+ },+ );+});+describe('DEFAULT_AVATAR_COLOR', () => {it('is a literal #rrggbb hex — a native <input type="color"> rejects anything else', () => {expect(DEFAULT_AVATAR_COLOR).toMatch(/^#[0-9a-f]{6}$/);diff --git a/docs/themes/README.md b/docs/themes/README.mdindex 47e82e1483..fb63d65882 100644--- a/docs/themes/README.md+++ b/docs/themes/README.md@@ -68,22 +68,36 @@ Full-screen effects are shared primitives, not per-theme CSS. A theme lists the| `sweep` | a phosphor band drifting down the screen (`.port-fx-sweep`, transform-animated so it never repaints the overlay) | `--port-fx-sweep-color`, `--port-fx-sweep-duration` || `grid-floor` | a perspective grid receding under the page (`.port-fx-layer::before`) | `--port-fx-grid-floor-x`, `--port-fx-grid-floor-y`, `--port-fx-grid-floor-opacity`, `--port-fx-grid-floor-duration` || `glitch` | periodic chromatic split on page titles (`h1`) | `--port-fx-glitch-period` |+| `aurora` | two slow, heavily blurred color blooms drifting behind the page (`.port-fx-aurora`) | `--port-fx-aurora-a`, `--port-fx-aurora-b`, `--port-fx-aurora-opacity`, `--port-fx-aurora-blur`, `--port-fx-aurora-duration` |+| `grain` | a static monochrome noise tile blended over the app (`.port-fx-grain`) | `--port-fx-grain-image`, `--port-fx-grain-size`, `--port-fx-grain-blend`, `--port-fx-grain-opacity` |-`scanlines` and `vignette` share the overlay and compose in a single background list, governed by `--port-fx-overlay-blend` and `--port-fx-overlay-opacity`; an effect the theme did not list resolves to a transparent layer. Every effect animation is disabled under `prefers-reduced-motion`. `THEME_EFFECTS` in `portosThemes.js` is the registry — `npm run theme:check` fails on an unknown name, on a registered effect with no CSS block, and on a `--port-fx-*` token declared for an effect the theme does not list (it would silently paint nothing). A theme declares only the tokens where it diverges from the `:root` defaults. Adding an effect means: a name in `THEME_EFFECTS`, one `html[data-port-theme-effects~="<name>"]` block with its tokens defaulted in `:root`, its token prefix in `check-themes.js`, and a row here.+`scanlines` and `vignette` share the overlay and compose in a single background list, governed by `--port-fx-overlay-blend` and `--port-fx-overlay-opacity`; an effect the theme did not list resolves to a transparent layer. **A theme listing both has to pick a blend mode that serves both** — `screen` over a black vignette is a no-op, so Black ICE Terminal and Blueprint Ops run the overlay at `normal` and let straight alpha compositing lift the scanline instead. `aurora` and `grain` deliberately paint on their own children of the layer rather than joining that list, because each needs an opacity independent of it (Phosphor Paper runs a 6% grain under a 40% scanline overlay); `aurora` shares the below-content depth with `grid-floor`, so a theme picks one or the other, never both. Every effect animation is disabled under `prefers-reduced-motion`. `THEME_EFFECTS` in `portosThemes.js` is the registry — `npm run theme:check` fails on an unknown name, on a registered effect with no CSS block, and on a `--port-fx-*` token declared for an effect the theme does not list (it would silently paint nothing). A theme declares only the tokens where it diverges from the `:root` defaults. Adding an effect means: a name in `THEME_EFFECTS`, one `html[data-port-theme-effects~="<name>"]` block with its tokens defaulted in `:root`, its token prefix in `check-themes.js`, and a row here.## Typography tokens-Headings read `--port-heading-tracking` and `--port-heading-glow` (h1–h3) plus `--port-title-tracking` and `--port-title-transform` (h1 only), defaulted to `0` / `none` in `:root`, so a theme sets its title treatment in the manifest instead of a selector block. Because the shared rule now sets `text-shadow` explicitly, a theme whose `body` carries a glow must restate it in `--port-heading-glow` for headings to keep it (Black ICE does) — Kestrel's uppercase, tracked, glowing titles are four tokens. The `glitch` effect rests on `--port-heading-glow`, so listing it never changes a theme's resting title look.+Headings read `--port-heading-tracking` and `--port-heading-glow` (h1–h3) plus `--port-title-tracking` and `--port-title-transform` (h1 only), defaulted to `0` / `none` in `:root`, so a theme sets its title treatment in the manifest instead of a selector block. Because the shared rule now sets `text-shadow` explicitly, a theme whose `body` carries a glow must restate it in `--port-heading-glow` for headings to keep it (Black ICE does) — Kestrel's uppercase, tracked, glowing titles are four tokens. The `glitch` effect rests on `--port-heading-glow`, so listing it never changes a theme's resting title look. The terminal and blueprint families set uppercase tracked titles the same way (a console banner and a drafting sheet label respectively); the sans families instead tighten `--port-heading-tracking` slightly, which is what large system-sans and Inter headings want.-Black ICE Terminal (both modes) uses `scanlines`; Kestrel Neon uses all five, and Kestrel Dawn `scanlines` + `grid-floor`.+Current assignments:++| Theme | Effects |+| --- | --- |+| Classic Midnight / Classic Noon | none — the baseline stays effect-free by design |+| Lumen Glass | `aurora`, `vignette` |+| Lumen Glass Day | `grain` (its drifting mesh stays on its own `body` pseudo-elements) |+| Black ICE Terminal | `scanlines`, `vignette`, `sweep`, `glitch` |+| Phosphor Paper | `scanlines`, `vignette`, `grain` |+| Blueprint Ops | `vignette` |+| Drafting Paper | `grain` |+| Kestrel Neon | `scanlines`, `vignette`, `sweep`, `grid-floor`, `glitch` |+| Kestrel Dawn | `scanlines`, `grid-floor` |## Surface & control tokensThe 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, 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-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, Blueprint Ops 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-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. The glass family's, the terminal family's, Blueprint Ops', 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 — every theme that selector matches must declare the token, or focus there resolves to `box-shadow: none`) — 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.diff --git a/docs/themes/black-ice-terminal.md b/docs/themes/black-ice-terminal.mdindex 866d43b4dd..e00dbbbff7 100644--- a/docs/themes/black-ice-terminal.md+++ b/docs/themes/black-ice-terminal.md@@ -11,11 +11,13 @@ Black ICE Terminal is PortOS as an operator console: dense, fast, cyberpunk, and- Keep forms and controls keyboard-friendly. Focus must be obvious.- Use terminal tokens for log/code regions: `var(--port-terminal-bg)` and `var(--port-terminal-text)`.- Avoid large soft gradients inside content panels. The theme uses sharp borders, scanlines, and restrained glow.+- Night runs the full CRT: `scanlines`, `vignette`, `sweep`, and `glitch`. Its overlay blends at `normal` rather than `screen`, because the same background list carries the black vignette and screening black is a no-op — straight alpha compositing still lifts the phosphor line on a near-black page. Phosphor Paper (day) runs `scanlines`, a warm `vignette`, and `grain`; the paper tooth is the shared grain effect, not a data-URI in `--port-body-texture`.## Component Notes- Panels use harder corners and visible borders.- Active nav and tabs should have both accent color and a shape/border cue.+- `h1` renders uppercase with wide tracking in both modes — a console banner. Keep page titles short, and check that they wrap rather than truncate in narrow headers.- Neutral controls should use the control fill tokens, not the neon border color as a solid background.- Tables, logs, and event streams should feel especially strong in this theme.- Media-heavy pages should keep media neutral; do not tint generated images or previews.diff --git a/docs/themes/blueprint-ops.md b/docs/themes/blueprint-ops.mdindex c97b11edc6..e56b882bc9 100644--- a/docs/themes/blueprint-ops.md+++ b/docs/themes/blueprint-ops.md@@ -11,10 +11,13 @@ Blueprint Ops presents PortOS as a systems map: organized, annotated, technical,- Prefer precise labels and concise controls.- Use accent blue for selection, emerald for success, amber for attention, and red only for destructive or failed states.- Keep charts and diagrams legible with theme chart tokens.+- Night lists the shared `vignette` effect (a drafting table lit from above); Drafting Paper (day) lists `grain` for vellum tooth. Neither runs an animated effect, so both stay calm at rest.## Component Notes- Page headings receive a left rule in this theme. Avoid wrapping headings in deeply nested cards.+- `h1` renders uppercase with wide tracking — a drafting-sheet label, paired with that left rule. Keep page titles short.+- Card borders take an accent tint (`--port-card-border-color`) over the drafting grid, so a panel reads as a drawn frame rather than a neutral box. A component's own semantic border class (`border-port-error`, a "selected" state) still wins.- Cards should remain low-shadow and border-led.- Neutral controls should stay slate-filled with light text; reserve filled blue for primary actions.- Status badges should keep both text and color.diff --git a/docs/themes/classic-midnight.md b/docs/themes/classic-midnight.mdindex 1dc0905507..1ad8571f3e 100644--- a/docs/themes/classic-midnight.md+++ b/docs/themes/classic-midnight.md@@ -4,6 +4,8 @@Classic Midnight preserves the existing PortOS UI: dark utilitarian panels, blue accent actions, compact navigation, and familiar rounded cards. It is the compatibility baseline for every theme change.+The palette, typography, radius scale, and density are frozen. What the theme does carry is **material**: a hairline top sheen on cards, a real cast shadow beneath them, an accent rule on the active nav item, and a page backdrop that falls from near-black at the top to black at the bottom under a faint accent haze. Both modes stay deliberately **effect-free** — no scanlines, no grain, no aurora — so the baseline remains the reference against which every other theme's atmosphere is judged (`useTheme.test.jsx` pins the default theme as the "no effects" case).+## Integration Rules- Use existing PortOS utility colors and component structure.@@ -23,3 +25,5 @@ Classic Midnight preserves the existing PortOS UI: dark utilitarian panels, blue## ValidationClassic Midnight should look nearly identical to the pre-manifest interface. Any major difference here should be intentional and documented in the PR.++Check the three elevation levels specifically: page, card, and a `bg-port-bg` well inside a card must each read as a distinct depth. The card sheen and shadow are what carry that separation now — the fills themselves are only ~1.15:1 apart.diff --git a/docs/themes/lumen-glass.md b/docs/themes/lumen-glass.mdindex 8245079f66..fdbd55ee43 100644--- a/docs/themes/lumen-glass.md+++ b/docs/themes/lumen-glass.md@@ -11,10 +11,12 @@ Lumen Glass turns PortOS into a translucent personal command deck. It should fee- Avoid opaque hard-coded dark panels unless the content is media, code, or terminal output.- Avoid extra decorative blobs or unrelated gradients. The theme background already carries the visual atmosphere.- Keep icon buttons compact and use `text-port-accent` for tool affordances.+- The night variant's atmosphere is the shared `aurora` effect (two slow, heavily blurred blooms behind the page) plus `vignette`; the day variant keeps its own drifting mesh on `body::before/::after` and adds `grain` so its white panes read as frosted rather than flat. Both are behind the app shell — the night shell is deliberately thinned to 60% so the bloom reaches the page. Do not add a competing decorative gradient in a component.## Component Notes- Cards and modals should keep their borders visible so transparent surfaces remain legible.+- Cards carry a diagonal top-left sheen (`--port-card-surface-image`) — the edge highlight that makes a pane read as glass. A component that sets its own `background-image` on a card overrides it.- Inputs should use standard PortOS input classes; the theme converts them to translucent controls.- Filled buttons use dark foreground tokens on bright cyan surfaces. Do not override them with muted gray text.- Tables should keep row separators because glass depth alone is not enough for dense data.diff --git a/scripts/check-themes.js b/scripts/check-themes.jsindex 94c1140194..ab1323c64b 100644--- a/scripts/check-themes.js+++ b/scripts/check-themes.js@@ -91,6 +91,8 @@ const FX_TOKEN_OWNERS = [['--port-fx-sweep-', ['sweep']],['--port-fx-grid-floor-', ['grid-floor']],['--port-fx-glitch-', ['glitch']],+ ['--port-fx-aurora-', ['aurora']],+ ['--port-fx-grain-', ['grain']],];const REQUIRED_DOC_SECTIONS = [