Divi 5 gives you a structured way to define, prepare, and reuse sizing and spacing alternatives during all your internet web site. The usage of Design Variables and Presets, you’ll create a scalable design instrument that’s easy to care for, regulate, and reflect.
In this publish, we’ll show you discover ways to assume in strategies, and we’ll walk you via building an entire sizing and spacing instrument.
Divi 5 is in a position to be used on any new internet web site you create, but it surely indisputably’s really helpful that you just dangle off on migrating provide web sites (for now).
Why Use A Sizing And Spacing System?
Most Divi shoppers want consistency in layouts, margins, and typography. Then again few take a while to stipulate the ones necessities early on. Or in the event you occur to do, you’ve in all probability completed it by the use of a carefully styled Child Theme. Now, you’ll:
Subscribe To Our Youtube Channel
- Define a bunch variable once (like 16px or clamp(16px, 4vw, 48px))
- Assign it to Module/Element Presets
- Or Chance Staff Presets (like spacing or sizing)
- Substitute the variable later and spot changes reflected site-wide
- Use a lot much less CSS overall for slimmer pages
With other internet web site builders, designers normally have a tendency to lean carefully on CSS frameworks to make use of consistent spacing and sizing while the use of a tool they can take from problem to problem. With Divi 5, you’ll create your own “Design Framework” that works during the Divi UI the use of Divi’s Design Variables with no need to touch a single line of code.
Element Dimension, Padding, And Margins
Every web part has 3 portions affecting overall spacing and measurement:
- Element Dimension: The core content material subject material measurement of an element, defined by the use of width and top.
- Padding: Space added inside an element, increasing its clickable area and visual measurement.
- Margin: Space added out of doors an element, pushing it transparent of various portions.
Good Examples For Divi Elements
Most often, this is the way you’ll expect to use padding and margin in Divi:
- Sections normally have best and bottom padding (now not margin) to create vertical spacing within a internet web page.
- Rows often have the good thing about vertical padding, on the other hand in a different way let content material subject material fill them.
- Columns mainly focal point on the margin applied to create column gaps.
- Modules regularly use a bottom margin to clearly separate stacked portions, on the other hand the amount of margin depends on visual groupings.
Divi’s Default Spacing Values
Novices to web design who use Divi virtually undoubtedly don’t even understand that Divi makes some spacing alternatives for you out of the sector. Additional professional designers often regulate the ones to test their targets, on the other hand the ones defaults let most of the people get began their duties briefly.
| Default Spacing (Desktop) | Default Spacing (Tablet) | Default Spacing (Mobile) | |
|---|---|---|---|
| Section | Applies Best and Bottom Padding of 64px | Applies Best and Bottom Padding of 4% | Applies Best and Bottom Padding of 50px |
| Row & Inner Row | Applies Best and Bottom Padding of 32px | Applies Best and Bottom Padding of 2% | Applies Best and Bottom Padding of 30px |
| Row Width | Applies a relative Width of 80% (on the other hand not to Nested Rows) | ||
| Column Hollow* | Applies a 5.5% Hollow between Columns (the use of Margin Right kind on all except for for the last Column throughout the row) | ||
| Module | Varies, some have Bottom Margin applied (% or px value) | ||
| H1-H6 tags | Every heading tag has a Bottom Padding of 10px that is applied on the stylesheet degree with Divi. To change this, custom designed CSS is needed to override this. | ||
| *Flexbox and controls will artwork totally differently, so stay tuned for that | |||
The ones defaults may also be helpful, on the other hand designers often love to set their own spacing necessities. For individuals who wanted to seem what your internet web page would seem to be without the default padding prepare, you’ll do this:
- Go to any part and find the Spacing Chance Staff beneath the Design Tab.
- Open the Default Chance Staff and set the best possible and bottom padding to 0 (0).
- Save the Default Spacing OG Preset to make use of it site-wide to each and every part.
This may most likely show you what your pages seem to be without Divi’s default settings. It won’t look as good, on the other hand you’ll start to see what you need to do to create your own design instrument (otherwise you’ll use Divi’s defaults and make changes as you see fit).
The usage of An 8-Stage Spacing Scale
The 8-point scale is a construction scheme where spacing values are built the use of increments of 8. So, instead of the use of arbitrary values like 13px or 27px, you stick with values like 8, 16, 24, 32, 40, 48, and so on.
This system helps:
- Keep vertical and horizontal rhythm the use of a relentless rubric of sizes
- Be certain that spacing stacks cleanly during breakpoints
- Boost up decision-making (fewer conceivable alternatives = faster design)
You’ll use the scale in px or rem, depending for your selection or type of scale. For example, 16px becomes 1rem when the ground font measurement is 16px.
Mockup of a internet web page that groups your attention to select areas and pushes visitors down the internet web page with vertical spacing
Vertical spacing tells the reader where to focal point. Items clustered in conjunction with tighter spacing are naturally seen as attached to each other. Problems separated by the use of more space indicate a brand spanking new idea.

How To Create A Sizing & Spacing System
A tool for your sizes and spaces consists of two problems: atmosphere variables or tokens that it will likely be used in every single place a design and repeatedly the use of those variables in every single place the internet web site design. Right here’s the way you’ll do that with Divi.
Step 1: Create Amount Variables In The Design Variable Manager
Divi 5 introduces a visual interface for defining reusable numeric values. Every amount variable accommodates:
- An merely recallable determine (e.g., gap-sm, text-h1) that isn’t too long
- A numeric value or function calc() or clamp()
- A CSS unit (px, rem, %, vw, and so on.)
As a result of the Variable Manager, you don’t need to write CSS Variables in a separate stylesheet. You put all of the ones throughout the Design Variable Manager and then select them from the input fields throughout the Visual Builder.
Underneath is a whole starting set of amount variables to test an 8-point design instrument. You do not want to use this, but it surely indisputably gives you an idea of what’s imaginable.
| Identify | px | rem |
|---|---|---|
| space-xxs | 4px | 0.25rem |
| space-xs | 8px | 0.5rem |
| space-sm | 16px | 1rem |
| space-md | 24px | 1.5rem |
| space-lg | 32px | 2rem |
| space-xl | 48px | 3rem |
| space-xxl | 64px | 4rem |
| space-xxxl | 72px | 4.5rem |
| space-xxxxl | 80px | 5rem |
And proper right here’s what it seems like to have this filled out throughout the Variable Manager.

Phrase that the ones spacing values it will likely be helpful in Divi 5’s upcoming Flexbox function
Step 2: Planning Your 8-Stage Spacing System
Your pages will maximum continuously include repeating patterns of portions. Seek for now not extraordinary groups or clusters related to:
- Heading, Paragraph, Button
- Small Heading, Large Heading, Paragraph
- Icon, Paragraph
- Enjoying playing cards containing a couple of portions
Along side your initial wireframes (or placeholder designs), you’ll be capable of create potential patterns. You’ll moreover create problems that don’t fit into patterns that you just’ll should come to a decision discover ways to care for. Then again that is all part of designing.
You’ll do this in Figma or by the use of directly creating a wireframe internet web page with placeholder portions in Divi. Merely get the whole thing you’ll laid out on a internet web page. You’ll use a Chrome Extension known as Measure The whole thing that will help you visualize the spacing (to begin with with Divi’s default spacing) as you get began adjusting those.

To use the extension, activate it from the Chrome Extension toolbar. Then click on on an element on the internet web page you are interested in, focusing the instrument on that part. From there, switch your mouse to measure various aspects between the in recent times determined on part and other portions as you hover over them.
Step 3: Assign Amount Variables To Chance Staff Presets
With a wireframe of a internet web page prepare and a Design Variable in place, you’ll get began making spacing and sizing-related changes on your internet web page. You’ll get began with groups of content material subject material first. Let’s focal point on the heading, paragraph, and button throughout the hero segment.
Wireframe with placeholder content material subject material and font/font sizing in place
Phrase that at this degree, you’ll want to have a number one draft of your Typography prepare already. This accommodates fonts, font sizing, and line top/letter spacing. Without this, you could be very much more likely to rebalance all of your sizing in the event you determine your typographic instrument.
Example of typography sizing alternatives prepare as amount variables
Now, we want to assess what default spacing is being applied throughout the design. To try this, you’ll check out the chart earlier up throughout the publish and read about it with what we’ve going down during the hero segment. Obviously, there’s a segment (#1) and two rows (#2 and #3). For at the moment, we’ll set the Default Row Best/Bottom Padding to 0.

Next, we’ve two alternatives for segment spacing: we can set the padding to 0 and resolve it out later, or we can set some preliminary best and bottom padding throughout the Default Element Preset for Sections to appear something like this:
- Desktop: Best & Bottom Padding set to space-xxxl
- Tablet: Best & Bottom Padding set to space-xxl
- Mobile: Best & Bottom Padding set to space-xl
Then again what you do is completely up to you and the spacing Design Variables you end up setting up (or the use of the defaults if you wish to adopt them as your own). What we’ve at the moment (with Default Row padding set to 0 and custom designed Section padding):

With the release of Flexbox, you’ll have additional alternatives to measurement your Hero and other Sections additional concretely by the use of making use of 1 factor like:
- Section: Flex
- Section Best/Bottom Padding: 0px
- Row Best/Bottom Padding: 0px
- Section Best: min(450px, 90vh)
- Row > Align Items: Middle
Step 4: Module Spacing
The next issue to do is work on the spacing between the modules within Sections/Rows. The name of the game is to make a choice a relentless method of constructing use of spacing to Modules.
You’ve alternatives, you’ll get a divorce the spacing up in a couple of tactics:
- Observe spacing to Margin-Best
- Observe spacing to Margin-Bottom
- Observe spacing frivolously between Margin-Best and Margin-Bottom
It’s very important to needless to say many Modules have a Margin-Bottom applied by the use of default, so I love to counsel you progress with that convention and get began there when atmosphere your spacing paradigm. For starters, you’ll set best/bottom Margins to 0 to seem how the spacing between modules appears to be and now not the usage of a defaults applied to them.
Inside this segment, we applied 0px to the Margin best and bottom to seem these types of Modules without default spacing
Now, we can get began assigning spacing Design Variables to the Margin-Bottom of the ones Modules to create a spacing instrument. We’ll get began with the heading and the body text.
As you get began seeing patterns at the side of your Module spacing, it’s good to want to add the ones spacing conceivable alternatives to the Default Element Presets. And as you need to create spacing rules for portions that deviate, you’ll create Custom designed Element Presets. New portions will use the Default Preset from there, on the other hand you’ll briefly select a custom designed Element Preset for various scenarios.
How Will You Use Divi 5 For Sizing And Spacing?
Creating a spacing and sizing instrument you could be happy with comes the entire manner right down to operating against the fundamentals and leaning into the tools handy. Divi 5 is on its way to growing the de facto design instrument for WordPress web websites. It hits the sweet spot of having numerous flexibility, on the other hand it’s easy to wrap your head spherical.
For individuals who’ve certainly not regarded as growing design strategies, Divi signifies that you’ll consider it from a Design Variable and Preset degree, now not best on an individual module or part degree. That is serving to you repeatedly practice base design alternatives to portions quicker than ever.
Will you be trying out the 8-point instrument, or do you’ve got other problems planned? Moreover, is this your first time captivated with Divi’s Default spacing? It makes designing with Divi computerized, on the other hand for professional designers, it’s good to want to alternate among the ones defaults to succeed in your pixel-perfect vision.
Divi 5 is able for use on any new internet web site you create.
The publish Developing A Sizing And Spacing Machine With Divi 5 Design Variables appeared first on Chic Topics Weblog.
WordPress Maintenance Plans | WordPress Hosting

0 Comments