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

Force dark mode? #34

Open
halbrd opened this issue Apr 5, 2022 · 1 comment
Open

Force dark mode? #34

halbrd opened this issue Apr 5, 2022 · 1 comment
Labels
Type: Enhancement New feature or request

Comments

@halbrd
Copy link

halbrd commented Apr 5, 2022

I use dark colour schemes on all of my devices.

On some of them, the prefers-colour-scheme: dark handling doesn’t work (or only works after a refresh). I believe this is due to bugs outside of my control in the system or browser software.

Is there a way to hardcode my static marks page to always use the dark theme?

@darekkay
Copy link
Owner

darekkay commented Apr 5, 2022

Hey @halbrd ,

right now Static Marks relies on prefers-color-scheme alone, but the code is prepared to support a theme switcher in the future. This means you can set the color scheme in localStorage by running the following in the browser DevTools console and reloading the page:

localStorage.setItem("theme", "dark")

I think a proper theme switcher is the right solution to your issue, but as of now I don't have a roadmap for this feature.

@darekkay darekkay added the Type: Enhancement New feature or request label Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants