-
Notifications
You must be signed in to change notification settings - Fork 5
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
Connect dark/light mode switch to user settings #62
Comments
@kgilles It doesn't appear that the site even allows a user to log in yet? Is that accurate or am I overlooking how to create and log in as a user? I could update it to leverage Prefers Color Scheme though? Which may resolve the flickering and give the site a usable default until logins are supported and then we could have the DB value supersede the browser preference? |
@chasingtheflow This is in Backlog while waiting for the user auth stuff to be completed in issue #13
Sounds good to me. Feel free to give it a go. |
@chasingtheflow User auth has been connected. When you use the Docker dev setup there are a bunch of seeded users all with the same password ready for you. You can also register a new user if you prefer. |
Hey do we have a design doc or something that we're working towards? |
Not yet. We have a couple colors and sizes in the Tailwind config but nothing truly set in stone. |
The current dark/light mode switch value is stored in local storage. This can cause flickering or other imperfections on initial page renders. To enable us from loading the correct styles from the server we need to connect the dark/light mode value to the user's settings. Specifically the
theme
user setting.The text was updated successfully, but these errors were encountered: