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
Works well with all the browsers supported by Bootstrap
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).
Leave a Comment
Your email address will not be published. Required fields are marked *