This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
LIGHTSWITCH: A DARK MODE SWITCHER WITH USER OVERRIDE | |
By Nick Punt 10/26/2018 | |
How to use: | |
* Create two color schemes in CSS under the classes 'light' and 'dark' | |
* Add the class 'light' or 'dark' to your body as your default color scheme | |
* Add button to page with id 'lightswitch', which lets users change/override |