Captain Share
p/captain-share
Curated directory of sharing economy resources to save money
Farbod Saraf
Darkmode Widget β€” Add a dark-mode to your website in a few seconds πŸŒ“
Featured
78
β€’
A plugin that adds a dark-mode / night-mode to your website. Just copy paste the snippet, and that's it!
Replies
Cai Cardenas
This is awesome! Just as I was looking to manually add dark mode to Glyphy! πŸ™Œ Will be adding this for sure!
Farbod Saraf
Dark themes are becoming more and more popular. Even new Apple iOS is coming with the dark mode. I'll use this to darkify two of my websites right away.
Sandoche
@farbodsaraf Thanks for hunting Farbod! Darkify ! That's a cool name, maybe I should have named my product like this!
Farbod Saraf

It's an open source and easy-to-use tool which most website should use nowadays as the dark theme is becoming more and more popular.

Pros:

Managed to darkify two of my website easily.

Cons:

None so far. Maybe having more colors in the future would be cool, although to me the dark one would suffice.

Sandoche
Actually you have options coming with the library so you can easily change the color!
charlie
A few people have already mentioned, but I'll reiterate that this would be amazing to have working in Wordpress. Great work.
Sandoche
@justcharlie Thanks, yes I'll keep in mind :)
Sandoche
@justcharlie Hi, I just got mentionned on twitter by @BarisUnver_EN he built a Wordpress plugin using the darkmode-wiget: https://wordpress.org/plugins/da...
Niklas Pivic
@justcharlie @barisunver_en @envisionwithj @ayush_chandra @mahmudulalam @new_user_cca5c9dab6 @jose_sotelo @sandochee I dig blackout. I've very few coding skills where WordPress is concerned; I just installed the plugin. It works and has good customisation options installed.
Simo Elalj
Cool addon! I'm wondering how you'd make images (logo, illustrations) in dark mode as well?
Sandoche
@simoelalj Thanks! Actually this library uses the CSS proprety `mix-blend-mode: difference;` to activate the darkmode, and by adding `isolation: isolate;` to all the images it will isolate them from the mix-blend-mode.
Sandoche
Hi Product Hunt πŸ‘‹, I am Sandoche, a maker, designer and developer. I recently wanted to add a dark-mode to Kanbanote, one of my website, and then I thought, why not to do it for all my websites at once? that is why I decided to build this plugin that makes dark-mode easily available to any project. Just copy paste the snippet and you will get a widget to turn on and off the dark-mode. You can also use it without the widget programmatically. The plugin is lightweight, built in VanillaJS and open source ! I hope you will like it!
David V. Kimball
You're doing the Lord's work, Sandoche.
Etienne
Again a very good idea. I was actually looking for something similar since some time and you just made it, perfect for me then :) It is very easy to integrate, I will definitely use it. Thanks for the great work.
Sandoche
@etienne0790 Thanks Etienne, please share your project I'll add it to the Readme as a showcase !
Kshitij Choudhary
This is amazing. I don't mind paying for this <3
Sandoche
@kshitij_choudhary Thanks a lot, I opened a Patreon while for the release of Darkmode so feel free to donate, I will also release other open source projects very soon !
Carlos Bernabeu
As always, great product @sandochee & team! Works perfectly out of the box, and enables a feature completely new for users. They perceive the added value of being able to browse my sites without destroying their eyes. Great thinking team! Continue the great work!
Sandoche
@carlos_bernabeu Thanks a lot Carlos, I hope you will use it in your next projects!
Andr Nevar
Nice add-on.
Vera Lekutanaj
I love it. I was looking for something like that long time ago. Thank you for making it. I will definitely use it. Keep on the great work!!!!
Sandoche
@vera Thanks Vera, please share your website once added, I'll share it on my Readme website!
Irene
Thanks so much cor developing this!😍😍
Ivan Camus
Great widget and very easy to use!
Sandoche
@rrhoover @aaronoleary It would be an honor if you do so :)
Titus Decali
Adding dark mode to new Vue projects takes time. This is instant. Great idea!
Patricia Mayo

I was beta tester and added it to my website https://what.toeat.in It worked like a charm, I like getting things done fast 😁

Pros:

Easy, fast and effective, it does what it promises. Very good for amoled screens

Cons:

Need extra css to customize the default colors

Sandoche
Hi Patricia thanks for trying it in beta! Yes if you want to have perfect colors you do need to add a bit of CSS, it will take a few seconds more ;)
Farshad Sadri
@patricia_mayo1 Cool plugin. However it's weird to see you complementing on one of your own sites as a beta tester!
Paschalis Tsolakidis
I love how easy it was to enable dark mode in my websites using this. Good job!
Tepes Ovidiu
I'd love to have this on my website but I just can't make it work. https://cessabit.crevasse.co T_T
Anna Filou
@ovidiutepes that's weird... Did you copy-paste the entirety of both scripts just above your tag?
Sandoche
@anna_0x @ovidiutepes I'll have a look and contact you don't worry
John Datserakis
Nice - thanks for this!!