Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module allows users to easily switch between light and dark modes on Bootstrap-based Drupal themes. It provides a block that, once placed, allows users to toggle their preferred theme without any complex setup.

The Bootstrap Theme Toggler module provides a simple, plug-and-play solution to add a theme switcher to your Drupal site. It allows users to toggle between light and dark modes when using a Bootstrap-based theme, improving accessibility and user experience without any configuration.

Features

  • Provides a ready-to-use "Bootstrap Theme Toggler" block
  • Allows users to toggle between light and dark themes
  • Seamless integration with Bootstrap-based themes (e.g. Bootstrap 5)
  • Persists user preference using local storage or session
  • No configuration required
  • Lightweight and no external dependencies

This module is ideal for site builders who want to quickly add a modern dark mode toggle without writing custom JavaScript or complex theming logic.

Post-Installation

After enabling the module, go to the Block Layout page and place the "Bootstrap Theme Toggler" block in any region of your site.

Once the block is placed, the theme switcher is immediately available to users. No additional configuration is required.

Additional Requirements

  • Drupal 9, 10 or higher
  • A Bootstrap-based theme (e.g. Bootstrap Barrio or a custom Bootstrap theme)

No additional modules or libraries are required.

Similar projects

Other theme switcher modules may offer advanced configuration options or support multiple themes.
Bootstrap Theme Toggler focuses on simplicity and ease of use, with a zero-configuration approach and tight integration with Bootstrap.

Supporting this Module

If you find this module useful, consider supporting its development by contributing code, reporting issues, or sharing feedback on Drupal.org.

Community Documentation

Additional documentation, demos, or tutorials may be added here in the future.

This module is designed to be simple, efficient, and easy to integrate into any modern Drupal project using Bootstrap.

Activity

Tracked releases
1
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Apr 3, 2026