You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: theme flashes: share URL and applied visitor theme paint the default theme first #618
Opening `/theme/#t=v1.` paints the default sketchbook theme (skeleton-like state), then switches to the shared theme. The hash is decoded only in `ThemeStudio`'s `onMount`.
After "Apply to site" (`ca-site-studio`), every page load first paints the original theme and then the visitor theme a moment later.
Expected: the first frame already has the target theme's surface and brand colours, no skeleton, CLS 0 from font swaps, and the same on `` navigations (`astro:before-swap`). Also check `colorScheme.setTokens` runtime tokens against the package's own anti-FOUC path.
Test first: Playwright at 6x CPU throttle and Slow 3G, first-frame colour assertions.
Activity
mvilacad commentedon Oct 25, 2026
Working on this in #619 (draft). Branch
fix/618-fix-theme-flashes-share-url-and. Regression test first, then the fix.chore: start #618
fix: theme flashes: first paint wears the target theme on every path (#…
fix: caUI emits the theme first in head, before any stylesheet (#618)
test: the painted theme spec runs at release, the order test at land (#…
test: check theme script order on every built site page in dist-html (#…
fix: fix: theme flashes: share URL and applied visitor theme paint th…