This script automatically switches the Bootstrap theme between light and dark mode, depending on the system settings.
Use it by just including bootstrap-auto-dark-mode.js
in your header.
<script src="./src/bootstrap-auto-dark-mode.js"></script>