Variable Modes let one Design Variable hold a different value for each mode. A color called Text can be dark gray in Light Mode and white in Dark Mode. Switch a section to Dark Mode, and every element inside it picks up the Dark Mode values. You don't have to restyle anything.
Groups keep long variable lists tidy. Sort your colors into Brand, Neutrals, and Feedback, or your sizes into Spacing and Type Scale, and collapse the groups you aren't working on.
This article shows you how to add modes, fill in their values, organize variables into groups, and choose which mode each element uses.
How modes work
Each variable type has its own modes. Color modes, such as Light Mode and Dark Mode, are separate from Number modes, such as Regular and Compact. A section can use Dark Mode colors and Compact sizes at the same time.
Each mode is a column. Once a type has modes, the Variable Manager shows one column per mode, so you can compare and edit every value side by side.
One mode is the default. Every element uses the default mode unless you choose another one for it.
Modes pass down. A mode you choose for a section also applies to the rows, columns, and modules inside it.
All seven variable types support modes: Numbers, Text, Images, Links, Colors, Gradients, and Fonts.
Add a mode
Open the Variable Manager by clicking the Design Variable icon in the left sidebar.
Open the drawer for a variable type, such as Colors.
Click the Add Color Variable Mode button at the bottom of the drawer. (The button names the type you're in, such as Add Number Variable Mode.)
Type a name for the new mode, such as Dark Mode.
Click Save Variables, then Apply Changes.
The first time you add a mode to a type, Divi turns your current values into the first mode and adds your new mode beside it. The first mode is named Light Mode for Colors, Regular for Numbers, and Default for every other type. You can rename it.
The button appears once the type has at least one variable.
Set a variable's value in each mode
A new mode starts out empty. An empty cell shows the default mode's value in a lighter style, which means the variable uses that value in this mode too.
To give a variable its own value in a mode, edit its cell in that mode's column.
To go back to the default mode's value, hover over the cell and click the Reset icon.
You only need to fill in the values that change. In a Dark Mode, that might be your background, text, and border colors, while your brand colors stay the same.
Note: Changes to modes and their values are saved only when you click Save Variables. Cancel Changes discards them.
Choose the default mode
The star next to a mode's name shows which mode is the default. To make another mode the default, click its star or choose Assign To Default Mode from its actions menu.
Every element that doesn't have its own mode switches to the new default, across your whole site. If the new default has empty cells, Divi fills them in with the old default's values, so nothing goes blank.
Manage your modes
Hover over a mode's name and click the three dots that appear to open its Mode Actions menu:
Assign To Default Mode - Makes this mode the default.
Duplicate Mode - Adds a copy of the mode, with all its values, named "… Copy".
Disable Mode or Enable Mode - A disabled mode can't be chosen for elements. Elements already set to it use the default mode's values until you enable it again.
Delete Mode - Removes the mode. Elements that used it switch to Global Default.
Move Right or Move Left - Changes the column order.
Reset All Mode Values - Clears every value in this mode, so each variable uses the default mode's value again.
Reset All Mode Values In This Group - Does the same, but only for the variables in that group.
The first mode always stays in the first column. You can't disable, delete, or move it, and you can't disable or delete whichever mode is the default.
If a type has more modes than fit, scroll the drawer sideways, or drag a corner of the Variable Manager to make it wider.
Organize variables into groups
Each variable type can have its own groups. Variables that aren't in a group stay at the top of the drawer, in the General group. Its button reads Add General Color Variable.
To add a group:
In a variable type's drawer, click the Add Color Variable Group button at the bottom. (The button names the type you're in.)
Type a name in the Group Name field at the top of the new group.
Drag variables into the group using the handle that appears when you hover over them. To create a new variable inside the group, click the add button at the bottom of the group, which is named after it, such as Add Brand Color Variable.
Once you have groups, you can:
Collapse or expand a group - Click its title.
Rename a group - Edit the name field at the top of the group.
Reorder groups - Drag a group by its title. Every group collapses while you drag.
Move a variable to another group - Drag it into the other group, or back up to the top of the drawer.
Generate variables into a group - In the Colors and Numbers drawers, click the group's Generate variables in group icon to open the Variable Generator for that group.
Delete a group - Click its trash icon. The variables inside move back to the top of the drawer. They aren't deleted.
The search box at the top of the Variable Manager matches group names and the values in every mode, as well as variable names.
Choose a mode for an element
You can choose a mode for any section, row, column, or module.
Open the element's settings.
Click the Variable Modes icon at the top right of the settings panel, next to the presets icon.
Choose a mode from the list for each variable type, such as Colors.
Each list offers:
Inherit Parent - Uses the same mode as the element it sits inside. This is where every element starts.
Global Default - Uses the default mode, even if the element it sits inside uses another one.
Your modes - Uses that mode for this element and everything inside it.
To undo your choice, click the Reset icon beside the list, which sets it back to Inherit Parent.
The Variable Modes icon is highlighted when the element uses a mode other than the default. Hover over it to see which modes apply. Modes the element inherits from a parent are listed in a lighter style.
If no variable type has modes yet, the panel says so. Click Manage Variable Modes at the bottom of the panel to open the Variable Manager.
Pro tip: To keep one module in Light Mode inside a Dark Mode section, set that module's Colors list to Global Default.
Set up modes with the Divi AI Agent
The Divi AI Agent can do this setup for you. It can add, rename, and delete modes and groups, fill in a mode's values, move variables into groups, and choose the mode for sections, rows, columns, and modules. It follows your usual approvals.
Prompt: Create a Dark Mode for my colors with dark backgrounds and light text, then switch the footer section to Dark Mode.
Things to know
Modes don't switch on their own - Divi doesn't change modes to match a visitor's device or browser settings. Visitors see the mode you chose for each element.
Multi-select - Select several elements with Multi-Select to set their mode all at once.
Components - On a Component on a page, the lists also offer Component Default, which uses the mode set inside the Component. Choose a different mode to change it for that one Component only.
Copy and paste - Copying an element and pasting its attributes onto another element also copies its mode choices. See Divi 5 Visual Builder Right-Click Contextual Menus.
Color picker - When an element uses a color mode, the color picker shows that mode's colors in its swatches.
Import and export - Exported variables and layouts, and items saved to the Divi Library, bring their modes and groups with them. Importing adds them to your site without replacing your existing modes.
Permissions - The Manage Variable Modes button is grayed out for users who can't open the Variable Manager. You control that access in the Role Editor.






