Skip to content

feat(site): add theme mode frontend foundation - #25181

Merged
jaaydenh merged 6 commits into
mainfrom
pr25077/03-theme-mode-foundation
May 15, 2026
Merged

jaaydenh merged 6 commits into
mainfrom
pr25077/03-theme-mode-foundation

Conversation

@jaaydenh

Copy link
Copy Markdown
Contributor

Summary

  • Add theme mode helpers for legacy migration, active theme resolution, draft conversion, and mode switching.
  • Add usePreferredColorScheme and refactor ThemeProvider to use the shared theme mode resolver.
  • Add reusable Appearance theme picker components plus isolated Storybook coverage.

Dependencies

Validation

  • pnpm -C site exec vitest run --project=unit src/theme/themeMode.test.ts src/theme/usePreferredColorScheme.test.tsx
  • pnpm -C site lint:types
  • pnpm -C site lint:knip
  • Pre-commit hook passed on the branch commit.

Base automatically changed from pr25077/02-theme-cleanup to main May 14, 2026 13:43
…-foundation

# Conflicts:
#	site/src/theme/darkTritan/roles.ts
#	site/src/theme/lightTritan/roles.ts
@jaaydenh
jaaydenh requested a review from DanielleMaywood May 14, 2026 14:33
Comment thread site/src/theme/usePreferredColorScheme.ts Outdated
Comment thread site/src/theme/themeMode.ts Outdated
Comment thread site/src/theme/themeMode.ts Outdated
Comment thread site/src/theme/themeMode.ts Outdated
Comment thread site/src/pages/UserSettingsPage/Section.tsx Outdated
onSelect,
}) => {
return (
<div

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not fieldset?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to fieldset

size="lg"
label={THEME_COPY[displayedTheme].title}
/>
<div

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not fieldset?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to fieldset

@jaaydenh

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jaaydenh
jaaydenh requested a review from DanielleMaywood May 15, 2026 08:49
@jaaydenh
jaaydenh merged commit e8cfff4 into main May 15, 2026
29 checks passed
@jaaydenh
jaaydenh deleted the pr25077/03-theme-mode-foundation branch May 15, 2026 09:04
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants