Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add localStorage support for theme toggle #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akshay0611
Copy link

This pull request introduces a feature to save the user's theme preference (light or dark mode) using localStorage.

  • The theme toggle state is now stored in localStorage to persist the theme across page reloads.
  • The theme is applied based on the value stored in localStorage when the page is loaded.
  • A fallback mechanism has been added to default to light mode if no theme is set in localStorage.

This update enhances the user experience by ensuring that their theme preference is retained after navigating away or refreshing the page.

@akshay0611
Copy link
Author

Hi @ADi7YA26 ,

I hope this message finds you well! I wanted to follow up on this pull request introducing localStorage for theme preference. It significantly enhances the user experience by persisting the selected theme across page reloads and ensuring a consistent interface.

Could you please review this at your earliest convenience? Let me know if there's any feedback or changes you'd like to see.

Thank you for your time and support!

Best regards,
Akshay Kumar

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.

1 participant