Dark mode with stylesheet swap
This is using javascript to swap the stylesheets to toggle dark/light mode.
Advantages
- Flexible - can easily add other themes
- Simple to implement
- Easy to separate out modes
Disadvantages:
- Requires loading other stylesheet when needed
- Flash when loading stylesheet
Toggle mode: