dark mode using inversion, double-hit Esc for toggle button
I got frustrated with how complex and unreliable existing dark mode methods were, so I made a very simple one myself. It simply inverts the colors of the page, while keeping images and videos the same.
Double-Hit Esc to shortly display the toggle button. Dark Mode state is saved in window.localStorage.darkMode
for persistence.
Style loads very early to avoid white flash.
Button:
Before:
After: