Get Started
Portal
Developers
Studio
Studio Developers
Introduction to Studio
Marketplace Site Templates
Studio Page Templates
Install Studio Module
Studio Page Editor
Mapping dynamic database content to static sections
Studio AI Section Builder
Studio User Roles
Dynamic Sections
Studio Libraries
SiteBuilder (Deprecated)
CMS
Modules
WebApps
eCommerce
CRM
Site Manager
Reporting
Workflow Builder
Changelogs
Miscellaneous
Support & FAQs
πŸ’¬
Feedback
πŸ—ΊοΈ
Roadmap
πŸ“
Changelog
Custom icon
www.siteglide.com
    Home
  1. Studio
  2. Studio Helper JavaScript
  3. Dark Mode JS

Dark Mode JS

Written By Luke Wakefield

Last updated 7 months ago

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:

Was this helpful?