âšī¸Dark Mode JS
The dark_mode script is based on Flowbite's own documentation for dark mode. See https://flowbite.com/docs/customize/dark-mode/#dark-mode-switcher . We include step 1 directly on your page template, as this needs to load immediately. Our JavaScript script implements step 3 from the documentation.
Usually added to:
Flowbite Theme Templates
Script code:
Last updated