-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Detect if user has prefers-dark-mode setting on #2
Comments
I think this is something browsers will adopt sooner than later: In a cursory search, to check this via JavaScript you may follow this website's advice on a reactive JavaScript approach. |
would be cool if we add a line of code to auto switch dark mode depending on time of the day. IF user local time passed sunset enable dark mode, else Light Mode. |
I'd love to help out with this, if no one else is already working on it |
Hi @filipe-gomes - yes, go for it! I updated my original post with a couple of thoughts on the requirements. |
Thanks! I'm working on a project where I just implemented that. I will start looking into implementing this with the switch tonight after work. |
Attempt to fulfill issue coliff#2
I would like to work on it. |
Is anyone already working on that? |
Requirements:
The text was updated successfully, but these errors were encountered: