feat(web): upgrade ThemeProvider for multi-theme registry #494

Merged
jason.woltje merged 1 commits from feat/ms18-theme-provider-upgrade into main 2026-02-23 14:09:10 +00:00
Owner

Summary

  • Refactor ThemeProvider to load themes from registry via CSS variable injection
  • Support all 5 built-in themes (Dark, Light, Nord, Dracula, Solarized Dark)
  • Instant theme switching without page reload
  • Backward-compatible resolvedTheme and toggleTheme APIs preserved
  • 15 new tests for theme switching, CSS variable application, system preference

Context

TW-THM-002 — ThemeProvider upgrade for MS18. Builds on #493 (theme definitions).

Refs: #487

Test plan

  • All 1181 tests pass (15 new ThemeProvider tests)
  • Lint clean
  • Typecheck clean
  • Pre-commit hooks passed
## Summary - Refactor ThemeProvider to load themes from registry via CSS variable injection - Support all 5 built-in themes (Dark, Light, Nord, Dracula, Solarized Dark) - Instant theme switching without page reload - Backward-compatible resolvedTheme and toggleTheme APIs preserved - 15 new tests for theme switching, CSS variable application, system preference ## Context TW-THM-002 — ThemeProvider upgrade for MS18. Builds on #493 (theme definitions). Refs: #487 ## Test plan - [x] All 1181 tests pass (15 new ThemeProvider tests) - [x] Lint clean - [x] Typecheck clean - [x] Pre-commit hooks passed
jason.woltje added 1 commit 2026-02-23 14:03:54 +00:00
feat(web): upgrade ThemeProvider to support multi-theme registry
All checks were successful
ci/woodpecker/push/web Pipeline was successful
3decb5f1fd
Refactor ThemeProvider to load themes dynamically from the theme
registry. Themes are applied via CSS variable injection on the
html element, enabling instant switching between all 5 built-in
themes without page reload. Backward-compatible resolvedTheme
and toggleTheme APIs are preserved.

Refs: #487

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 79286e98c6 into main 2026-02-23 14:09:10 +00:00
jason.woltje deleted branch feat/ms18-theme-provider-upgrade 2026-02-23 14:09:11 +00:00
Sign in to join this conversation.