NewThe Supreme Bundle: every Divi Supreme plugin, 31% less than buying separately.See what’s inside →

Next module, A to Z

Dual Heading Module

Module 19 of 71

Dark Mode Toggle module

Divi Dark Mode Toggle that lets visitors pick the lights.

Put a light and dark switch in your header, footer or anywhere else. Choose the style, icons or labels, and the colours for each mode.

Divi Supreme

Design that works day and night.

Visitors pick the look that suits their eyes. Their choice is remembered on the next visit.

What is the Divi Dark Mode Toggle module?

Dark Mode Toggle is a Divi 5 module in Divi Supreme Pro that places a control visitors click to switch your site between light and dark. Use it in a Theme Builder header, a footer, a menu or any page.

Pick a Pill, Icon or Switch style. Keep the default sun and moon, or use your own icons, text labels, both, or a pair of images. Set background, foreground, icon, accent and track colours for each mode.

switch styles

content modes

max size

custom code

Start from a Dark Mode Toggle recipe.

The recipes and the playground run on the front end. Use Preview, or open the page, to try them.

Divi SupremeWorkAboutContact

Design that works day and night.

Visitors pick the look that suits their eyes. Their choice is remembered on the next visit.

Try every Dark Mode Toggle setting.

The recipes and the playground run on the front end. Use Preview, or open the page, to try them.

Divi SupremeWorkAboutContact

Design that works day and night.

Visitors pick the look that suits their eyes. Their choice is remembered on the next visit.

Everything Dark Mode Toggle can do.

Three styles

A pill with icon and label, a round icon button, or a sliding switch.

Icons, text or images

Default sun and moon, custom icons, text labels, icons with text, or an image pair.

Colours per mode

Background, foreground, icon, accent and track colours for light and dark.

Place it anywhere

Headers, footers, menus or inside content, with alignment and size.

Accessible

A real button with a clear label and focus outline in your accent colour.

Divi 5 native

Works in the Theme Builder alongside your Divi Supreme dark mode settings.

Dark Mode Toggle documentation

Setup for Divi 5: switch style, content mode, labels, icons, images and colours for each mode.

Questions about Dark Mode Toggle.

What does the toggle do?

It switches your site between its light and dark colour schemes when a visitor clicks it.

Where can I put it?

Anywhere a module can go: a Theme Builder header or footer, a menu row, a sidebar or page content.

Which styles are there?

Pill, Icon and Switch. Pill shows an icon and optional label in a rounded button, Icon is a round button, and Switch is a sliding toggle.

Can I use my own icons or text?

Yes. Content mode can be the default sun and moon, custom icons, text labels, icons with text, or an image for each mode.

Can I change the colours?

Yes. Set background, foreground and icon colours for light and dark, plus an accent for the focus outline and the switch thumb in dark mode, and a track colour.

Is it keyboard friendly?

Yes. It is a real button that works with Tab, Enter and Space, with a visible focus outline.

Does it work with Divi 5 and WPML?

Yes. It is a native Divi 5 module and its labels can be translated with WPML.

Related modules

Content Toggle Module

Switch between two blocks of content.

Menu Module

Headers and mega menus for Divi 5.

On Scroll Header Animation Module

Headers that change as you scroll.

4.9 out of 5

Rated 4.9 by Divi designers on Trustpilot. Running on 350,000+ sites.

Give visitors the choice.

Dark Mode Toggle comes with 70+ Divi 5 modules and 16 extensions in Divi Supreme Pro.

Divi Supreme