Tutorials

Divi 5: How to Use Variables and Presets Tutorial

Divi 5: How to Use Variables and Presets Tutorial

The Short Answer

Divi 5 design variables store single reusable values like brand colors and fonts, while presets save whole groups of style settings such as a Primary Button. Create variables in the Variable Manager, apply them with the Dynamic Content icon, and create presets from the Preset dropdown to restyle a whole website in one change.

What are variables and presets in Divi 5? Variables store single reusable values, like your brand colors and fonts. Presets save whole groups of style settings, like “Primary Button”. Together, they let you restyle an entire website by changing one thing. Here’s how to use both.

Divi menu names can change slightly between updates, so if a label looks a little different on your screen, check the official Design Variables (opens in a new tab) and Preset Manager (opens in a new tab) guides.

A quick tour of the Divi 5 interface

Open any page with Pages > Add New (or edit an existing page) and click Use Divi Builder. Here’s where everything lives:

  • Top bar: device previews (Desktop, Tablet, Phone), zoom, undo and redo, History, Save, Preview and Exit.
  • Left sidebar: your builder tools, including Layers View, the Inspector, the Variable Manager, the Preset Manager, the Command Center and Wireframe View.
  • Canvas: the middle of the screen, where you see and edit your page.
  • Settings panel: opens on the right when you click a section, row, column or module, with Content, Design and Advanced tabs.

The Command Center works like a search bar for the builder. You can use it to add elements, jump to settings or open panels.

What is the difference between variables and presets?

FeatureDesign variablesPresets
What it storesOne value: a color, font, number, text, image or linkA group of style settings
Example“Brand Blue” = #0a84ff“Primary Button” (color, font, padding, border and hover style)
Applied withThe Dynamic Content icon on a fieldThe Preset dropdown (or an option group’s Preset icon)
Change it once and…Every field using it updatesEvery element using it updates

Step 1: Open the Variable Manager

With the Visual Builder open, click the Variable Manager icon in the left sidebar. You’ll see tabs for Colors, Fonts, Numbers, Text, Images and Links. Hover over the icons to see their names, as the label may vary slightly.

Step 2: Create a color variable

Click the Colors tab, then click + Add Global Color. Type a name that describes the job, such as “Brand Blue”, then type a value or pick it with the color picker. Click Save Variables to commit your changes. Repeat this for your other brand colors, and for your fonts and spacing numbers.

Step 3: Apply a variable to a setting

Open the settings of any section, row, column or module, and go to an option like Background Color or Text Color. Hover over the field until the Dynamic Content icon appears, click it, and choose your variable. The field now uses the variable instead of a fixed color. Click the variable chip to detach, replace or manage it.

Step 4: Create an element preset

Add a module, like a Button, and style it how you like in the Design tab. At the top of its settings, open the Preset dropdown and choose New Preset From Current Styles. (Or click Add New Preset to start from the module’s defaults.) Give it a name like “Primary Button”, and click Save Preset.

Step 5: Apply a preset to other elements

On any other button, open its settings, open the Preset dropdown and pick “Primary Button”. It instantly takes on the saved style. If you star a preset in the dropdown, it becomes the default, and new modules of that type start with it.

Step 6: Update a preset everywhere at once

Open a module that uses the preset, open the Preset dropdown, hover over the preset’s name and click the gear icon. Change the styles, then click Save Preset. Every element using that preset updates across your whole website. That’s the magic of design systems!

What are option group presets?

Element presets cover one kind of module, like buttons. Option group presets save one section of settings, such as Border, Spacing or Typography, so you can reuse it on any element. For example, you could save a “Rounded Card” border and shadow, and use it on blurbs, images and rows. To create one, go to the Design tab, hover over a group’s title, click the small Preset icon and choose Add New Preset. You can manage every preset in the Preset Manager in the left sidebar.

Common questions about variables and presets

Do I need variables and presets to build a Divi website?

No, but they save a huge amount of time. Setting up your brand colors, fonts and button styles once means a client rebrand takes minutes instead of hours.

Can I reuse my variables and presets on another website?

Yes. The Preset Manager has import and export tools, so you can build a starter kit and reuse it on future client websites.

What happens if I delete a variable that’s in use?

Deleted variables are archived until you save, and can be restored. Check where a variable is used before you remove it for good.

New to Divi 5? Start with how to build a page from scratch, or get Divi (opens in a new tab) and try it on a staging website.