Design methods fail both as a result of they don’t account for each and every risk or as a result of they change into too difficult to regulate. A regular web page wishes kinds for headings, frame textual content, buttons, and bins (to call a couple of). Multiply the ones throughout mild and darkish backgrounds, other sizes, and different use instances, and you find yourself managing loads of CSS categories/presets that overlap, warfare, and change into unimaginable to take care of.
Stacked and Nested Presets in Divi 5 assist resolve this drawback through isolating issues. As an alternative of making a preset for each and every imaginable mixture (H1 Darkish Daring, H1 Gentle Daring, H1 Darkish Standard, H1 Gentle Standard, and so forth), you create modular kinds that stack in combination.
This educational builds a whole design device from scratch, then applies it to a homepage with 4 distinctive sections. You are going to create Design Variables for spacing, typography, and hues, construct Choice Workforce Presets for layouts and styling, and nest the ones Choice Workforce Presets within Part Presets for quick deployment. The most efficient a part of that is that you’ll be able to export and import a majority of these presets and variables to make use of and alter on each and every new web page construct.

The primary 5 portions of this educational create round 40 Design Variables and dozens of Presets. Partially six, we can upload modules to the web page and construct out an actual design. To totally apply this educational, you are going to want between one and 3 hours, relying in your revel in with internet design and/or Divi 5.
Contents
- 1 Section 1: Developing Design Variables
- 2 Section 2: Construction Structure Presets For Sections And Rows
- 3 Section 3: Construction Typography Presets
- 4 Section 4: Construction Button Presets
- 5 Section 5: Odds And Ends
- 6 Section 6: Construction The Homepage
- 7 Get started Construction In Divi 5 These days!
Section 1: Developing Design Variables
Design Variables retailer values you reference all the way through your web page. While you replace a variable, each and every component the usage of that variable updates robotically. The variables proven right here supply a basis that you’ll be able to extend as your design device grows.
Typography Dimension Variables
Open the Variable Supervisor through clicking the variables icon within the left sidebar. Create Quantity variables for every typography degree the usage of clamp() purposes for fluid sizing. The 3 values in every clamp constitute the minimal length, the most well liked scaling calculation, and the utmost length.
Create the next Quantity variables for headings:
- H1 – Huge with the price clamp(3.8rem, 3.7rem + 0.8vw, 4.2rem) supplies a Hero-sized typography possibility if you wish to have one thing larger in particular instances.
- H1 makes use of clamp(3.3rem, 3.1rem + 0.7vw, 3.7rem) for template web page H1 headings.
- H2 makes use of clamp(2.7rem, 2.6rem + 0.6vw, 3.1rem) for number one segment headings.
- H3 makes use of clamp(2.3rem, 2.1rem + 0.5vw, 2.6rem) for subsection headings.
- H4 makes use of clamp(1.9rem, 1.8rem + 0.4vw, 2.2rem) for smaller content material divisions.
- H5 makes use of clamp(1.6rem, 1.5rem + 0.3vw, 1.8rem) for minor headings.
- H6 makes use of clamp(1.3rem, 1.2rem + 0.3vw, 1.5rem) for the smallest heading degree.

Remember to click on “Save Variables” incessantly.
Create two frame textual content length variables that will probably be used for many frame textual content and buttons:
- Frame Textual content makes use of clamp(1.1rem, 0.9rem + 0.2vw, 1.3rem) for same old paragraph content material and buttons.
- Frame Textual content Small makes use of clamp(0.9rem, 0.8rem + 0.2vw, 1.1rem) for captions, metadata, and secondary content material, together with smaller buttons.

Typography Line Peak Variables
Line Peak will supplement your font alternatives and your font sizes for each headings and paragraphs. For this construct, I created 5 variables that are meant to paintings throughout the entire web page:
- Line Peak (H1) makes use of a unitless worth of 1.2 and can paintings for H1 – Huge and H1 font sizes.
- Line Peak (H2-H3) makes use of a unitless worth of 1.3.
- Line Peak (H4-H6) makes use of a unitless worth of 1.4.
- Line Peak Frame makes use of a unitless worth of 1.7.
- Line Peak Frame Small makes use of a unitless worth of 1.6.

Colour Variables
For a transformation of tempo (we’ll return to numbers in a 2d), arrange your Colour variables, isolating same old colours from mild variants used on darkish backgrounds.
- Number one makes use of #644634.
- Secondary makes use of #425347.
- Heading Textual content makes use of #190f06 for same old heading colour on mild backgrounds.
- Frame Textual content makes use of #190f06 at 80% Opacity for paragraph content material on mild backgrounds.
- Heading Textual content Gentle makes use of #f5f5f5 for headings on darkish backgrounds.
- Frame Textual content Gentle makes use of #f5f5f5 at 80% Opacity for frame content material on darkish backgrounds.
- Frame Textual content Gentle Hyperlink makes use of #dcebe1 at 90% Opacity for hyperlinks inside frame content material on darkish backgrounds.
- Off-white makes use of #f5f5f5 for tertiary buttons and subdued components. In case you assume it’s much less complicated to simply use the Heading Textual content Gentle for this, you’ll be able to skip this variable.
- Accessory makes use of #473f38, which we can use for darkish background sections.

Relative Colour Variables
It’s useful to have colour diversifications for borders, hover results, and different issues as they rise up.
- Number one Gentle makes use of your number one colour with HSL filters of –15% Saturation and 30% Lightness.
- Number one Darkish makes use of your number one colour with HSL filters of –15% Lightness.
- Secondary Gentle makes use of your secondary colour with HSL filters of –5% Saturation and 30% Lightness.
- Secondary Darkish makes use of your secondary colour with HSL filters of –10% Saturation and –15% Lightness.
I do that for no less than number one and secondary colours, however if in case you have different colours you employ often, you’ll be able to create diversifications for them too.
Spacing Variables
Spacing variables take care of padding, margins, and gaps all the way through your format. Having a couple of sizes means that you can take care of proportional relationships throughout your design device. Additionally, you’ll use those incessantly, so having them arrange at the start is a big assist.
Create the next Quantity variables:
- Spacing – XSmall makes use of clamp(0.7rem, 0.6rem + 0.6vw, 1.1rem) for tight spacing between similar components.
- Spacing – Small makes use of clamp(1.3rem, 1.2rem + 0.3vw, 1.5rem) for compact inside padding.
- Spacing – Medium makes use of clamp(1.9rem, 1.8rem + 0.4vw, 2.2rem) for same old component separation.
- Spacing – Common makes use of clamp(3.3rem, 3.1rem + 0.7vw, 3.7rem) for at ease segment padding.
- Spacing – Huge makes use of clamp(3.9rem, 3.7rem + 0.9vw, 4.5rem) for beneficiant vertical rhythm.
- Spacing – Fluid makes use of clamp(24px, 6vw, 90px) for responsive gutters that scale considerably between cellular and desktop.
I in my opinion like clamp() values for spacing that fit carefully with textual content length. However many of us will use directly rem values and use them throughout breakpoints. No matter works for you.
For buttons, I generally tend to favor particular padding values over extra normal ones.
- Button Vertical Padding makes use of clamp(0.6rem, 0.6rem + 0.2vw, 0.7rem) for a standard peak button.
- Button Vertical Padding Small makes use of clamp(0.4rem, 0.6rem + 0.2vw, 0.6rem) when you wish to have a tighter button.
- Button Horizontal Padding makes use of clamp(1.6rem, 1.5rem + 0.3vw, 1.8rem) to take care of constant left/proper padding throughout all buttons. You’ll upload a small variation in the event you like.

Structure Variables
Those subsequent ones are nice for atmosphere in your Sections and Rows. The use of them as design variables means that you can alter the width of your web page content material at any time throughout your design procedure. Create those variables:
- Content material Width makes use of 100% as the bottom width for rows.
- Content material Max Width makes use of 1440px to cap content material width on massive monitors.
- Content material Max Width – Slim makes use of 900px for smaller content material options and is sweet for selection and text-only callouts.

Border Radius Variables
This design will use two other border radius values. To stay issues constant throughout the entire construct, I’ll set them up as Design Variables.
- Symbol Border Radius makes use of 21px.
- Button Border Radius makes use of a easy 7px atmosphere for reasonably rounded buttons.

Default Font
Set your default Fonts to no matter you like. I will be able to be the usage of:
- Heading font set to Inter
- Frame font set to Inter Tight

One remaining reminder to save lots of your Design Variables
Section 2: Construction Structure Presets For Sections And Rows
The whole lot you construct in Divi is within Sections and Rows. Developing default presets for those, together with a couple of diversifications, will upload consistency and varnish for your websites.
Segment Structure Presets
Sections are simple to arrange. An very important element of sections is making a web page “gutter.” That is your padding implemented to the left and proper facets of your display screen and is incessantly maximum vital at smaller breakpoints. We will be able to additionally configure flex settings so rows stack vertically somewhat than horizontally.
Segment Gutters
Create a Spacing Choice Workforce Preset named Gutter. Set the Left/Proper Padding to Spacing – Fluid.
Make a 2d Spacing Choice Workforce Preset and make contact with it Gutter None or No Gutter. Set Left and Proper Padding set to 0px. Use this for full-bleed sections the place Row content material must lengthen to display screen edges.

Segment Flex Settings
Sections stack Rows within them vertically through default. Divi additionally assigns default hole, justify, and align values that we will be able to customise for our web page.
Within the Segment, consult with the Structure possibility crew, and create an Choice Workforce Preset known as Flex Route Column. Set the Show to Flex, Flex Route to Column, Align Pieces to Heart, and Vertical Hole to Spacing – Common.

Segment Background Presets
Background presets assist you to temporarily change between mild and darkish segment kinds. Within the Segment’s Background possibility crew, create an Choice Workforce Preset named BG – Darkish. Set the Background Colour to make use of the Accessory Colour Variable.

Create BG – Gentle with Background Colour set to white (#ffffff) or your most well-liked mild background colour.
Create BG – Off-white with Background Colour set to a delicate Off-white or mild grey (#f5f5f5 works neatly). This gives visible separation between sections with out the top distinction of darkish backgrounds.
Be sure you have a clean Background Choice Workforce Preset set and set as your default.
Segment Part Presets
Now that we have got the entire granular Choice Workforce Presets created, we will be able to mix them so they’re simple to deploy in combination. We will be able to create diversifications for various background wishes.
Edit the Default Segment Preset. Upload the Gutter preset from Spacing, the Flex Route Column preset from Structure, and the BG – Gentle preset from Background and save. You’ll identify it Segment – Gentle. This provides each and every new segment right kind gutters, vertical stacking, and a blank mild background.
Do the similar for a brand new Segment Part Preset named Segment – Darkish. Upload the Gutter preset from Spacing, Flex Route Column from Structure, and BG – Darkish from Background.
And however for a brand new Segment Part Preset named Segment – Impartial, following the similar development, however the usage of BG – Off-white for the background. This works neatly for alternating sections that want visible separation with out going absolutely darkish.
Create a brand new Segment Part Preset named Segment – Complete Bleed (or No Gutter, Fullscreen—no matter identify is sensible to you). Upload No Gutter from Spacing, Flex Route Column from Structure, and BG – Gentle from Background. Use this when row content material must lengthen to display screen edges.
You presently have 4 segment diversifications. The default handles 70% of instances robotically, whilst Darkish, Impartial, and Complete Bleed choices are waiting when you wish to have them. After all, you have to create different diversifications, however this may increasingly a minimum of get you going.
Row Presets
Issues get somewhat extra attention-grabbing with Rows, as Rows constrain content material width inside sections.
Row Width Presets
With a Row, open its Default Row Part Preset and navigate to its Sizing possibility crew. Set the Width to 100% variable and Max Width for your Content material Max Width variable (1440px). Identify the default preset Row – Same old Width.
Create some other Row Part Preset named Row – Slim with Width at 100% and Max Width set for your Content material Max Width – Slim variable (900px). This focuses consideration on text-heavy content material blocks and provides visible selection for your layouts.
Create Row – Fullwidth with Width set to 100% and Max Width set to none. This row expands to fill the to be had house within the segment which comes in handy for full-bleed photographs or edge-to-edge content material.
You presently have 3 row diversifications waiting to deploy. The Same old Width preset applies robotically to new rows, whilst Slim and Complete choices are a click on away when you wish to have them.
Row Layouts
Row format presets keep watch over how Columns organize themselves throughout the Row. You might want to simply create a half-dozen flex layouts and two or 3 grid layouts for a complete web page design. Alternatively, we’ll use a Divi superpower to make this even more effective.
Construction Layouts are preconfigured Flex and Grid layouts. You’ll call to mind them like presets since they’re sitting there ready so that you can use them. However as a substitute of desiring to create them, we did that for you. There are two techniques of atmosphere those.
The primary approach is whilst you upload a brand new Segment for your web page, you are going to be requested to select a Construction Structure. At the most sensible are other Flex layouts, and at the backside are preconfigured Grid layouts.
The second one approach is whilst you click on a Row and spot its settings panel at the proper. Within the Content material tab, you’ll realize the Part possibility crew. Open that, and you are going to see a button categorised Follow Construction Template. Clicking that can assist you to trade the construction to any of the to be had choices.
Those behave so much like presets, however they’re integrated construction templates somewhat than user-created presets.
Column Presets
We received’t spend an excessive amount of time right here, however there’s a lot that you have to do. Click on on a Column at the web page to expose its Settings panel. Cross to Design > Structure and create a brand new Choice Workforce Preset. Identify it Flex Route Row and ensure it’s set to Show Flex and Flex Row.
This must supplement the Flex Route Column preset made above within the Sections phase. In case you sought after to do extra right here, you have to create Choice Workforce Presets for more than a few Hole sizes and Align-items (get started, middle, and finish).
Container Padding Presets
As you recall, we’ve spacing variables waiting to head, however we haven’t added many presets with them. Since Spacing is a shared possibility crew, you’ll in finding your self the usage of those so much.
Open a Row’s settings and navigate to the Spacing possibility crew underneath the Design tab. Create a brand new Choice Workforce Preset named Container Padding. Set all 4 Padding values (Best, Backside, Left, Proper) for your Spacing – Common variable.
Create some other Choice Workforce Preset named Container Padding Huge. Set all 4 Padding values for your Spacing – Medium variable. This will provide you with a extra beneficiant possibility for hero-style bins or content material spaces that get pleasure from further respiring room. The method is the same to what you simply did, solely with a special variable decided on. You’ll repeat this for every of your Spacing Design Variables as you would like.
Section 3: Construction Typography Presets
Typography in Divi comes to two number one modules: the Textual content Module for frame content material and wealthy textual content headings, and the Heading Module for standalone headings. Each and every wishes its personal preset technique.
My opinion is that typography is the place Divi’s Preset Design Gadget truly begins to turn its energy and versatility.
Heading Module
The Heading Module means that you can set kinds in one Heading Choice Workforce. That suggests we don’t have to fret about frame textual content kinds but. So, we can put our more than a few heading sizes, heading colour choices, and CSS laws into Choice Workforce Presets, after which collect our most-used mixtures into at hand Part Presets.
Heading Dimension Presets
Upload seven Heading modules for your web page and provides every some customized content material. Click on the primary one to expose its settings, then navigate to the Heading Textual content possibility crew underneath the Design tab.

Click on the Choice Workforce Preset chip within the Heading Textual content possibility crew, then create a brand new preset named H1 Huge Dimension. Set the Font Dimension for your H1 – Huge variable and Line Peak to the 1.2 variable.
Create presets for the remainder heading ranges. Each and every makes use of its corresponding length and line peak variables:
- H1 Dimension makes use of the H1 variable with the 1.2 line peak variable.
- H2 Dimension makes use of the H2 variable with the 1.3 line peak variable.
- H3 Dimension makes use of the H3 variable with the 1.3 line peak variable.
- H4 Dimension makes use of the H4 variable with the 1.4 line peak variable.
- H5 Dimension makes use of the H5 variable with the 1.4 line peak variable.
- H6 Dimension makes use of the H6 variable with the 1.4 line peak variable.
Heading Colour Presets
Nonetheless within the Heading Textual content possibility crew, create Heading Gentle with Textual content Colour set for your Heading Textual content Gentle variable. Use this when headings seem on darkish backgrounds.
The darkish heading colour was once already set once we selected a depressing textual content colour for the Heading Textual content Design Variable. So, this Gentle preset stacks along with your length presets to create simple diversifications. An H2 on a depressing segment makes use of H2 Dimension + Heading Gentle. The similar heading on a mild segment solely makes use of H2 Dimension.
Heading CSS Preset
Create Textual content Wrap Steadiness with the CSS rule text-wrap: stability; within the Primary Part box. Balanced wrapping works higher for headings and brief textual content blocks, distributing phrases extra lightly throughout traces.
Create Textual content Name Case with the CSS rule text-transform: capitalize; within the Primary Part box. This capitalizes the primary letter of every phrase robotically.
In case you don’t assume you’ll like or want those CSS presets, this is wonderful, you simply received’t come with them within the Part Presets beneath.
Developing Heading Part Presets
Part Presets package deal your most-used mixtures of Choice Workforce Presets for fast deployment. Click on the Part Preset chip on the most sensible of the Heading module settings.
Create Part Presets for every of your heading sizes (‘H1 – Huge’ thru ‘H6’). So, for H2, give it a reputation of H2 Dimension and assign the Choice Workforce Preset for H2. Do this for every degree.
Create an Part Preset named Gentle and Nest the Heading Gentle Choice Workforce Preset inside it.
Finally, create two further Part Presets for balanced textual content wrapping and capitalization. You’ll identify them the similar factor you probably did at the possibility crew degree.

Do that for each the Textual content Wrap Steadiness and Textual content Change into Capitalize Choice Workforce Presets
Relying in your choice, you could wish to reorder the presets as they’re introduced within the Part Preset dropdown. To do this, we will be able to use the Preset Supervisor to reorder them as you prefer.
I moved all of those to Part Presets, although they include not anything however our Choice Workforce Presets, as a result of they’re more uncomplicated to get admission to. To make use of those presets, click on at the component you need to genre and stack the Part Presets. You’ll use the Choice Workforce Presets, however that calls for clicking a component, then opening the right kind tab, after which clicking the right kind Choice Workforce Preset icon once more. That is only a shortcut and my choice.
Textual content Module
There will probably be somewhat overlap right here, for the reason that Textual content module too can output headings, however it additionally brings a couple of further styling wishes.
Within the Textual content Module, we can create Choice Workforce Presets for frame textual content length, frame textual content colour, frame textual content font weight, and a line of CSS. We will be able to then create Part Presets that package deal length, colour, weight, and CSS improvements in combination.
The Textual content Module additionally has heading kinds that pair with its Wealthy Textual content editor, which helps headings. We will be able to create the ones Heading kinds in a identical, however reasonably more uncomplicated, approach than we did with the Heading Module.
Frame Textual content Choice Workforce Presets
Ahead of construction Part Presets, create the Choice Workforce Presets that can nest within them. Upload a Textual content module for your web page and open its settings. Within the textual content tab of the Wealthy Textual content editor, come with this placeholder textual content:
Your content material is going right here. Edit or take away this article inline or within the module Content material settings. You'll additionally genre <a href="instance.com">each and every element</a> of this content material within the module Design settings or even follow customized CSS to this article within the module Complicated settings. <h1>Textual content Module Heading 1</h1> <h2>Textual content Module Heading 2</h2> <h3>Textual content Module Heading 3</h3> <h4>Textual content Module Heading 4</h4> <h5>Textual content Module Heading 5</h5> <h6>Textual content Module Heading 6</h6> You'll genre each and every element of this content material within the module Design settings or even follow customized CSS to this article within the module Complicated settings. Choices are limitless. Once more, choices are: <ul> <li>Limitless</li> <li>In reality nice</li> </ul> And in the event you like numbers: <ol> <li>Then that is nice</li> <li>This too, clearly</li> </ol> And finally, a quote to hold your hat on. <blockquote>Creativity is seeing what others see and pondering what nobody else ever idea. -Albert Einstein</blockquote>

Frame Dimension Presets
Within the Textual content possibility crew underneath the Design tab, create an Choice Workforce Preset named Standard Textual content Dimension. Then set the Font Dimension for your Frame Textual content Design Variable and Line Peak for your Line Peak Frame variable set at 1.7 the usage of the Frame Textual content Line Peak variable. Follow those similar settings for hyperlinks, unordered lists, ordered lists, and quotations.
Do the similar factor once more, however this time create an Choice Workforce Preset named Small Textual content Dimension. Set the Font Dimension for your Frame Textual content Small variable and Line Peak for your 1.6 line peak variable. Follow those similar settings for hyperlinks, unordered lists, ordered lists, and quotations.
Frame Colour Presets
Create a brand new Choice Workforce Preset named Darkish Textual content and set the Line and Textual content Colour for your Frame Textual content Colour variable. Follow the similar colour for unordered lists, ordered lists, and quotations. Alternatively, for hyperlinks, make a choice your Secondary Gentle colour variable and underline the textual content. Open the Hover state, and for the Hyperlink, trade the Hyperlink Colour on Hover to Number one Gentle. Use this when textual content seems on mild backgrounds.
Do the similar factor once more, however this time create a brand new Choice Workforce Preset named Gentle Textual content with Textual content Colour set for your Frame Textual content Gentle variable. Follow the similar colour for unordered lists, ordered lists, and quotations. Alternatively, for hyperlinks, make a choice your Frame Textual content Gentle Hyperlink variable and upload an underline. Within the Hover state, use the Secondary Gentle variable because the hyperlink colour. Use this when textual content seems on darkish backgrounds.

Frame Weight Preset
Set Font Weight to Gentle and save the Choice Workforce Preset with the identify of Font Weight Gentle. Upload extra weight presets in case your design calls for them, however for this situation, we can solely use one.

Frame CSS Presets
Similar to the headings, we will be able to upload a single-line CSS rule that may make issues glance somewhat higher. Underneath Complicated > CSS, create a brand new Choice Workforce Preset. Identify it Textual content Wrap Lovely and underneath Module Parts, find the Primary Part box. Upload the CSS rule text-wrap: lovely; and save the preset. This improves line breaks in frame textual content, fending off orphaned phrases.
Heading Textual content Choice Workforce Presets
The Textual content module has a separate Heading Textual content possibility crew for H1-H6 tags entered throughout the wealthy textual content editor. Ahead of growing Part Presets, we want Choice Workforce Presets for heading sizes and hues.
Heading Sizes
Within the Heading Textual content possibility crew underneath Design, configure all six heading ranges the usage of your design variables. Set every degree’s Font Dimension and unitless Line Peak:
- H1 makes use of your H1 length variable with the 1.2 Line Peak (H1) variable.
- H2 makes use of your H2 length variable with the 1.3 Line Peak (H2-H3) variable.
- H3 makes use of your H3 length variable with the 1.3 Line Peak (H2-H3) variable.
- H4 makes use of your H4 length variable with the 1.4 Line Peak (H4-H6) variable.
- H5 makes use of your H5 length variable with the 1.4 Line Peak (H4-H6) variable.
- H6 makes use of your H6 length variable with the 1.4 Line Peak (H4-H6) variable.
Save all of those in a single Heading Choice Workforce Preset with the identify Textual content Heading Sizes. This unmarried Choice Workforce Preset handles all heading ranges inside Textual content Modules. The video presentations the method, however just for H1 and H2; you must do they all.
Heading Colours
Nonetheless within the Heading Textual content possibility crew, set Textual content Colour and Line Colour for all heading ranges for your Heading Textual content colour variable. Save with the identify Heading Colour Darkish.
Do the similar and create an Choice Workforce Preset named Heading Colour Gentle with Textual content Colour and Line Colour set for your Heading Textual content Gentle variable for all heading ranges.
Textual content Module Part Presets
Now, mix your frame textual content and heading textual content Choice Workforce Presets into unified Part Presets. Since Textual content modules can include each paragraph content material and headings, bundling the whole thing in combination approach one-click software as a substitute of stacking a couple of presets.
Click on the Part Preset chip on the most sensible of the Textual content module settings panel.
Create Darkish Textual content and nest the next Choice Workforce Presets:
- Standard Textual content Dimension from the Textual content possibility crew
- Darkish Textual content for frame colour
- Font Weight Gentle for weight
- Textual content Wrap Lovely from CSS
- Textual content Heading Sizes from Heading Textual content
- Heading Colour Darkish from Heading Textual content
Create a Gentle Textual content Part Preset the usage of the similar construction, however change Gentle Textual content for frame colour and Heading Colour Gentle for headings.
At this level, the development must be transparent so we received’t supply separate video for every of those closing Part Presets. Then, create the following Part Preset named Darkish Textual content Small, nesting Small Textual content Dimension, Darkish Textual content, Font Weight Gentle, Textual content Wrap Lovely, Textual content Heading Sizes, and Heading Colour Darkish.
And finally, create some other Part Preset named Gentle Textual content Small. Construct it with the similar construction as the former one, solely the usage of the sunshine colour variants.
Set Darkish Textual content because the default. While you upload a brand new Textual content module, you currently get correctly styled frame textual content and headings with none further configuration.

The entire Choice Workforce Presets you made will turn out to be useful as you extend your web page. Either one of the Textual content possibility teams and the standalone Heading possibility crew preset may also be reused through different modules. When those possibility teams are utilized in different modules, you could have your self a head get started.
You might want to extend the program additional, however it is a robust baseline for typography kinds. Subsequent, we’ll transfer directly to one thing rather less tedious — buttons!
Section 4: Construction Button Presets
Buttons additionally get pleasure from a layered setup that makes use of a couple of ranges of presets. Colour, sizes, and Semantic HTML settings can be utilized in distinctive mixtures.
Button Choice Workforce Presets
Developing separate Choice Workforce Presets for every fear means that you can mix’n’match with out duplication. We’ll get started with the fundamentals, however you’ll be able to upload different genre choices, equivalent to No Icon/Icon Choice Workforce Presets, if you want.
Button Colour Presets
Upload a Button module and open its settings. Navigate to the Button possibility crew underneath the Design tab. We will be able to create a couple of Choice Workforce Presets for the Button possibility crew. For now, we can center of attention on background colour, textual content colour, and sizing somewhat than borders or icons.
First, create a Number one Button (Brown) Choice Workforce Preset, set the Button Background Colour for your Number one colour variable, and set the Button Textual content Colour to Off-white. Click on the Hover icon and set the Button Background Colour on hover for your Number one Darkish colour variable. Make sure that the Textual content Colour works on hover, then go back to Desktop view and Save.
Create Secondary Button (Inexperienced) Choice Workforce Preset following the similar approach. Set Button Background Colour for your Secondary colour variable, Button Textual content Colour to a readable colour (ideally as a colour variable), and set the hover state Background Colour to Secondary Darkish. You’ll optionally trade the border colour, however in later steps I will be able to conceal the button border.
Finally, create an Off-white Button colour Choice Workforce Preset the usage of the Off-white variable for the background. Set the Button Textual content Colour to be your Gentle or standard Frame Textual content colour. On Hover state, set Background Colour to Off-white with a delicate HSL clear out of -5% Lightness.
That provides us 3 button colour diversifications with hover states.

Button Dimension Presets
Button sizing comes to 3 normal Choice Workforce Presets: border width, spacing (padding), and textual content length.
Border Width and Radius
Create an Choice Workforce Preset named Button Corners. Set the Border Radius for your Button Border Radius variable (7px). Additionally, set the Border Width to 0px.

Now not proven: Border Width set to 0, and the save button
Padding
Underneath Design > Spacing, create an Choice Workforce Preset named Button Padding. Set the Best and Backside Padding for your Button Vertical Padding variable. Set the Left and Proper Padding for your Button Horizontal Padding variable.

Create Button Padding Small the usage of your Button Vertical Padding Small variable for Best and Backside Padding. Stay the Left and Proper Padding set to Button Horizontal Padding (or scale back reasonably if most well-liked).

Textual content Dimension
Underneath Design > Button, create an Choice Workforce Preset named Button Textual content Dimension. Set the Font Dimension for your Frame Textual content variable.
Create Button Textual content Dimension Small with Font Dimension set for your Frame Textual content Small variable. You’ll reproduction your earlier Choice Workforce Preset if this is quicker for you. You presently need to preconfigure sizing choices as neatly.
Button Semantic HTML Preset
When a button is used to retailer a URL (so clicking the button takes the consumer to some other web page), you must stay the button as an component ( that means a regular hyperlink).

Alternatively, in the event you connect JavaScript to a button, use it in a touch shape, or cause an Interplay from a button click on, you should utilize a special semantic HTML component. In those instances, you must set your Button Module to undertake the
Cross to the Complicated tab > HTML and create an Choice Workforce Preset named Button Part Kind. Within the Preset, make a choice from the dropdown of to be had semantic HTML tags.

Button Part Presets
There’s a very powerful explanation why we constructed a majority of these presets on the possibility crew degree. If we constructed them solely as Button Part Presets, we might now not have the ability to follow the similar Choice Workforce Presets to modules just like the Touch Shape Module.
However Part Presets have a spot, and we can use them to mix our Choice Workforce Presets into ready-to-use button configurations. I’d filter out any Choice Workforce Presets on present Button Modules, delete them, and upload new ones so you’ll be able to see precisely what you’re including to the Part Preset.
Click on the Part Preset chip on the most sensible of the Button module settings and click on Upload New Preset. Create Number one Button and nest the next Choice Workforce Presets: Number one Button (Brown) from the Button possibility crew for colours, Button Textual content Dimension from Button, and Button Corners from Border.
Following the similar steps, create Secondary Button nesting Secondary Button (Inexperienced), Button Textual content Dimension, and Button Corners. And however, create Off-white Button through nesting Off-white Button, Button Textual content Dimension, and Button Corners.

Set the Number one Button because the default if maximum buttons in your web page will probably be number one CTAs.
At this level, we will be able to additionally temporarily create Part Presets named Button Padding, Button Padding Small, and Button Part Kind. In every of those, assign the only Choice Workforce Preset to the Button Part Preset with the matching identify.

Regardless of which tab you might be on, you’ll be able to temporarily assign other padding and component sorts on the Preset degree. It is a great time-saver that permits you to keep away from clicking into a selected tab to make an task.
Finally, we will be able to create a Small Button Part Preset that handles length overrides. Nest Button Padding Small and Button Textual content Dimension Small. Don’t come with any colour presets.
To create a small number one button, follow Number one Button first, then stack Small Button and Button Padding Small after it. As a result of they’re implemented remaining, any overlapping kinds within the presets will default to these with the next precedence quantity (within the Preset settings) or the ones which might be on the backside of the Lively Preset checklist.
Section 5: Odds And Ends
We will be able to arrange a handy guide a rough Symbol Part Preset. Upload an Symbol Module for your web page. Create a brand new Part Preset and identify it Symbol Corners. Cross to Design > Border and set the Border Radius for your Symbol Border Radius variable.
After that, let’s arrange a handy guide a rough SVG background-image preset within the CSS possibility crew. Identify it Patterned SVG Background and upload this CSS to the Module Parts > Primary Parts box. I’ll use this SVG, however it has some hardcoded colours — you’ll be able to in finding this sort of factor on-line.
background-image: url("information:picture/svg+xml,%3Csvg width='60' peak='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3Epercent3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.212 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.343 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.413 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413 7.07-7.07 7.07 7.07zm-2.827 2.83l1.414-1.416L30 14.97l-5.657 5.657 1.414 1.415L30 17.8l4.243 4.242zm-2.83 2.827l1.415-1.414L30 20.626l-2.828 2.83 1.414 1.414L30 23.456l1.414 1.414zM56.87 59.414L58.284 58 30 29.716 1.716 58l1.414 1.414L30 32.544l26.87 26.87z' fill='%23644634' fill-opacity='0.09' fill-rule='evenodd'/%3Epercent3C/svgpercent3E"); background-repeat: repeat; background-size: 46px 46px;

Finally, I wish to upload a CSS Preset that shows panorama photographs in portrait orientation the usage of the aspect-ratio belongings. This may entail making a Loose-Shape CSS preset and an Attributes preset to assign the picture elegance (each need to be used in combination). While you use this, it’s possible you’ll want to set the Module’s width to 100%.
.portrait-image img {
aspect-ratio: 9 / 16;
overflow: hidden;
object-fit: quilt;
object-position: middle middle;
}

To make this CSS more uncomplicated to use, create an Characteristic Preset that provides a category to an Symbol Module.

Section 6: Construction The Homepage
That is the payoff phase. Now we have round 40 Design Variables and dozens of presets waiting to deploy. Now we upload construction, drop in content material, and elegance the whole thing the usage of the device we constructed. You are going to realize a dramatic distinction in velocity—maximum modules want simply two or 3 preset assignments, and they’re accomplished.
We will be able to construct 4 sections: a Hero, a Procedure segment, a Badge segment, and a Testimonial segment. For every segment, we can lay out the construction first, then genre it.
Hero Segment
Upload a brand new Segment to the web page. When caused to select a construction, make a choice the 3/5 + 2/5 unequal column Flex format. This will provide you with a Row with two Columns—a much wider left column in your content material and a narrower proper column for a hero picture. Set the HTML Part Kind (within the Complicated Tab) to segment.
Within the first Column, upload a Heading module, a Textual content module, and two Button modules. Set Column 1 to have Flex Route: Row and Flex Wrap: Wrap. In the second one Column, upload an Symbol module. Your Layers panel must now fit the construction within the screenshot beneath.

At this level, upload your content material to every module. For me, it seems like this.

Styling
Click on the Segment and assign the Segment – Darkish Part Preset. This is applicable your darkish background, gutters, and flex-column format in one click on. Click on the Row. The Row – Same old Width default preset must already be energetic. No adjustments wanted.
Click on the Heading module and stack the next Part Presets: H1 Huge, Textual content Wrap Steadiness, Gentle, and Textual content Name Case. Set the Heading Stage at the Module itself to “H1.” Click on the Textual content module and assign the Gentle Textual content Part Preset.
Click on the primary Button, and stack the Secondary Button and Button Padding Part Presets. Click on the second one Button and stack Off-white Button and Button Padding. Click on the Symbol module and assign the Symbol Corners Part Preset. Underneath Design > Sizing, set the Max Peak to 80vh and the Width to 100% (or, higher on this scenario, use the “Drive Fullwidth” toggle). Then assign the Portrait Img Side Ratio CSS Choice Workforce Preset and the Magnificence Portrait Symbol Attributes Choice Workforce Preset.
That completes the hero segment. Each and every module was once styled through deciding on presets with a couple of minor on-module settings implemented all the way through.

Procedure Segment
Upload a brand new Segment and make a choice the equivalent two-column Flex format. In every Column, upload a Heading module, a Textual content module, an Icon Listing module with 3 Icon Listing Pieces, and a Button module. Upload your content material to every module in each columns—headings, brief descriptions, icon checklist textual content, and button labels. Make a choice no matter icons fit your content material.

Styling
We will be able to genre the whole thing within the left column first, then lengthen the ones kinds to the best column on the finish.
Click on the Segment and assign Segment – Darkish. The Row assists in keeping its Row – Same old Width default. In Column 1, assign the BG – Impartial Background Choice Workforce Preset and the Button Corners Border Choice Workforce Preset—the rounded corners and border settings paintings simply as neatly on a card-style column as they do on buttons. Then assign the Container Padding Small Spacing Choice Workforce Preset to offer content material room to respire throughout the card. Additionally, set the Column to Align Pieces Heart and House Between.
Click on the Heading module. Stack the H5 and Textual content Wrap Steadiness Part Presets. Set the Heading Stage to H2. The H5 preset controls the visible length whilst the H2 tag preserves right kind record hierarchy—the segment nonetheless will get an H2 within the supply, it simply appears to be like smaller through design. Then, align the Heading Heart.
Click on the Textual content module and assign the Darkish Textual content Part Preset. Underneath Design > Spacing, set the Best Margin to -1rem. This pulls the outline nearer to the heading, breaking the column’s default flex hole in some way that visually teams the heading and its supporting textual content.
Click on the Icon Listing module. Within the Textual content possibility crew, follow the Small Textual content Dimension and Darkish Textual content Choice Workforce Presets. Underneath Design > Structure, set the Vertical Hole for your Spacing – XSmall variable. Within the Icon possibility crew, set the Icon Best Margin to 0. Click on the Button and stack the Number one Button, Small Button, and Button Padding Small Part Presets.
With the primary Column styled, we will be able to lengthen design attributes of every module on this column to the following. Here’s the Column Design Attributes being prolonged to all Columns within the Segment. Observe the similar development for the heading, textual content, icon checklist, and button.
And once more, with quite few on-module kinds, a whole segment is finished.

Badge Segment
Upload a brand new Segment with a single-column Flex format. Within the Column, upload an Icon Listing module with 3 Icon Listing Pieces. Input your badge labels and make a choice an icon for every.

Click on the Segment and assign the BG – Impartial Background Choice Workforce Preset and the Patterned SVG Background CSS Choice Workforce Preset. The SVG development provides delicate visible texture with out competing with the content material.
Click on the Icon Listing module. Follow the Standard Textual content Dimension Choice Workforce Preset within the Textual content possibility crew. Underneath Design > Structure, set the Flex Route to Row, Justify Content material to Heart, Align Pieces to Heart, and the Horizontal Hole to 3rem. Within the Icon possibility crew, set the Icon Best Margin to 0, and within the standard Spacing Choice Workforce, set Padding Backside to 0 as neatly.
After a handful of presets and format assignments, the segment is finished.

Testimonial Segment
Upload a brand new Segment with a single-column Flex format. Assign the Row – Slim Part Preset to the Row. Additionally, set the row to BG – Impartial. Within the Column, upload an Icon module, a Textual content module, and some other Icon module.

Make a choice a citation mark icon for each Icon modules. Set every to make use of the Secondary Gentle colour variable, an Icon Dimension of 55, and Alignment to Left. On the second one Icon module, pass to Design > Change into, then set Rotate Z to 180 levels. This adjustments it to seem like a final citation mark and strikes it to the opposite aspect.
Click on the Textual content module and assign the Darkish Textual content Part Preset. Input your testimonial as a blockquote, adopted through the individual’s identify as a heading and a brief label in standard textual content underneath it.

And with that, we’ve our fourth and ultimate segment for this educational.

Get started Construction In Divi 5 These days!
This Divi 5 design device way scales to any complexity. Upload extra colour variants for various background sorts. Create further button sizes for various contexts. Construct specialised Segment presets for particular web page sorts. The modular structure helps expansion with out the overhead of conventional preset control.
The design device you constructed handles 80% of the layouts maximum websites want. Unmarried-column and double-column sections, correctly configured with Flexbox, quilt hero sections, characteristic blocks, content material spaces, and CTAs. The typography and colour methods adapt to any content material kind. The button variants take care of number one, secondary, and tertiary movements.
The submit How To Construct Your Personal Design Gadget With Nested + Stacked Presets In Divi 5 seemed first on Sublime Topics Weblog.
WordPress Web Design
