Easy way to add a Dark Mode Theme Switch [Tip]

Post Reply
niceguy
Jr. Bludit
Posts: 7
Joined: Thu Oct 29, 2020 1:51 pm

Hi!

Today I wanna share a tool called "Dark Mode Switch" :

https://coliff.github.io/dark-mode-switch/index.html

or:

https://github.com/coliff/dark-mode-switch

I've made a test in one of my blogs:

http://www.leituras.casa/blog/a-existencia-de-amy/

I think it is very easy to use: I just needed to duplicate the original CSS file of my theme, and rename it to dark-mode.css ; Then, I changed some values in this last CSS. Don't forget to add this flag at the beginning of each option:

[data-theme="dark"]

A great day for everybody!

Alexandre, Nice Guy!
:D

PS: Sorry for my english!
lodria
Master Bludit
Posts: 83
Joined: Wed Jan 29, 2020 8:32 pm

Thanks
meagainsttheweb
Jr. Bludit
Posts: 3
Joined: Sun Jan 17, 2021 10:14 pm

Oh yeah! That's something I already fall in love with :D
User avatar
diego
Site Admin
Posts: 751
Joined: Sat May 16, 2015 2:53 pm
Contact:

Looks good, I will take a look deeper
Post Reply