Skip to content

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

fix(themes): enforce the aurora/grid-floor exclusion and refresh the layer docs

Adam Eivy78432b0eac6b
diff --git a/client/src/index.css b/client/src/index.css
index f5cdf3dea5..6ac12c8509 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -1481,11 +1481,17 @@ html[data-port-theme="blueprint-ops-day"] header :is(h1, h2, h3) {
Everything paints on the dedicated <div class="port-fx-layer"> main.jsx
renders beside the app, never on body/#root pseudo-elements a theme might
- also style: ::before is the below-content slot (grid floor), ::after the
- static above-content overlay (scanlines + vignette, composed in one
- background list — an unlisted effect resolves to a transparent layer), and
- the .port-fx-sweep child is the moving band, animated with transform so it
- stays on the compositor instead of repainting the blended overlay. */
+ also style. Its two pseudo-elements are the shared slots: ::before is
+ below-content (grid floor), ::after the static above-content overlay
+ (scanlines + vignette, composed in one background list — an unlisted effect
+ resolves to a transparent layer). Its three children are the effects that
+ need an opacity or an animation of their own, since the overlay has exactly
+ one of each for its whole list: .port-fx-aurora is the second below-content
+ slot (mutually exclusive with the grid floor), .port-fx-sweep the moving
+ band, .port-fx-grain the static noise tile. The sweep and the aurora animate
+ transform only, so they stay on the compositor instead of repainting a
+ blended full-screen layer. A child is an inert empty <span> until its effect
+ is listed — the rules below are what give it a position at all. */
:root {
--port-fx-scanline-color: rgb(255 255 255 / 0.025);
--port-fx-scanline-period: 5px;
@@ -1509,6 +1515,11 @@ html[data-port-theme="blueprint-ops-day"] header :is(h1, h2, h3) {
--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;
+ /* `overlay` is the canonical film-grain blend and the one default that reads
+ on a dark page as well as a light one. All three themes that currently list
+ `grain` are light and override it to `multiply`, which is what print stock
+ actually does to ink — that is a per-theme choice, not a sign this default
+ is wrong for the next dark theme to adopt the effect. */
--port-fx-grain-blend: overlay;
--port-fx-grain-opacity: 0.06;
}
diff --git a/scripts/check-themes.js b/scripts/check-themes.js
index ab1323c64b..3e655e4514 100644
--- a/scripts/check-themes.js
+++ b/scripts/check-themes.js
@@ -140,6 +140,13 @@ async function main() {
for (const effect of effects) {
assert(THEME_EFFECTS.includes(effect), `${id} lists unknown effect ${effect}`);
}
+ // `aurora` and `grid-floor` are both below-content full-screen layers at the
+ // same depth, so listing both stacks them and washes the grid out. Documented
+ // in index.css and the themes README; asserted here so it can't drift.
+ assert(
+ !(effects.includes('aurora') && effects.includes('grid-floor')),
+ `${id} lists both aurora and grid-floor — they occupy the same below-content depth`,
+ );
// A --port-fx-* token tunes exactly one effect (the overlay tokens tune the
// two overlay effects); declaring one for an effect the theme does not list
// would silently paint nothing.