Skip to content

Cloud's loading page follows the webapp's light/dark choice and its colours (W-1075) - #376

Merged
wr merged 1 commit into
mainfrom
wells/w-1075-clouds-loading-page-follows-the-webapps-lightdark-choice
Oct 19, 2026
Merged

wr merged 1 commit into
mainfrom
wells/w-1075-clouds-loading-page-follows-the-webapps-lightdark-choice

Conversation

@wr

@wr wr commented Oct 19, 2026

Copy link
Copy Markdown
Owner

The loading page Cloud shows while a household's server starts (hosted/src/loading.ts) now looks like the webapp it turns into.

  • Theme. It followed only the system's light/dark setting. It now reads the webapp footer's Light / Dark / System choice (ff-theme, kept in the browser) before it paints, with the same script and rules as index.html. An owner who picked Dark on a light system, or Light on a dark one, gets the loading page in that theme.
  • Colours. Its field and blocks were older shades (#f6f4ef / #171614). They are now the webapp's --bg and --surface in both themes, so the background no longer shifts when the webapp replaces it. The blocks now read as the webapp's cards on its field.

Verified

  • New hosted/test/loading.test.ts holds the theme script and both themes' colours to server/templates/index.html, so the two cannot drift apart again.
  • vitest: 321 passed. tsc --noEmit is clean.
  • In the browser, with the system set to light and to dark, and the choice set to System, Light and Dark: all six combinations draw the expected field and blocks.

Left

  • It is not deployed. The deploy happens with the merge.

Refs W-1075

…olours (W-1075)

The page Cloud shows while the server starts followed only the system's
prefers-color-scheme. It now reads the footer's ff-theme before it paints,
as index.html does, and draws its field and blocks in the webapp's --bg
and --surface, so nothing changes when the webapp replaces it. A test
holds both to index.html.

Refs: W-1075
@linear-code

linear-code Bot commented Oct 19, 2026

Copy link
Copy Markdown

W-1075

@wr
wr merged commit c365f31 into main Oct 19, 2026
6 checks passed
@wr
wr deleted the wells/w-1075-clouds-loading-page-follows-the-webapps-lightdark-choice branch October 19, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant