mirror of
https://github.com/coder/coder.git
synced 2026-10-31 19:36:41 +08:00
## 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 - Stacked on #25180. ## 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.