Skip to content

feat: implement persistent light/dark theme support#383

Merged
amina69 merged 1 commit into
amina69:mainfrom
Oyinkans0la12:feat/theme-switching
Jun 2, 2026
Merged

feat: implement persistent light/dark theme support#383
amina69 merged 1 commit into
amina69:mainfrom
Oyinkans0la12:feat/theme-switching

Conversation

@Oyinkans0la12

@Oyinkans0la12 Oyinkans0la12 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Closes #365

Closes #366

Summary

Adds application-wide light/dark theme switching with persistent user preferences and system theme fallback support.

Changes

  • Added global theme management
  • Implemented light/dark mode toggle UI
  • Persisted theme preference across sessions
  • Added automatic system theme detection fallback
  • Updated app styling to support both themes consistently
  • Added hydration-safe theme initialization

Features

  • Toggle between:

    • Light theme
    • Dark theme
  • Preference persistence using local storage/cookies

  • Default fallback to system preference when no explicit selection exists

  • Smooth theme transitions without flash issues

Technical Details

  • Centralized theme provider/context
  • Theme state shared across application
  • SSR/hydration-safe initialization where applicable
  • Accessible toggle controls and labels added

Testing

Added/updated tests for:

  • theme toggle behavior
  • persisted preference loading
  • system preference fallback
  • UI rendering in both themes
  • hydration-safe initialization

Notes

  • Existing styling preserved where possible
  • Theme tokens/classes structured for future scalability

@drips-wave

drips-wave Bot commented Jun 2, 2026

Copy link
Copy Markdown

@Oyinkans0la12 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

@amina69 amina69 merged commit 8642f16 into amina69:main Jun 2, 2026
1 check 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.

Create Reusable Form Components Add Dark Mode Support

2 participants