JavaScript-less Dark Mode #1346
jcjordyn130
started this conversation in
Ideas
Replies: 1 comment
|
that's great idea |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I love the theme, but I cater to a more niche indieweb audience that might not have the ability (or want to) run JavaScript.
On my local site, I overrode the dark mode selector to use
@media (prefers-color-scheme: dark)to toggle dark mode based on the local browsers preference instead of a toggle.I've tested it in desktop Firefox and mobile Chrome (on Android) and it seems to work quite well.
Would this be a feature the community would be interested in? I can clean the code up and make a proper PR.
All reactions