Skip to content

Default to light theme for first-time visitors#209

Merged
kcmartin merged 2 commits into
mainfrom
light-theme-default
Jul 9, 2026
Merged

Default to light theme for first-time visitors#209
kcmartin merged 2 commits into
mainfrom
light-theme-default

Conversation

@kcmartin

@kcmartin kcmartin commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Right now the docs force dark mode on anyone who's never touched the theme picker. This flips that default to light, in keeping with bringing Sprites under Fly.io branding.

Everything else works the same: picking light or dark explicitly still sticks, and "auto" still follows your system preference. Folks who already chose a theme keep their choice, since it's stored in localStorage.

Also updates the CLAUDE.md styling note to match our change.

Visitors with no stored preference now get light mode instead of dark.
Explicit picker choices and the auto (system preference) option are
unchanged.
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment

Name URL
Preview https://pr-209-superfly-sprites-docs.fly.dev

Commit: f7b898d

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Lighthouse Results

URL Performance Accessibility Best Practices SEO
/ 🟢 97 🟢 100 🟢 96 🟢 100

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ Tests success

Ran against: https://pr-209-superfly-sprites-docs.fly.dev

The ThemeSwitcher had its own fallback of 'dark' for visitors with no
stored preference, so the picker icon showed the moon while the page
rendered light.
@kcmartin kcmartin merged commit 6a97424 into main Jul 9, 2026
5 checks passed
@kcmartin kcmartin deleted the light-theme-default branch July 9, 2026 17:38
@kcmartin kcmartin added the sprite-refresh PRs that are part of the Sprites docs visual refresh label Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sprite-refresh PRs that are part of the Sprites docs visual refresh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant