r/divi • Elegant Themes • 3d ago

Discussion Introducing Variable Modes and Groups

https://www.youtube.com/watch?v=kjwt8uBrFdQ

Introducing Variable Modes and Groups for Divi 5! 🎉 Give your variables different values across your site and organize them by purpose so they’re easy to find while you build.

Say your homepage has a light palette, but you want a dark hero. In Variables, add a Dark Mode with alternate values for your background, text, and link colors. Then open the hero’s settings and select Dark Mode under Variable Modes. The headings and buttons inside can inherit that palette wherever they use those color variables.

You can do the same with numbers. Create a Dense mode with tighter padding and gaps, then apply it to a pricing section while keeping the rest of the page at its regular spacing.

As your variable collection grows, group colors under headings such as Surfaces, Typography, and Borders. Those labels show up in the color picker, right where you need them.

4 Upvotes

0 comments sorted by