Skip to main content
Studio Helper JavaScript

Dark Mode JS

A helper for helping users toggle between light and dark mode. We are reviewing this and whether it is still helpful in the Studio module.

Written By Luke Wakefield

Last updated About 2 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 .

Usually added to:

StudioKit library theme head

Script code:

<script async id="sitegurus_dark_mode_javascript_api" src="{{'modules/module_357/js/sitegurus_dark_mode_javascript_api.js' | asset_url}}" charset="utf-8"></script>

Was this helpful?

Still need help? Ask the team