include this script to set the bootstrap 5.3 dark-mode automatically based on system settings
Find a file
2023-06-08 17:21:56 +02:00
src initial commit 2023-06-08 17:09:24 +02:00
.gitattributes initial commit 2023-06-08 17:09:24 +02:00
.gitignore initial commit 2023-06-08 17:09:24 +02:00
index.html initial commit 2023-06-08 17:09:24 +02:00
LICENSE Initial commit 2023-06-08 16:44:41 +02:00
package.json initial commit 2023-06-08 17:09:24 +02:00
README.md >=, not > 2023-06-08 17:21:56 +02:00

bootstrap-auto-dark-mode

Include this script to set the bootstrap >= 5.3 dark-mode automatically based on system settings.

The mode will switch automatically, also when the user changes the system settings while the page is shown.

Usage

<script src="./src/bootstrap-auto-dark-mode.js"></script>