Comments (8)
I'm experimenting with using DarkReader to enable dark mode in toha. My branch is here.
So far, the result is pretty decent. Not sure if that's biased because I'm using the DarkReader browser plugin. I think a native CSS for dark mode is faster but still, this gets the job done with minimal effort.
Website URL: https://donfiguerres.github.io/
from toha.
Hi everyone! I've made a pull request to support dark theme via darkreader. Hoping that it gets approved.
I'm planning to add it to the toha documentation if the pull request gets approved.
from toha.
@hossainemruz FWIW this is what it does to my site
Before
I think largely it does the job well but there are a few sets of text that need some attention in order for their contrast ratio to be high enough. i assume if we figure those out we could easily turn this on with a feature flag in the config.yml to make this passive?
from toha.
Hey @hossainemruz can you please tell me for darkmode in which CSS file should be the following code added,
html[theme='dark-mode'] {
filter: invert(1) hue-rotate(180deg);
}
from toha.
I am not sure yet @Yeganathan. Probably, @alex-bezek can help.
from toha.
Thanks for the reply! @hossainemruz , Let me check with @alex-bezek
from toha.
@yeganathan18 if you add a css file to this location, it will get picked up and included in the build
https://github.com/alex-bezek/blog/blob/master/static/assets/css/style.css
from toha.
@alex-bezek Thanks for the help :)
from toha.
Related Issues (20)
- How to deploy to Azure Static Webapp
- Skills logo misaligned HOT 1
- Changing default color scheme in config.yaml has no effect HOT 1
- Can I set the background image to not downpixelate/blur? HOT 3
- How to add custom taxonomy? HOT 1
- Add social media app handles to sharing message HOT 1
- Getting error on building site HOT 3
- I can build the web locally with the latest version of the theme, but netlify can't build it. HOT 1
- Small issue about the word gap HOT 3
- Taken Courses (Show More and Show Less) buttons showed together. HOT 1
- Math rendering with Katex not rendering HOT 3
- Posts classified by tag, wrong format
- Adding transparent background to certificate badge HOT 6
- Searching Posts does not return any result
- Feature Request: Add Mastodon embed shortcode
- Feature Request: Modify How Projects/Posts Currently Work HOT 1
- Navbar dropdown is blurry in initial state
- Language selector and dark mode selector is broken in mobile (post page)
- Navbar spy disappeared after updating to toha v4 HOT 1
- On the scroll navbar having the transparent background!!! HOT 1
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 toha.