Get Started
Portal
Developers
Studio
Introduction to Studio
Copy a Site Template from the Marketplace
Install Studio Module
Studio Page Editor
Dynamic Content in Studio
Studio AI Section Builder
Studio User Roles
Studio Themes
SiteBuilder
Studio Page Templates
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. SiteBuilder JavaScript
  3. Dark Mode JS

Dark Mode JS

Written By Luke Wakefield

Last updated 6 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?