Repository navigation
feat(theme): ship dark mode — gate off, system scheme followed on web and native, Appearance in Settings - #999
Merged
Merged
Conversation
…he OS, Appearance in Settings The build flag from #833 is gone: `isDarkModeEnabled()` is true, the resolver defaults open, and the Appearance switch in the account menu (#974) shows for everyone. Settings gains an Appearance section with the three preview cards the ui package has carried since the tokens landed. The blocking finding from the first dark pass (#970) was not a race and not a stale consumer. With the OS in dark, `UniversalThemeProvider` read `prefers-color-scheme` synchronously during render, so the client's first render disagreed with the server's (which can only say light); React regenerated the tree after the hydration mismatch and the regenerated tree came out light, while InnerProvider's effect stamped `<html data-theme>` dark and painted the body dark — a dark ground under a light shell, and white names on light rows wherever something mounted late enough to read the real value. Measured headless: OS dark rendered the ScreenHeader title `#16110d` on white with `data-theme="dark"`; OS light with a stored dark preference rendered it white on `#16110d`, because that path flips after mount through state. The system scheme now starts as the server's light and moves to the real value in an effect, like the stored preference already did; it also follows the OS live. Same probe after: both cases white on dark. Also from that pass: the office ground was `colors.gray[50]` in a module-level sheet (#970), and the two loading overlays' labels had no colour, so "Loading…" was near-black on the dark ground (#967). The overlay's first paint is light by design now — it is the server's render — and lasts until hydration. `DrawerFooter` goes: nothing rendered it since the account row took over sign-out and the theme toggle. The release checklist asks for Home and the Workers map in dark before a submit. Closes #970, closes #967. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…k findings On the simulator with the OS in dark and the preference on System, the app rendered light. InnerProvider pinned the native scheme with `Appearance.setColorScheme(resolvedTheme)` whenever the two disagreed, and that override is per-process: a `light` set under an earlier preference outlived every JS reload and kept `useColorScheme()` answering light. Now System clears the override (`'unspecified'`) and only an explicit choice pins it, so system surfaces — alerts, keyboard, share sheet — match the app. Verified on an iPhone 17 Pro simulator: System follows the OS from dark to light and back live, Dark pins it, the preference and session survive a relaunch, and the Workers map renders dark (captures in docs/plans/redesign/shots-current/sim-dark--*.png). From the web dark sweep (33 routes at 1440 and 390, contrast-scanned): the profile forms, the vanity-URL section and the experience editor carried pre-token hex literals — `#414e62` slate on the dark card at 1.7:1, `#ffffff` cards under white text, Tailwind status greens and reds — and go onto the tokens with the ramps' dark steps; the drawer's active Notifications row and the news widget's link took `primary[600]` with no dark step and read `text[theme].emphasis` now. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…and the drawer Second pass over the web dark sweep (#840), with four @scaffald/ui releases underneath it (ui#51–#55: Button text and outline variants, Table grid cells, RadarChart, DeltaBadge, RichTextEditor, selected Tabs): - Office tables read black on the dark row. `columnsFromTanStack` wrapped every primitive cell in a react-native <Text> with no colour (added for the native stacked-view error, #768); the ui Table wraps primitives in its own themed <Text> on both paths now, so the adapter passes them through. The adapter test asserts the primitive comes back as itself. - The ATS admin columns were memoised with `[]` while their cells read the theme, so they were built once — during the server's light first render — and stayed light. `t` is a dependency. - Community "Joined"/"Verified" pills, job-card salary and match pills, the employer card's website link, the drawer's Edit profile link and the vanity-URL Edit link: light-only steps (success[600] on success[900] at 2:1, primary[500]/[600] on the card at 2.6–2.8:1) step down the ramps or read text[theme].emphasis. - The verification "Need help?" box and the dispute tracker's tone map used the 50/400/700 steps in both themes — a pale blue card on the dark page. Both read per theme now. What the sweep still reports, and why it stays: - "Save Changes" disabled: white on primary[200] at 1.74:1 — the ui filled/disabled treatment, the same in light; not a dark finding. - Pagination "…" at 2:1 — disabled, exempt. - A white off-canvas drawer and light "Loading…" text on the phone Office capture: taken mid-load, before the post-mount scheme flip of the #970 fix; the settled page is dark. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Oct 6, 2026
Closed
thinkclay
added a commit
that referenced
this pull request
Oct 6, 2026
… the cookie banner covering the phone frame (#1014) * fix(audit): sweep both colour schemes, see clipped overflow, and stop the cookie banner covering the phone frame The visual sweep for release 5 needs every route in light and dark at 1440 and 390. sweep-routes.mjs walked every route but only in light, waited a fixed 1.5 s, and judged phone overflow by document width alone. smoke-authed.mjs had the scheme pass and #998's ready-wait, but never set cookie consent, so the banner covered the bottom fifth of every phone shot. - lib/app-ready.mjs: one copy of the cookie-consent seed, #998's ready-wait, scheme parsing, and frame facts. Both scripts use it. - sweep-routes.mjs: --scheme light|dark|both, colorScheme plus the stored preference, and the scheme in each filename. It expects light on the (public) group (LIGHT_ONLY_GROUP) and the requested theme everywhere else, checks the computed page ground as well as the data-theme stamp, and fails the run on a mismatch. - `clipped`: visible elements whose right edge passes the viewport outside a horizontal scroller. hScroll misses content cut off by an overflow:hidden ancestor. On its first run it found the quiet-hours row on /dashboard/notifications/settings pushing "to" and the end field off-card. - A page that half-loads and logs ERR_CONNECTION_* before the theme stamps is now the dead dev server (exit 97, #680), not a theme failure. The final exit goes through finish(), which re-checks the server. - SWEEP_MODES=worker, for a seeded worker with no org. - smoke-authed.mjs: seeds consent. The dark-pass hint no longer tells you to set EXPO_PUBLIC_DARK_MODE, which #999 removed. Headers no longer ask for `functions serve`; the stack serves `api` itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(audit): a tab strip 1px wider than the phone is not clipped content The first full sweep flagged every Communities screen at 390: the folder-tab strip measured 391px inside a horizontal scroller that overflowed by 1px, and both the edge check and the scroller check used a 1px tolerance. Sub-pixel rounding, not a cut. Any overflow-x: auto|scroll ancestor now exempts its content, and the edge tolerance is 2px. Re-run: the four Communities false positives are gone; EEO, Project hiring, HRIS, quiet hours and Connections' Export CSV still flag, and each is a real cut in the capture. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #840. Closes #970. Closes #967.
What ships
isDarkModeEnabled()is true;systemis the default, and the Appearance section of/dashboard/settingsoffers System / Light / Dark on the existingAppearanceThemeCard. The preference persists across reload (web) and relaunch (native). The marketing group stays light-only (Marketing pages render their light palette on the dark page ground #953), unchanged.matchMediaduring render, so a dark-OS visitor hydrated against a server that can only say light; React regenerated the tree light while the provider's effect painted the ground dark. The scheme now starts as the server's light and moves to the real value in an effect after hydration, and follows the OS live. Measured before and after with a headless probe in both OS schemes: heading white on#16110din both.InnerProviderpinned the native scheme withAppearance.setColorScheme(resolvedTheme)whenever the two disagreed; that override is per-process and outlived every JS reload, so alightset under an earlier preference keptuseColorScheme()light for the rest of the session. System now clears the override ('unspecified'); only an explicit choice pins it, so alerts, keyboard and share sheet match the app.@scaffald/uireleases underneath it (fix(button): the text and tonal variants read in dark ui#51–Refine dashboard news feed loading #55): pre-token hex literals across the profile forms, the vanity-URL and experience editors;columnsFromTanStackwrapping Office table cells in an uncoloured<Text>(black on the dark row); ATS admin columns memoised with[]so they kept the light first render; Button text and outline variants, selected Tabs, RichTextEditor, RadarChart and DeltaBadge on the light steps; community/job-card pills, links and the dispute tracker's tone map on light-only ramps.Verification
primary[200], same in light — a ui filled/disabled finding, not dark), the disabled pagination ellipsis (exempt), and a mid-load capture of the phone Office route taken before the post-mount scheme flip.docs/plans/redesign/shots-current/sim-dark--home.pngandsim-dark--workers-map.png.RELEASE-PROCESS.mdgains "Open Home and the Workers map in dark appearance".profile.hexColorceiling 111 → 40).Not done
Prepush
SKIP_PREPUSH=1: everything passed except the gated HTTP api tests, where 16 CCPA cases fail because the local edge runtime is serving another worktree's functions (the same environment failure as #989/#991 this week, per.githooks/README.md). Nothing in this PR touches the api.🤖 Generated with Claude Code