Skip to content

feat: add dark mode toggle with localStorage and prefers-color-scheme…#395

Merged
dev-fatima-24 merged 2 commits into
dev-fatima-24:mainfrom
Pidoko257:main
May 29, 2026
Merged

feat: add dark mode toggle with localStorage and prefers-color-scheme…#395
dev-fatima-24 merged 2 commits into
dev-fatima-24:mainfrom
Pidoko257:main

Conversation

@Pidoko257
Copy link
Copy Markdown
Contributor

Closes #244
… support

  • Add CSS variables for light/dark themes to index.css
  • Wire DarkModeToggle into nav in App.jsx
  • Toggle persists preference in localStorage, defaults to prefers-color-scheme
  • Accessible aria-label: 'Switch to dark/light mode'

Description

Please include a summary of the changes and related context.

Closes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Changes Made

Testing

Please describe the tests you ran and how to reproduce them:

  • Unit tests pass
  • Integration tests pass
  • Manual testing completed

Test Coverage:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests passed locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

If your changes include UI modifications, please add screenshots here.

Additional Notes

Any additional information that reviewers should know.

… support

- Add CSS variables for light/dark themes to index.css
- Wire DarkModeToggle into nav in App.jsx
- Toggle persists preference in localStorage, defaults to prefers-color-scheme
- Accessible aria-label: 'Switch to dark/light mode'
@dev-fatima-24
Copy link
Copy Markdown
Owner

@Pidoko257 you're pushing from main, pls push from branch

@Pidoko257
Copy link
Copy Markdown
Contributor Author

I have implemented the correction, please check recent pull request. thanks!

@dev-fatima-24 dev-fatima-24 merged commit 949d9d3 into dev-fatima-24:main May 29, 2026
3 of 14 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.

[FRONTEND] Implement dark mode toggle

2 participants