Diurnal is a small (2KB) utility to switch stylesheets for bright and dark settings. A cookie is set to keep the setting for one day.
If you're coding by the pool, remember to keep your laptop dry. But also, it's gonna be hard to see the screen with a dark background and light text.
Switch to bright mode and enjoy the Sun!
If you're up late, stuck on a coding binge or lost in dependency hell, be sure to mind your vision with a brighter screen (yes, it helps you focus), but no so bright it gives you a headache.
Switch to dark mode and chill into the night.
Patches to normalize cross browser appreciated! See https://github.com/pablo-mayrgundter/diurnal.js