Easy way to add a Dark Mode Theme Switch [Tip]
Posted: Thu Jan 21, 2021 1:23 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!
PS: Sorry for my english!
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!
PS: Sorry for my english!