Variable Modes & Groups for Divi 5

Posted on December 3, 2026 by Leave a Comment

Get Divi TodayTry Divi Risk Free For 30 Days!
Variable Modes & Groups for Divi 5
Blog / Theme Releases / Variable Modes & Groups for Divi 5
Play Button

I’m excited to introduce Variable Modes and Groups for Divi 5! 🎉

Variable Modes let you define multiple values for the same variable and choose which mode to use on an element and its children. Variable Groups let you organize your variables by purpose and find them in the builder as you work.

For example, give your background and text color variables light and dark palettes. Apply Dark Mode to your hero section, and the headings and buttons inside can inherit the dark palette while the rest of the page uses Light Mode.

You don’t need to create different presets or versions of the same element; change its mode, and the variables update accordingly!

Let’s take a look. 👇

Give One Variable More Than One Value

Variables give reusable values a name. A variable called Surface might hold the background color for your cards, and Card Padding might control the space inside them. Variable Modes let you give the same variable different values in different parts of your site.

For example, one color variable might have different values for light and dark mode sections.

To create a variable mode, open Variables from the Visual Builder sidebar, expand Colors, and click Add Color Variable Mode. Divi puts your existing colors in the first column and adds a column for the new mode. Name it “Dark Mode,” then enter alternative values for colors such as Surface, Heading Text, and Link. Any value you leave inherited follows the default mode. Click Save Variables when you’re ready.

When you apply Dark Mode to an element or its parent container, the element’s or container’s dark mode values are used—one variable, two values.

You can create modes for colors, fonts, gradient variables, images, links, numbers, and text. Each type has its own modes so that a section can use Dark Mode for colors, Dense for spacing, and the site’s default fonts.

Create Variations That Stay Connected

Say your design uses a Number variable called Increment. Card Padding is twice that Increment, and Card Gap uses it directly. Set Increment to 8px in Regular and 4px in Dense. When you apply Dense to a pricing section, its padding and gaps shrink together. You can keep the relationships you built with Variable Math and change the value that drives them.

Apply Modes to a Single Element or its Parent Container

Open an element’s settings and click Variable Modes next to the preset control. Choose a mode for the variable type you want to change. To give the hero a dark palette, apply Dark Mode to the section. Its headings, buttons, and other elements can inherit that choice wherever their settings use your color variables.

For a light card inside that dark hero, open the card’s settings and choose Global Default for Colors. Global Default uses the site’s current default color mode. Choose Inherit Parent when you want the card to follow the surrounding section again. The Variable Modes tooltip shows named modes at a glance and dims inherited selections.

Light and dark modes are just examples. You can create any mode you like!

Reuse the Same Presets and Components Across Variations

If a button uses an Option Group Preset that references your Surface and Link variables, it can use that same preset in both light and dark sections. The preset defines which variables the button uses, and the mode supplies their values.

You can also save mode assignments on a Component and override them on an individual instance. For example, give a reusable signup banner your standard palette, then choose a campaign palette for the instance on your launch page. Choose Component Default to return that instance to the source Component’s assignment.

Organize Your Variables by Purpose

A growing palette is easier to browse when you group variables by purpose. For colors, you might use groups for surfaces, typography, and borders. In Variables, click Add Color Variable Group, name it, and drag the relevant colors into it. Variables outside a named group appear under General when groups are present.

Groups appear in the color and gradient pickers, so you can find the right variable while editing an element. And when you’re adjusting a mode, you can reset its values for just one group. For example, use Reset All Mode Values In This Group on Typography to restore its inherited values while keeping your alternate Surface and border colors.

Make Room to Work With New Modal Sizing Controls

To resize or dock the Variables panel, click the new Modal Size button in the header and choose Minimized, Maximized, Fullscreen, Docked Left, or Docked Right. Maximize the Variables panel to compare more mode columns at once, go fullscreen to fill the available builder area, or dock it to one side to keep it handy while you edit.

For a custom fit, hover near any of the four corners of a floating modal to reveal a resize anchor. Drag it to adjust the window’s width and height.

Your modal sizes can also be saved with Divi Workspaces. Set the Variables panel to Fullscreen, then save a new Workspace or update your current one. When you switch back to that Workspace, Divi restores the panel in Fullscreen. You can keep one Workspace for editing variables and another with a docked panel for building pages.

Manage Variable Modes and Groups With the Divi AI Agent

You can now set up your site’s variable modes and groups right from the Visual Builder with the Divi AI Agent. Start by asking, “What color and number modes are available, and which ones are the defaults?” You can also ask what value a variable uses in a particular mode.

Ask the agent to create or duplicate a mode, set its variable values, or make it the global default for that variable type. It can also rename, reorder, turn on or off, and delete modes, or reset overrides so they inherit their default values again. For groups, try “Create a Brand Colors group and move Primary, Secondary, and Accent into it.” The agent can list groups and their members, rename or reorder groups, and move variables back to General, including when it deletes a group. You review and confirm these site-wide changes before they’re saved.

You can also ask the agent to apply modes to sections. For example, ask, “Apply Dark Mode to the hero section and set the pricing section’s Numbers mode to Dense.” The agent can make both assignments in one request, and you can see the changes on the canvas before saving the page. You can also ask an element to inherit its parent’s mode, use the global default, or restore the default on an instance of a Component.

Have You Tried Divi Notes?

We recently released Divi Notes, which brings feedback, conversations, and assigned tasks directly into Divi 5. Attach a note to an element, discuss the change with your team, and resolve it when the work is complete. 🎉

It’s also a great way to leave contextual notes for yourself so you never forget a TODO.

A request to update a headline belongs beside that headline. A question about a button belongs with that button. Notes keep those conversations connected to the design, giving everyone a clearer picture of what needs attention.

You can organize feedback with categories, control your notifications, and ask the Divi AI Agent to work through tasks using the attached discussion.

Let’s take a look. 👇

More Divi 5 Updates Are On The Way

The features keep coming, and we aren’t slowing down anytime soon!

If you are enjoying these updates, do us a huge favor by liking this video and leaving a comment. It means a lot to us to see you cheering Divi on, and it’s essential to feed the algorithm and spread the word.

Don’t forget to follow us on YouTube and subscribe to the Divi newsletter so you never miss an update. I’ll see you soon for another Divi 5 feature announcement, which I promise will be right around the corner.

Divi Cyber-monday Sale

It's The Divi Cyber Monday Sale! Save Big For A Limited Time 👇

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Cyber-monday
Premade Layouts

Check Out These Related Posts

Introducing The Icon Manager For Divi 5

Introducing The Icon Manager For Divi 5

Posted on October 22, 2026 in Theme Releases

I’m excited to introduce the Icon Manager for Divi 5, a central place to import your own icons, organize them into collections, and choose which collections appear while you build. 🎉 Bring in custom SVGs or an icon font, create a collection for your client’s brand, and use those icons...

View Full Post

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

👋 It's The Divi
Cyber Monday Sale!
Get The Deal
Before It's Gone!
Join To Download Today