-
Notifications
You must be signed in to change notification settings - Fork 197
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
Is there a way to default to dark mode? #86
Comments
As a temporary solution I've commented out |
Hi @systemb4, thank you for getting in touch. It's nice to meet you 🧤. There's no such configuration option. Your solution is definitely an OK way to go. Here's another way you could go if you so choose: If you'd rather not edit the theme's files, but keep your changes local to your own hugo base directory, you could
The file should look something like this: <style>
body {
background-color: #333;
color: #ddd;
}
h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
color: #eee;
}
a {
color: #8cc2dd;
}
code {
background-color: #777;
}
pre code {
color: #ddd;
}
blockquote {
color: #ccc;
}
textarea,
input {
background-color: #252525;
color: #ddd;
}
.helptext {
color: #aaa;
}
</style> This file will be picked up by the theme. Here's the respective section on the README. I hope that helps 🤓. Kind regards to Austria 🇦🇹👋, PS: 💡 Just from the top of my head: I think in the future we might move to |
Hey @janraasch! Thanks for the quick response! I've used your solution as it makes a bit more sense from a deployment perspective. Kind regards, |
Is there a way to default to dark mode? Preferably a setting to place into
hugo.toml
?The text was updated successfully, but these errors were encountered: