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

Can't you always activate the dark mode? #108

Open
Syon0303 opened this issue Jan 12, 2022 · 1 comment
Open

Can't you always activate the dark mode? #108

Syon0303 opened this issue Jan 12, 2022 · 1 comment

Comments

@Syon0303
Copy link

Syon0303 commented Jan 12, 2022

Hello, I'm Syon0303, who is using the theme you made very well.
Currently, the dark mode under this theme seems to be able to turn on dark mode only when customers entering the blog activate the dark mode after giving the dark_mode option true in the config.yml file.
Even if the theme's name is plainwhite, I really like the dark mode of this theme.
Is there a way to set the dark mode to default?
If there is no such way, can you give me an option to set the dark mode to default?

Since I used a translator for my writing, the context may be strange. Thank you for reading it. Happy New Year!

@samarsault
Copy link
Owner

You can add class "dark" to body in _layouts/default.html so that it becomes:'

<body class="dark">
....
</body>

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

No branches or pull requests

2 participants