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

store preference #108

Closed
VenomFate-619 opened this issue Jul 11, 2021 · 4 comments
Closed

store preference #108

VenomFate-619 opened this issue Jul 11, 2021 · 4 comments
Assignees
Labels
Assigned This issue is already assigned to one of our contributor, you can look for another issue. DCP'21 This issue can we worked upon under DevIncept. Level 1 This is a Basic issue , It will fecth you 10 Points under DCP'21.

Comments

@VenomFate-619
Copy link
Contributor

When a user toggle to dark mode , then its preference should be set to dark mode means if i refresh the page know , it should remains in dark mode rather than light mode .

@VenomFate-619
Copy link
Contributor Author

can i work on it?

@deeqakkk deeqakkk added Assigned This issue is already assigned to one of our contributor, you can look for another issue. DCP'21 This issue can we worked upon under DevIncept. Level 1 This is a Basic issue , It will fecth you 10 Points under DCP'21. labels Jul 11, 2021
@deeqakkk
Copy link
Collaborator

@VenomFate-619 Go ahead.

@VenomFate-619
Copy link
Contributor Author

VenomFate-619 commented Jul 11, 2021

Help 🆘
I want to set the theme on initial loading according to system theme , for that i am using useMediaQuery hook but there is a flask between light and dark mode , i tried this solution but not work.
If you or me get any solution , then it will get implemented or i will drop it (I think may be it will also require to make the theme state global so that checkbox can access it)

video link

@deeqakkk
Copy link
Collaborator

@VenomFate-619 Your idea seems nice but currently we are not looking into user's system for anything, so just try toggling it between dark and light mode using button on webpage only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Assigned This issue is already assigned to one of our contributor, you can look for another issue. DCP'21 This issue can we worked upon under DevIncept. Level 1 This is a Basic issue , It will fecth you 10 Points under DCP'21.
Projects
None yet
Development

No branches or pull requests

2 participants