Easy way to add a Dark Mode Theme Switch [Tip]
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!
-
- Jr. Bludit
- Posts: 4
- Joined: Sun Jan 17, 2021 10:14 pm
Oh yeah! That's something I already fall in love with
Looks good, I will take a look deeper