Dark Mode Toggle Divi 5 · Divi Supreme Pro extension
Dark mode for Divi, in your colors.
A floating switch or toggle module, your own dark palette, and per-section overrides. No code needed.
12
dark palette colors
4
Apply Surface levels
5
switch content modes
3
default modes: System, Light, Dark
Design the dark version right in Divi.
Click Dark on the builder bar. The customiser opens and your page previews in dark while you pick colors, Theme Builder header included.
- Preview onlyThe builder preview lasts for your session and never saves as a visitor preference.
- Theme Builder tooHeaders and menus in the canvas preview in dark, with logo swap applied.
- Per breakpointPalette colors and switch layout can change on Tablet and Phone. Phone inherits Tablet, Tablet inherits Desktop.
- Live as you editOverrides and custom dark CSS show on the canvas while you work.
Float it, or put it in the header.
Use a floating switch for the whole site, or drop the Dark Mode Toggle module into a Theme Builder header. Both share the same styles.
The floating switch respects safe-area insets, so a phone notch never clips it.
Free layouts for every niche.
Landing pages for cafes, clinics and agencies, ready to import into Divi.
See all layouts- Colors per schemeBackground, foreground and icon color for light and for dark, plus accent and track color.
- Size and shapeSize (48px by default), horizontal padding, border, radius and a box shadow for each scheme.
- PlacementFour corners, Offset X and Y, stacking (z-index) and an optional hover lift.
- Your own icons or imagesBeyond sun and moon and text labels, use Custom icons or Custom images for each scheme, and set the label font.
Your dark palette. Not an invert filter.
Invert filters turn photos into negatives and push your brand color somewhere strange. Here you set each dark color yourself.
Set all 12 colors, from Link hover to Input border. Leave the input colors empty and they follow Surface, Text and Border.
You decide how much goes dark.
Apply Surface to sets how far the dark Surface color reaches across your modules. A module override always beats the automatic fill.
Dark at the right time, without a click.
Follow the visitor's device, pick a default, or switch to dark on a schedule. Once a visitor chooses, the browser remembers.
Inside the 18:00 to 06:00 window, so the site loads dark.
System
Follows the visitor's device setting. The best default for most sites.
Light or Dark
Pick the scheme first-time visitors see, whatever their device says.
Remembered choice
One toggle and the visitor's pick is stored in their browser until they reset it.
And only where it fits.
Display conditions decide which pages load dark mode. Keep it off checkout, or switch it on page by page.
Display onOne section needs its own dark?
Set a dark background, text, heading, link or border color on any section, row or column. The light design stays exactly as it was.
The right scheme, every visit.
Dark Mode decides in a fixed order, so visitors never have to fight it.
- 1The visitor's choiceOnce someone toggles, their pick is saved in the browser and always wins.
- 2Your scheduleInside the Auto dark by time window, the site loads dark. The window is checked every minute.
- 3Your default modeSystem follows the device setting. Or set Light or Dark for first-time visitors.
The details that make it feel finished.
Logo swap
Upload a light and a dark logo. They swap with the scheme, so your logo never vanishes into a dark header. A Logo selector setting targets any image, not only the default Divi logo.
Keyboard shortcut
Pick Alt + D, Alt + M, Ctrl + Alt + D or Shift + Alt + D. Try Alt + D on this page.
Dim images
Set Image brightness (85% by default) so photos do not glare. Swapped logos stay crisp.
Reset the choice
Visitors clear their saved scheme with a long-press, a double-click, or both. You set the timing.
Hooks for developers
Emit a custom event when the scheme changes and run your own code. No analytics SDK is loaded.
Custom dark CSS
For the last 1%, the Advanced tab takes extra CSS that only runs in dark mode. Start from a snippet for the html.dsm-dark prefix, a Theme Builder header, a section background or the Menu module.
html.dsm-dark .et_pb_section.promo {
background-color: #111 !important;
}Switch it on. One click.
Dark Mode Toggle ships inside Divi Supreme Pro. Turn it on from the Divi Supreme Settings screen, next to the other 15 extensions.
- Open Divi Supreme SettingsIn WordPress, go to Divi Supreme, then Extensions.
- Switch on Dark Mode ToggleIts card shows On. Turn off any extension you do not use.
- Build in DiviOpen the Visual Builder. The Dark Mode customiser opens from the builder toolbar.
Divi Supreme Settings
This is where you can enable Divi Extensions.
Divi tips for designers, once a month.
New extensions, dark mode palettes that work and free layouts. Short, practical, written for people who build Divi sites.
One email a month. Unsubscribe in one click.
Get Dark Mode Toggle with Divi Supreme Pro.
Dark Mode Toggle ships inside Divi Supreme Pro, with 70+ modules and 15 more extensions. One plugin, unlimited sites.
Divi Supreme Pro
$79/ year
Updates and support for 12 months. Renews at 30% off.
- The Dark Mode Toggle extension
- 70+ Divi modules and 15 more extensions
- Unlimited sites, client work included
- Runs on Divi 5
Save 31%
All-Access, 4 plugins
$129first year$186
Divi Supreme Pro plus three more plugins. Renews at $90/yr.
Divi Supreme ProIncludes Dark Mode Toggle
Supreme Mega MenuMenus from Divi layouts
Supreme Maps ProGoogle Maps and Leaflet
Supreme AI WriterText, images, stock media
4.9 rated, on 350,000+ Divi sites14-day money-back guaranteeUnlimited sites on every planEach plugin keeps its own license key
Not ready to buy? Try 20+ modules free with Supreme Modules Lite.
Questions, answered.
Every setting is in the Dark Mode Toggle docs. Something else? Ask the team.
Pairs well with
Tooltip
Add a tooltip to any module from the Advanced tab.
Preloader
A branded loading screen you design in the builder.
Custom Cursor
Site-wide custom cursors with live preview and scope rules.
Give visitors the dark mode they already expect.
Switch on Dark Mode Toggle, set your palette and pick where the switch lives. Done before your coffee cools.