How To Build A Multi-Level Preset System In Divi 5

by | Jul 11, 2026 | Etcetera | 0 comments

Presets are helpful on their very own. You save a mode, use it on a component, and steer clear of rebuilding the similar design by way of hand. However as soon as a web site grows, remoted presets aren’t sufficient. A button preset, a border preset, a spacing preset, and a colour price might all be similar, but when they don’t seem to be attached, each design exchange nonetheless creates further paintings.

This is the place Divi 5’s multi-level preset device turns into necessary. Design Variables, Option Group Presets, Element Presets, Composable Settings, and Nested Option Presets can paintings in combination as attached layers.

As an alternative of saving disconnected types, you’ll construct a device the place variables feed presets, smaller presets sit down inside of greater presets, and Part Presets convey the ones choices in combination into reusable parts. Stacking then means that you can layer contextual permutations with out making a separate preset for each imaginable use case.

On this information, we’ll stroll thru how the device works, the place Nested Choice Presets are compatible, why Composable Settings issues, and how you can construct a preset construction that turns into more uncomplicated to deal with as your web site grows.

How Divi 5’s Multi-Stage Preset Gadget Works

Divi 5 presets began so that you can save and reuse types. Now they may be able to paintings extra like a attached design device. The speculation is inconspicuous: every layer will have to reference the layer under it.

A colour, font, spacing price, or radius begins as a Design Variable. That variable will get used inside of an Choice Staff Preset. That Choice Staff Preset can be utilized by itself, stacked with different Choice Staff Presets, nested inside of any other Choice Staff Preset, or integrated inside of an Part Preset. The Part Preset then turns into an entire reusable element.

When the root adjustments, the attached layers can replace with it.The most recent piece of the program is Nested Option Presets. The identify can sound like a separate preset kind, however the thought is extra particular than that: a Nested Choice Preset remains to be an Choice Staff Preset at its core. It turns into “nested” when it’s carried out to an choice workforce inside of another choice workforce or inside of a module sub-element.

That issues as a result of many necessary design choices reside under the top-level module. A Name To Motion module has a button. A Blurb has a picture and identify. A Touch Shape has fields and a post button. With Composable Settings, the ones sub-elements can divulge further choice teams akin to Border, Background, Spacing, Sizing, Develop into, or Animation. As soon as the ones nested choice teams are to be had, they may be able to use presets too.

This creates an actual chain of reusable choices. For instance:

  • Design Variable: Radius Huge
  • Choice Staff Preset: Border: Tablet
  • Choice Staff Preset: Button: Number one
  • Nested Choice Preset: Border: Tablet carried out within the Button choice workforce
  • Part Preset: CTA: Promo Card

If the radius adjustments, you’ll replace the variable or the Border preset as soon as. Each and every attached Button preset, nested button border, and CTA preset can practice. That’s the distinction between saving types and construction a device.

The Major Layers In A Divi 5 Preset Gadget

A robust Divi 5 preset device has 3 major layers. Composable Settings and Nested Choice Presets lengthen how deeply the ones layers can succeed in.

1. Design Variables

Design Variables sit down on the basis. They retailer reusable uncooked values akin to colours, fonts, numbers, textual content, hyperlinks, and pictures. Examples come with:

  • Number one Colour
  • Heading Textual content Colour
  • Frame Font
  • Spacing Medium
  • Radius Huge
  • Shadow Blur

Variables will have to describe the function of a price, no longer handiest the worth itself. A variable referred to as Number one Colour nonetheless is sensible if the logo colour adjustments later. A variable named after a hex code does no longer.

Variables are the least visual a part of the device, however they bring about essentially the most weight. In case your presets use variables as an alternative of hardcoded values, international updates grow to be a lot more uncomplicated.

2. Choice Staff Presets

Choice Staff Presets save one workforce of settings, akin to Border, Field Shadow, Spacing, Background, Textual content, Button, Sizing, or Symbol.

They’re extra versatile than Part Presets as a result of they don’t seem to be tied to at least one module kind. A Border preset can also be carried out to any detail that exposes the Border choice workforce. A Spacing preset can also be reused throughout Sections, Rows, Columns, Teams, and modules the place that choice workforce is to be had.

Choice Staff Presets will also be stacked. That implies you’ll observe a couple of preset to the similar choice workforce when you want a base genre plus a contextual variation. With Nested Choice Presets, an Choice Staff Preset too can include any other Choice Staff Preset. That’s what provides this residue extra intensity than a easy stored surroundings.

See also  3 Real-World Examples: Rebranding The Divi 5 Design System With Global Variables

3. Part Presets

Part Presets save the whole design of a selected module or detail kind. A Button Part Preset applies to Button modules. A Blurb Part Preset applies to Blurbs. A Touch Shape Part Preset applies to Touch Paperwork. Each and every Part Preset can come with more than one Choice Staff Presets inside of it, so the whole element nonetheless remains attached to smaller reusable choices.

Setting a default preset in Divi 5

Part Presets will also be stacked. This turns out to be useful when a module wishes a base element genre plus a number of contextual permutations.

Part Presets also are the place defaults grow to be helpful. Each and every module kind may have a default preset. When a default is assigned, new circumstances of that module get started with the preset styling already carried out. That implies a brand new Button, Blurb, Shape, or Staff can arrive nearer on your design device with out handbook styling each time.

The Behaviors That Make Presets Multi-Stage

The layers subject, however the device turns into robust on account of how the ones layers behave in combination. 4 behaviors do lots of the paintings: Nesting, Stacking, Composable Settings, and Nested Choice Presets.

1. Nested Presets

Nested Presets let one preset reside inside of any other preset whilst staying attached to its authentic supply. For instance, a Button Part Preset would possibly come with:

  • Textual content: Button Label
  • Spacing: Button Padding
  • Border: Tablet
  • Field Shadow: Refined

Each and every of the ones smaller Choice Staff Presets can nonetheless be edited from its personal supply. For those who replace Border: Tablet, each Button preset the usage of that border can replace with it.

2. Stacked Presets

Stacked Presets assist you to observe a couple of preset to the similar detail or choice workforce. This is helping you steer clear of growing too many permutations. As an alternative of creating separate presets for each imaginable context, you’ll stay one base preset and layer centered permutations on peak.

For instance, a Textual content module would possibly use:

  • Textual content: Frame Base
  • Textual content: Tag
  • Textual content: Gentle

The bottom preset controls the primary typography. The tag preset provides the label remedy. The sunshine preset adjustments the textual content colour for a depressing part. Stacking assists in keeping your preset library smaller. You’ll be able to reuse one base genre and observe handiest the contextual distinction when wanted.

3. Composable Settings

Composable Settings means that you can permit further design choice teams for module sub-elements.

That is necessary as a result of many modules are product of smaller portions. A Blurb has a picture, identify, and frame textual content. A Name To Motion has a button. A Touch Shape has fields. With out Composable Settings, a few of the ones smaller portions won’t divulge the design controls you want.

With Composable Settings, you’ll toggle on further choice teams for the ones sub-elements. For instance, you’ll permit:

  • Border for a Blurb symbol
  • Sizing for a CTA button
  • Background for frame textual content
  • Develop into for an icon
  • Animation for a nested symbol

Composable Settings will also be used inside of presets. For those who permit particular nested choice teams inside of a preset, the ones teams can seem robotically when that preset is used. That assists in keeping the design panel cleaner whilst nonetheless giving reusable get admission to to deeper styling controls.

4. Nested Choice Presets

Nested Choice Presets are the place Composable Settings and presets meet. After Composable Settings exposes a nested choice workforce, that choice workforce can use a preset. For instance, should you permit Border controls for a CTA button sub-element, you’ll observe the similar Border: Tablet preset you utilize in different places.

That is the important thing difference: a Nested Choice Preset isn’t a random further layer floating out of doors the device. It’s an Choice Staff Preset getting used inside of a nested choice workforce. That implies the similar reusable choice can succeed in extra puts.

Why Preset Order Issues

A multi-level preset device works perfect when it’s constructed from the ground up:

  • Step 1: Outline Design Variables.
  • Step 2: Create core Choice Staff Presets that use the ones variables.
  • Step 3: Permit Composable Settings the place sub-elements want reusable controls.
  • Step 4: Practice Nested Choice Presets to these nested choice teams.
  • Step 5: Construct Part Presets that come with your Choice Staff Presets and Nested Choice Presets.
  • Step 6: Use stacking for contextual permutations.
  • Step 7: Check the device with international adjustments.

This order assists in keeping the device attached. For those who skip the root, your presets might nonetheless save time, however they are going to no longer replace as cleanly later.

How To Construct A Multi-Stage Preset Gadget In Divi 5

Now let’s stroll throughout the procedure from the root up.

Step 1: Outline Your Design Variables

Open the Variable Supervisor from the left sidebar of the Visible Builder. That is the place your reusable values reside. Divi helps variable sorts akin to Colours, Fonts, Numbers, Photographs, Textual content, and Hyperlinks.

Variable Manager in Divi 5

Get started with role-based colour variables. Divi contains default colours akin to Number one, Secondary, Frame, Heading, and Hyperlink. Replace the ones values to check your emblem earlier than growing further variables.

If the design wishes extra colours, upload them with names that describe their function. Examples come with:

  • Accessory
  • Floor
  • Muted Textual content
  • Border Gentle
  • Luck
  • Caution

Adding a global color variable in Divi 5

Then outline the values you understand will repeat around the web site. Beneath Fonts, set your Heading and Frame fonts. Beneath Numbers, upload spacing values, radius values, widths, and different reusable measurements. Stay this checklist centered. Variables are most respected once they constitute values you’ll use time and again throughout presets.

See also  Introducing the CSS Grid Editor for Divi 5

The purpose is to create a competent supply of reality earlier than construction presets on peak of it.

Step 2: Create Your Core Choice Staff Presets

After variables are in position, create the Choice Staff Presets you’ll reuse maximum ceaselessly. Those might come with:

  • Textual content: Heading Huge
  • Textual content: Frame Common
  • Button: Number one Stuffed
  • Button: Secondary Define
  • Spacing: Segment Huge
  • Spacing: Card Padding
  • Border: Card
  • Border: Tablet
  • Shadow: Refined
  • Background: Floor

To create an Choice Staff Preset, open a component within the Visible Builder and move to the Design tab. To find the choice workforce you wish to have to save lots of, hover over its label, and click on the preset icon. Make a selection Upload New Preset if you wish to construct it from scratch, or New Preset From Present Kinds if the present detail already has the way you wish to have to save lots of.

The necessary phase is how you place the values. When a box will have to keep international, reference a Design Variable as an alternative of typing a static price. For instance, a heading preset would possibly use a Font Variable, a Quantity Variable for dimension, and a Colour Variable for textual content colour.

A Button preset would possibly use the Number one Colour variable for its background.

Using a color variable in a Button preset in Divi 5

A Border preset would possibly use a Quantity Variable for radius.

Using a radius variable in a Border preset in Divi 5

That is what makes the device maintainable. The Choice Staff Preset does no longer simply retailer a price; it shops a attached choice.

Step 3: Use Composable Settings For Sub-Components

Subsequent, come to a decision which module sub-elements want deeper styling controls.

For instance, inside of a Blurb module, it’s your decision extra keep an eye on over the picture, identify, icon, or frame textual content. Within a Name To Motion module, it’s possible you’ll need to genre the nested button with the similar presets you utilize on standalone buttons. Within a Touch Shape, it’s your decision box borders, spacing, or focal point types to practice the similar device as the remainder of the web site.

Composable Settings means that you can divulge the ones further choice teams. To make use of it, open a module, move to the Design tab, hover over the sub-element choice workforce, and click on the Toggle Choices icon. Then permit the choice teams that sub-element wishes. For instance:

  • Permit Border for a CTA button.
  • Permit Sizing for a Blurb symbol.
  • Permit Spacing for a nested identify.
  • Permit Background for a kind box workforce.
  • Permit Develop into or Animation for a visible sub-element.

Simplest permit the choice teams you in truth want. The purpose isn’t to make each sub-element display each imaginable surroundings. The purpose is to show the controls that are meant to take part on your design device.

Step 4: Practice Nested Choice Presets

As soon as Composable Settings exposes a nested choice workforce, observe your present Choice Staff Presets to it. For instance:

  • Practice Border: Tablet to a nested CTA button.
  • Practice Border: Card to a Blurb symbol.
  • Practice Spacing: Compact to a sub-element container.
  • Practice Textual content: Heading Small to a nested identify.

At that time, the ones presets serve as as Nested Choice Presets as a result of they’re getting used inside of nested choice teams.

This assists in keeping sub-element styling attached to the similar device as the remainder of your web site. A border preset can keep an eye on a standalone Button, a nested CTA button, and a kind box border. A spacing preset can keep an eye on a module wrapper and a nested sub-element. The reusable choice remains in a single position.

Step 5: Construct Part Presets That Come with Your Preset Gadget

As soon as the core Choice Staff Presets and Nested Choice Presets are able, use them inside of Part Presets. Part Presets flip smaller styling choices into entire reusable parts. For instance, an Electronic mail Choose-In module would possibly use:

  • Spacing: Card Padding
  • Background: Floor
  • Textual content: Heading Medium
  • Textual content: Frame Common
  • Button: Number one Stuffed
  • Border: Card
  • Shadow: Refined

Open the module, observe the related Choice Staff Presets throughout its Design tab, permit any wanted Composable Settings for sub-elements, observe Nested Choice Presets the place wanted, then save the module as an Part Preset from the preset menu within the top-right nook of the settings panel.

Make a selection New Preset From Present Kinds.

The Part Preset now carries the ones smaller preset choices with it.

Option Group Presets included inside an Element Preset in Divi 5

A Blurb Part Preset follows the similar good judgment. Practice the suitable Name Textual content preset, Frame Textual content preset, Spacing preset, Border preset, and any nested presets wanted for the picture or identify, then save the Blurb as an Part Preset.

Blurb Element Preset using nested Option Group Presets in Divi 5

Whilst you edit one of the crucial nested Choice Staff Presets later, each Part Preset the usage of it could possibly replicate that fluctuate.

The similar manner works for Touch Paperwork, Name To Motion modules, Pricing Tables, Teams, Photographs, and another module you utilize ceaselessly.

Contact Form Element Preset using a Button Option Group Preset in Divi 5

After your core Part Presets are able, open the Preset Supervisor and set defaults for the module sorts you utilize maximum. That manner, each new example begins nearer on your device.

Step 6: Practice Stacked Presets For Permutations

Now not each design variation wishes its personal complete Part Preset. A greater manner is to create a base preset, then stack smaller presets on peak when the context adjustments.

For instance, a Textual content module may just get started with a base textual content preset. Then you should stack a tag-style preset and a dark-section colour preset when wanted.

Use stacking for centered permutations akin to:

  • Gentle textual content on darkish backgrounds
  • Higher spacing in hero sections
  • Compact spacing in sidebars
  • Accessory borders on featured playing cards
  • Selection button sizes
  • Particular hover remedies
See also  The Trade Requirement Record: What It Is and The way to Write It [+5 Templates]

Stacked presets let you steer clear of making a bloated library of just about similar types. The bottom preset remains shared, whilst the difference handles handiest the variation.

Use the similar good judgment with Choice Staff Presets. If a base Button preset handles the primary button genre, a 2nd Button preset can layer on a dimension variation, a dark-section variation, or a hover remedy. If the ones presets overlap, the later preset controls the overlapping price.

Step 7: Check The Gadget With A World Trade

After the device is constructed, check it. Open the Variable Supervisor and alter a price that more than one presets reference. For instance, exchange the Number one Colour, a spacing price, or a radius price.

Then overview your web page. Components the usage of presets attached to that variable will have to replace. You’ll be able to additionally check on the preset point. Edit a core Choice Staff Preset, akin to Border: Card or Button: Number one Stuffed, and test the place that fluctuate seems.

If one thing does no longer replace, that typically method one among 3 issues:

  • The price was once hardcoded as an alternative of attached to a variable.
  • The detail isn’t the usage of the predicted preset.
  • A neighborhood override is taking precedence over the preset price.

That’s not a failure. It’s an audit. It displays the place the device nonetheless has gaps.

Managing Your Gadget With The Preset Supervisor

The Preset Manager is the central position to control your preset device.

Open it from the left sidebar of the Visible Builder. From there, you’ll create, edit, replica, reorder, delete, import, export, and assign default presets with out opening every module separately.

When enhancing a preset used throughout many facets, use the Preset Preview panel. It will provide you with a more secure position to regulate the preset earlier than saving adjustments that can have an effect on the web site globally. The Preset Supervisor may be helpful for preserving your library blank. Take away presets you now not use, replica presets when you want a managed variation, and reorder necessary presets so they’re more uncomplicated to seek out.

Export Variables And Presets For Long run Initiatives

As soon as your device is entire, export it so you’ll reuse it on long run builds. Design Variables and Presets can also be exported from their respective managers. The Variable Supervisor exports your variables, whilst the Preset Supervisor exports your presets. In combination, the ones information lift the reusable basis of your design device into any other Divi 5 web site.

That is particularly helpful for companies, freelancers, and groups that need each new construct to start out from the similar design basis, somewhat than rebuilding variables and presets from scratch.

Highest Practices For A Multi-Stage Preset Gadget

A preset device will have to make design paintings more uncomplicated, no longer more difficult to control. Stay the construction transparent from the start.

  • Identify by way of function: Use names like Number one Colour, Border: Card, and Button: Number one Stuffed as an alternative of names tied to at least one web page.
  • Construct from the ground up: Get started with variables, then Choice Staff Presets, then Part Presets, then layouts.
  • Stay presets centered: One preset will have to have a transparent activity. Steer clear of growing a number of presets that handiest vary by way of one hardcoded price.
  • Use stacking for context: Stack small variation presets as an alternative of making a brand new complete preset for each context.
  • Use nesting for construction: Let smaller Choice Staff Presets feed greater Choice Staff Presets and Part Presets.
  • Use Composable Settings deliberately: Reveal sub-element choice teams once they wish to take part within the design device.
  • Deal with Nested Choice Presets as attached OGPs: Use them to convey the similar preset choices into nested choice teams as an alternative of styling sub-elements by way of hand.
  • Set defaults for repeated modules: Default presets cut back handbook styling when including new modules.
  • Audit native overrides: Use overrides when wanted, however steer clear of turning them into hidden one-off design methods.
  • Export your device: Save variables and presets so your design basis can commute to long run initiatives.

Construct A Preset Gadget That Scales With Your Web site

The true price of Divi 5’s multi-level preset device isn’t just pace. It’s consistency.

Variables outline the values. Choice Staff Presets flip the ones values into reusable design choices. Nested Choice Presets convey those self same choices into nested choice teams. Part Presets flip attached choices into entire parts. Stacked Presets care for context with out bloating the library. Composable Settings we could deeper module portions sign up for the similar workflow.

When the ones layers are attached, your web site turns into more uncomplicated to replace since the device is aware of the place every choice lives. That implies a colour exchange, spacing adjustment, border replace, or button refresh can transfer throughout the design from one supply as an alternative of changing into a module-by-module cleanup activity. Construct the device as soon as, stay it arranged, and each web page after that turns into more uncomplicated to design, replace, and deal with.

The publish How To Build A Multi-Level Preset System In Divi 5 seemed first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!