π§© Step 1 β Install & Add the Element
Go to the Plugins tab in your Bubble editor.
Search for Smart Dark Mode Pro and click Install.
In your page editor, add the Dark Mode Manager element.
This element is invisible on your page.
You only need one instance of it per app.
π‘ Tip: place it on your main reusable page or header, so it applies across all pages.
βοΈ Step 2 β Create Workflows
Use workflow actions to control the dark/light theme.
In the Workflow tab, select one of the plugin actions:
π Enable Dark Mode β Activates dark theme immediately.
π Disable Dark Mode β Reverts to light theme.
π Toggle Dark Mode β Switches automatically between dark/light modes.
π‘ You can connect these actions to buttons, icons, or condition-based triggers (for example, when user clicks a βπ Themeβ icon).
π¨ Step 3 β Adjust Settings (Optional)
Customize how your dark mode behaves in the Dark Mode Manager element properties:
Setting Description
Save user preference Remembers last selected mode (dark/light)
Auto sync with OS Matches system-level theme (Windows, macOS, Android, iOS)
Transition duration (ms) Controls the fade speed during theme changes
Invert images Optionally inverts image colors to match dark theme
Preserve element IDs Keeps specific IDs unaffected by theme switch
Custom primary color Set your preferred main accent color
π‘ Combine these options to create smooth, professional transitions.
π§ͺ Step 4 β Test Your App
Click Preview in Bubble.
Trigger your workflow (e.g., click your dark mode button).
Watch your app smoothly adapt between dark and light themes.
π Done! Your Bubble app now has a persistent, OS-synced dark mode.
π§ Pro Tips
Place the plugin element inside a reusable header or layout to apply across all pages.
Combine with Bubbleβs βSet stateβ or conditionals to dynamically change colors or styles.
Works great with design frameworks like Material Design and Flat UI.
π You can test and inspect this plugin directly in the demo editor:
https://bubble.io/page?type=page&name=index&id=flowstackdarkmodedemo