Dark Mode Switch!

Derek1244

New Member
YetiShare User
YetiShare Supporter
Jul 17, 2020
11
3
3
I spent quite a bit of time on this myself and have coded user selectable toggles before. That method has been superseded by using the "prefers-color-scheme: dark" method. It will detect the users system preferences and automatically present the site in the users preferred mode (Light or Dark). I've done this on my installation of YetiShare and simply added the associated Dark Mode code to my themes custom css code block.
 
  • Like
Reactions: Semper

Semper

New Member
YetiShare User
YetiShare Supporter
Apr 28, 2021
19
3
3
Germany
I spent quite a bit of time on this myself and have coded user selectable toggles before. That method has been superseded by using the "prefers-color-scheme: dark" method. It will detect the users system preferences and automatically present the site in the users preferred mode (Light or Dark). I've done this on my installation of YetiShare and simply added the associated Dark Mode code to my themes custom css code block.
ok nice but i cant code