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

Set initial theme from user's system settings #81

Conversation

jeffslofish
Copy link

Fixes #80

@netlify
Copy link

netlify bot commented Sep 11, 2022

Deploy Preview for bejamas-nextjs-blog ready!

Name Link
🔨 Latest commit 3cd157a
🔍 Latest deploy log https://app.netlify.com/sites/bejamas-nextjs-blog/deploys/631d994f64dd3f0009a74474
😎 Deploy Preview https://deploy-preview-81--bejamas-nextjs-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jeffslofish
Copy link
Author

Actually, I don't like this solution. If the user's system setting is dark theme, then the light theme is flashed briefly before the dark theme is loaded.

@LetThatSinkIn
Copy link

Actually, I don't like this solution. If the user's system setting is dark theme, then the light theme is flashed briefly before the dark theme is loaded.

Is it possible to somehow just force the style to use dark mode exclusively and simply not have light mode as a possibility?

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.

User's system setting for dark theme not respected
2 participants