View Full Version : Dark Themes for Wiki
Meulaar
02-14-2023, 09:51 AM
Any chance we can get some dark themes for wiki? I get blasted from my second monitor.
https://meta.wikimedia.org/wiki/User:DavidL/DarkThemeIf you all need Dev help, I can provide resume and references.
Cheers,
~Matt
Nummen on Green
Kavious
02-14-2023, 11:14 AM
There are browser extensions to make sites dark. Firefox has Dark Reader, Chrome has Dark Theme and may possibly be others as well
loramin
02-14-2023, 12:26 PM
There are browser extensions to make sites dark. Firefox has Dark Reader, Chrome has Dark Theme and may possibly be others as well
This.
The problem is, A) what you linked might have issues with our (old) version of the MediaWiki software, and B) it would change the wiki for everyone (ie. it wouldn't be a "dark mode", it'd be permanent darkness for all).
It is possible to add a (true) dark mode to the wiki though. It would take someone who knows CSS writing a new CSS file, or modifying and testing that guy's (it has almost 2500 lines of code, so starting fresh might actually be easier than tweaking/testing his file). Either way, the new file would need to use the prefer-color-scheme (https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media query, to only show the styles with dark mode turned on in their browser.
If anyone wants to make/test such a file I'll happily add it to the wiki ... but Kavious's suggestion of just using a browser extension is probably going to be a lot easier.
gkmarino
02-14-2023, 02:45 PM
https://photos.app.goo.gl/LfZ5d9G1n4JTS3f29
adding a new skin wouldn't "change the wiki for everyone"
only for people who selected the dark skin
Meulaar
03-12-2023, 03:28 PM
There are browser extensions to make sites dark. Firefox has Dark Reader, Chrome has Dark Theme and may possibly be others as well
Thank you!
loramin
03-12-2023, 03:31 PM
adding a new skin wouldn't "change the wiki for everyone"
only for people who selected the dark skin
Did you just stop reading in the middle of my post? I explained that having it work "only for people who selected it" was possible.
We just need a dark mode CSS file with the media query to let it toggle based on the user's browser preference. No one has volunteered to make one yet.
Meulaar
03-12-2023, 03:38 PM
This.
The problem is, A) what you linked might have issues with our (old) version of the MediaWiki software, and B) it would change the wiki for everyone (ie. it wouldn't be a "dark mode", it'd be permanent darkness for all).
It is possible to add a (true) dark mode to the wiki though. It would take someone who knows CSS writing a new CSS file, or modifying and testing that guy's (it has almost 2500 lines of code, so starting fresh might actually be easier than tweaking/testing his file). Either way, the new file would need to use the prefer-color-scheme (https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media query, to only show the styles with dark mode turned on in their browser.
If anyone wants to make/test such a file I'll happily add it to the wiki ... but Kavious's suggestion of just using a browser extension is probably going to be a lot easier.
Hey bro, you don't have to reply just to say they won't or we can't. That's not helpful for the sake of sounding helpful.
It's just no dark mode in 2023? Is it a huge programmatic effort to add a theme to a wiki and see if it works? I'm almost very sure that it's not.
They may only have productions systems to work with. I could see how one would not want to rock that boat.
If they don't want to take the time that's fine. I don't get the lack of support. I mean I get it, but I don't. But I guess I can't complain...?
Thanks for the alternatives guys!
Meulaar
03-12-2023, 03:41 PM
https://photos.app.goo.gl/LfZ5d9G1n4JTS3f29
Thanks! Dark reader is great so far! Exactly what I'vce been looking for. Let's just see how it messes up my cert classes. haha!
loramin
03-12-2023, 03:44 PM
Hey bro, you don't have to reply just to say they won't or we can't.
That's not what I said.
I said, we can (and, as you suggested, it's really not hard) ... but it does take someone who knows CSS spending an hour or two to write the CSS file, and test it to make sure it doesn't make any wiki pages unreadable. If anyone is willing to do that, I'll happily "install" it on the wiki.
If you were motivated enough, you could probably teach yourself enough CSS in an hour or two to do the job yourself (there are tons of Youtube videos and tutorials and such).
Meulaar
04-27-2023, 08:56 AM
That's not what I said.
I said, we can (and, as you suggested, it's really not hard) ... but it does take someone who knows CSS spending an hour or two to write the CSS file, and test it to make sure it doesn't make any wiki pages unreadable. If anyone is willing to do that, I'll happily "install" it on the wiki.
If you were motivated enough, you could probably teach yourself enough CSS in an hour or two to do the job yourself (there are tons of Youtube videos and tutorials and such).
I am a web programmer and have been for 30+ years on nearly every tech. There are dark mode themes available. I couldn't imagine something as simple and ubiquitous as wiki would be a huge lift to add these themes. I looked it up before I asked and even tried out the other wonky themes on this site. You wouldn't have to enable any new theme as default for everyone or even mention that the dark mode themes are available. I had no Idea we had some 5 other light mode themes. Did I not mention that I would be willing to lend a hand, I thought I did...
Again, love the helpful enthusiasm, but again with the backhanded responses - really? These kinds of responses?
btw, I would hazard to guess it would take more tha a few hours to re-css the site without deep knowledge.
When I looked at publicly available dark mode themes for the wiki, there were two.
I've solved the issue with Dark Reader.
You just keep on being you man...
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.