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.