Dark Mode Switch for Bootstrap 4
I’ve been looking into ‘dark-mode’ toggles recently as I’d been considering adding one to a project I’m working on. Darkmode.js is a pretty neat solution which uses the
Browser Support #
Works well with all the browsers supported by Bootstrap
Future plans #
It’d be good to detect if the user has the prefers ‘dark-mode’ system preference on and respect that setting (via the (
prefers-color-scheme: dark) media query).