Skip to content

refactor(shared): upgrade theme provider for os-awareness and fouc pr… - #520

Merged
johdanike merged 1 commit into
SwiftChainn:mainfrom
QueenColly:upgrade/theme-persistence
Aug 29, 2026
Merged

refactor(shared): upgrade theme provider for os-awareness and fouc pr…#520
johdanike merged 1 commit into
SwiftChainn:mainfrom
QueenColly:upgrade/theme-persistence

Conversation

@QueenColly

Copy link
Copy Markdown
Contributor

Closes #334

Summary of Work:
Upgraded the theme provider to eliminate FOUC and respect OS settings using a strict Component -> Hook -> Service architecture.

  • Implemented themeService to handle localStorage, DOM manipulation, and Axios API calls to /api/user/preferences/theme.
  • Created a useTheme hook to orchestrate state between the backend preference, next-themes, and local fallbacks.
  • Injected a blocking inline script via ThemeProvider to evaluate prefers-color-scheme before React hydration, eliminating FOUC.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@QueenColly Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@johdanike
johdanike merged commit 17a20d5 into SwiftChainn:main Aug 29, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Description

2 participants