Comments (3)
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,
Lukas
from hugo-bearblog.
As a temporary solution I've commented out @media (prefers-color-scheme: dark) {
in `layouts/partials/style.html' on line 129.
from hugo-bearblog.
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
- copy & paste the contents of the
@media (prefers-color-scheme: dark) { ... }
-directive - into a
custom_head.html
-file located atlayouts/partials/custom_head.html
in your site's base directory.
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 ๐ฆ๐น๐,
Jan
PS:
๐ก Just from the top of my head: I think in the future we might move to css variables
and have separate partials for root
- and dark mode
-variables. With that people could simply overwrite those partials in their local layouts
-folder and set their own color variables.
from hugo-bearblog.
Related Issues (20)
- Does this blog supports latex equations? HOT 2
- paginate in blog page HOT 3
- All the "Other Elements โ abbr, sub, sup, kbd, mark" are stripped from the rendered HTML HOT 5
- Mismatched markdown bracket in code preview HOT 1
- feat: pagination support HOT 2
- Home page and Blog page doesn't work with baseURL configuration HOT 1
- abbr, sub, sup, kbd, mark don't seem to work HOT 3
- Create Mutliple Blog Instances HOT 1
- Are you planning to port this theme to WordPress? HOT 2
- Use blog list page as root / home / start page HOT 3
- Scrollbar moves layout a bit HOT 4
- how to disable Dark mode HOT 1
- Render bullet points on blog post list HOT 1
- Add Support for Mermaid.js Diagrams HOT 2
- og:title is empty HOT 1
- Remove Line Under Links HOT 4
- Date Style, Commenting, and Toast Button
- Footer and `custom_body.html` order
- Updating This Theme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-bearblog.