Dark-mode theme switch for Bootstrap with local storage preference
npm install dark-mode-switch

html
`
2. Load dark-mode-switch.min.js at the foot of your page:
`html
`
3. Edit the dark-mode.css to suit your site - the one included here is a very basic example.
How it works
Turning dark mode on will add data-theme="dark" to the body tag. You can use CSS to target the elements on the page like so:
`css
[data-theme="dark"] {
background-color: #111 !important;
color: #eee;
}
``