How To Build Your Own Design System With Nested + Stacked Presets In Divi 5

by | Mar 14, 2026 | Etcetera | 0 comments

Design programs fail both as a result of they don’t account for each and every chance or as a result of they turn out to be too difficult to control. A normal site wishes types 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 circumstances, and you find yourself managing masses of CSS categories/presets that overlap, battle, and turn out to be inconceivable to care for.

Stacked and Nested Presets in Divi 5 lend a hand clear up this drawback through setting apart issues. As an alternative of making a preset for each and every conceivable aggregate (H1 Darkish Daring, H1 Mild Daring, H1 Darkish Commonplace, H1 Mild Commonplace, and so forth), you create modular types that stack in combination.

This instructional builds an entire design device from scratch, then applies it to a homepage with 4 distinctive sections. You’re going to create Design Variables for spacing, typography, and hues, construct Choice Staff Presets for layouts and styling, and nest the ones Choice Staff Presets within Component Presets for quick deployment. The most productive a part of that is that you’ll be able to export and import these kinds of presets and variables to make use of and alter on each and every new site construct.

Homepage Build with Divi 5 Design Variables, Presets, Nested and Stacked Presets

The primary 5 portions of this instructional create round 40 Design Variables and dozens of Presets. Partly six, we will be able to upload modules to the web page and construct out an actual design. To totally practice this instructional, you are going to want between one and 3 hours, relying to your enjoy with internet design and/or Divi 5.

Phase 1: Developing Design Variables

Design Variables retailer values you reference all through your website online. Whilst you replace a variable, each and every part the usage of that variable updates robotically. The variables proven right here supply a basis that you’ll be able to increase 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 stage 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 worth 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 circumstances.
  • 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 phase 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 stage.
Heading Font Sizes Clamp stored as Design Variables in Divi

Be sure you click on “Save Variables” frequently.

Create two frame textual content length variables that might 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.

Body Font Sizes Clamp stored as Design Variables in Divi

Typography Line Top Variables

Line Top will supplement your font possible choices and your font sizes for each headings and paragraphs. For this construct, I created 5 variables that are meant to paintings throughout the entire website online:

  • Line Top (H1) makes use of a unitless price of 1.2 and can paintings for H1 – Huge and H1 font sizes.
  • Line Top (H2-H3) makes use of a unitless price of 1.3.
  • Line Top (H4-H6) makes use of a unitless price of 1.4.
  • Line Top Frame makes use of a unitless price of 1.7.
  • Line Top Frame Small makes use of a unitless price of 1.6.

Line Height Values stored as Design Variables in Divi

Colour Variables

For a metamorphosis of tempo (we’ll return to numbers in a 2d), arrange your Colour variables, setting apart 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 Mild makes use of #f5f5f5 for headings on darkish backgrounds.
  • Frame Textual content Mild makes use of #f5f5f5 at 80% Opacity for frame content material on darkish backgrounds.
  • Frame Textual content Mild 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. Should you assume it’s much less complicated to simply use the Heading Textual content Mild for this, you’ll be able to skip this variable.
  • Accessory makes use of #473f38, which we will be able to use for darkish background sections.

Primary, Secondary, Accent, Neutral, Heading and Body Color Variables added in Divi

Relative Colour Variables

It’s useful to have colour diversifications for borders, hover results, and different issues as they get up.

  • Number one Mild 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 Mild 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 in case you have different colours you employ incessantly, you’ll be able to create diversifications for them too.

Spacing Variables

Spacing variables maintain padding, margins, and gaps all through your format. Having more than one sizes means that you can care for proportional relationships throughout your design device. Additionally, you’ll use those frequently, so having them arrange firstly is a large lend a hand.

Create the next Quantity variables:

  • Spacing – XSmall makes use of clamp(0.7rem, 0.6rem + 0.6vw, 1.1rem) for tight spacing between comparable 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 part separation.
  • Spacing – Common makes use of clamp(3.3rem, 3.1rem + 0.7vw, 3.7rem) for at ease phase 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 for my part like clamp() values for spacing that fit carefully with textual content length. However many of us will use instantly rem values and use them throughout breakpoints. No matter works for you.

For buttons, I have a tendency to desire particular padding values over extra basic ones.

  • Button Vertical Padding makes use of clamp(0.6rem, 0.6rem + 0.2vw, 0.7rem) for a standard top 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 care for constant left/proper padding throughout all buttons. You’ll be able to upload a small variation in case you like.

Clamp Spacing and Button Padding Values Added to Divi Design Variable Manager

Format Variables

Those subsequent ones are nice for surroundings to your Sections and Rows. The use of them as design variables means that you can regulate the width of your website online content material at any time all the way through 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 displays.
  • Content material Max Width – Slender makes use of 900px for smaller content material options and is good for selection and text-only callouts.

Content Width Variables added to Design Variable Manager

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 surroundings for reasonably rounded buttons.

Border Radius Variables added to Design Variable Manager

Default Font

Set your default Fonts to no matter you favor. I can be the usage of:

  • Heading font set to Inter
  • Frame font set to Inter Tight
Heading and Body Font Variables added to Design Variable Manager

One ultimate reminder to avoid wasting your Design Variables

Phase 2: Construction Format Presets For Sections And Rows

The whole thing you construct in Divi is within Sections and Rows. Developing default presets for those, in conjunction with a couple of diversifications, will upload consistency and varnish in your websites.

Phase Format Presets

Sections are simple to arrange. An very important element of sections is making a website online “gutter.” That is your padding carried out to the left and proper aspects of your display screen and is frequently maximum essential at smaller breakpoints. We will be able to additionally configure flex settings so rows stack vertically moderately than horizontally.

Phase Gutters

Create a Spacing Choice Staff Preset named Gutter. Set the Left/Proper Padding to Spacing – Fluid.

Make a 2d Spacing Choice Staff Preset and phone 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.

Gutter None Spacing 0px Padding for sections

Phase 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 website online.

Within the Phase, talk over with the Format possibility crew, and create an Choice Staff Preset known as Flex Route Column. Set the Show to Flex, Flex Route to Column, Align Pieces to Middle, and Vertical Hole to Spacing – Common.

Creating the Flex Direction Column Option Preset with Gap and Flex settings

Phase Background Presets

Background presets will let you briefly change between mild and darkish phase types. Within the Phase’s Background possibility crew, create an Choice Staff Preset named BG – Darkish. Set the Background Colour to make use of the Accessory Colour Variable.

Create BG - Dark Background Option Preset

Create BG – Mild with Background Colour set to white (#ffffff) or your most popular mild background colour.

Create BG – Off-white with Background Colour set to a delicate Off-white or mild grey (#f5f5f5 works neatly). This offers visible separation between sections with out the prime distinction of darkish backgrounds.

Remember to have a clean Background Choice Staff Preset set and set as your default.

Phase Component Presets

Now that we’ve got the entire granular Choice Staff 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.

See also  Get the Exclusive FREE Black Friday Landing Page Layout Pack

Edit the Default Phase Preset. Upload the Gutter preset from Spacing, the Flex Route Column preset from Format, and the BG – Mild preset from Background and save. You’ll be able to title it Phase – Mild. This provides each and every new phase correct gutters, vertical stacking, and a blank mild background.

Do the similar for a brand new Phase Component Preset named Phase – Darkish. Upload the Gutter preset from Spacing, Flex Route Column from Format, and BG – Darkish from Background.

And alternatively for a brand new Phase Component Preset named Phase – 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 totally darkish.

Create a brand new Phase Component Preset named Phase – Complete Bleed (or No Gutter, Fullscreen—no matter title is sensible to you). Upload No Gutter from Spacing, Flex Route Column from Format, and BG – Mild from Background. Use this when row content material must lengthen to display screen edges.

You presently have 4 phase diversifications. The default handles 70% of circumstances robotically, whilst Darkish, Impartial, and Complete Bleed choices are waiting when you wish to have them. After all, that you must create different diversifications, however this may a minimum of get you going.

Row Presets

Issues get just a little extra fascinating with Rows, as Rows constrain content material width inside sections.

Row Width Presets

With a Row, open its Default Row Component Preset and navigate to its Sizing possibility crew. Set the Width to 100% variable and Max Width in your Content material Max Width variable (1440px). Title the default preset Row – Usual Width.

Create every other Row Component Preset named Row – Slender with Width at 100% and Max Width set in your Content material Max Width – Slender variable (900px). This focuses consideration on text-heavy content material blocks and provides visible selection in 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 area within the phase which comes in handy for full-bleed pictures or edge-to-edge content material.

You presently have 3 row diversifications waiting to deploy. The Usual Width preset applies robotically to new rows, whilst Slender and Complete choices are a click on away when you wish to have them.

Row Layouts

Row format presets regulate how Columns prepare themselves throughout the Row. It’s good to simply create a half-dozen flex layouts and two or 3 grid layouts for a complete site design. On the other hand, we’ll use a Divi superpower to make this even more effective.

Construction Layouts are preconfigured Flex and Grid layouts. You’ll be able to bring to mind them like presets since they’re sitting there ready so that you can use them. However as an alternative of desiring to create them, we did that for you. There are two techniques of surroundings those.

The primary manner is whilst you upload a brand new Phase in your web page, you are going to be requested to make a choice a Construction Format. At the most sensible are other Flex layouts, and at the backside are preconfigured Grid layouts.

The second one manner is whilst you click on a Row and notice its settings panel at the proper. Within the Content material tab, you’ll realize the Component possibility crew. Open that, and you are going to see a button categorized Observe Construction Template. Clicking that may will let you alternate the construction to any of the to be had choices.

Those behave so much like presets, however they’re integrated construction templates moderately than user-created presets.

Column Presets

We received’t spend an excessive amount of time right here, however there’s a lot that that you must do. Click on on a Column at the web page to expose its Settings panel. Cross to Design > Format and create a brand new Choice Staff Preset. Title 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 section. Should you sought after to do extra right here, that you must create Choice Staff Presets for more than a few Hole sizes and Align-items (get started, middle, and finish).

Container Padding Presets

As you recall, we’ve got spacing variables waiting to move, 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 beneath the Design tab. Create a brand new Choice Staff Preset named Container Padding. Set all 4 Padding values (Best, Backside, Left, Proper) in your Spacing – Common variable.

Create every other Choice Staff Preset named Container Padding Huge. Set all 4 Padding values in your Spacing – Medium variable. This will give you a extra beneficiant possibility for hero-style bins or content material spaces that have the benefit of further respiring room. The method is the same to what you simply did, solely with a special variable decided on. You’ll be able to repeat this for every of your Spacing Design Variables as you want.

Phase 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 Machine actually begins to turn its energy and versatility.

Heading Module

The Heading Module means that you can set types in one Heading Choice Staff. That implies we don’t have to fret about frame textual content types but. So, we will be able to put our more than a few heading sizes, heading colour choices, and CSS regulations into Choice Staff Presets, after which acquire our most-used combos into to hand Component Presets.

Heading Dimension Presets

Upload seven Heading modules in 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 beneath the Design tab.

Create Seven Heading Modules on the Page

Click on the Choice Staff Preset chip within the Heading Textual content possibility crew, then create a brand new preset named H1 Huge Dimension. Set the Font Dimension in your H1 – Huge variable and Line Top to the 1.2 variable.

Create presets for the rest heading ranges. Each and every makes use of its corresponding length and line top variables:

  • H1 Dimension makes use of the H1 variable with the 1.2 line top variable.
  • H2 Dimension makes use of the H2 variable with the 1.3 line top variable.
  • H3 Dimension makes use of the H3 variable with the 1.3 line top variable.
  • H4 Dimension makes use of the H4 variable with the 1.4 line top variable.
  • H5 Dimension makes use of the H5 variable with the 1.4 line top variable.
  • H6 Dimension makes use of the H6 variable with the 1.4 line top variable.

Heading Colour Presets

Nonetheless within the Heading Textual content possibility crew, create Heading Mild with Textual content Colour set in your Heading Textual content Mild variable. Use this when headings seem on darkish backgrounds.

The darkish heading colour used to be already set once we selected a dismal textual content colour for the Heading Textual content Design Variable. So, this Mild preset stacks along with your length presets to create simple diversifications. An H2 on a dismal phase makes use of H2 Dimension + Heading Mild. The similar heading on a mild phase solely makes use of H2 Dimension.

Heading CSS Preset

Create Textual content Wrap Steadiness with the CSS rule text-wrap: steadiness; within the Major Component box. Balanced wrapping works higher for headings and brief textual content blocks, distributing phrases extra frivolously throughout strains.

Create Textual content Name Case with the CSS rule text-transform: capitalize; within the Major Component box. This capitalizes the primary letter of every phrase robotically.

Should you don’t assume you’ll like or want those CSS presets, this is wonderful, you simply received’t come with them within the Component Presets under.

Developing Heading Component Presets

Component Presets package deal your most-used combos of Choice Staff Presets for fast deployment. Click on the Component Preset chip on the most sensible of the Heading module settings.

Create Component Presets for every of your heading sizes (‘H1 – Huge’ via ‘H6’). So, for H2, give it a reputation of H2 Dimension and assign the Choice Staff Preset for H2. Do this for every stage.

Create an Component Preset named Mild and Nest the Heading Mild Choice Staff Preset inside it.

Finally, create two further Component Presets for balanced textual content wrapping and capitalization. You’ll be able to title them the similar factor you probably did at the possibility crew stage.

Add CSS Option Preset to Heading Element Preset

Do that for each the Textual content Wrap Steadiness and Textual content Become Capitalize Choice Staff Presets

Relying to your choice, it’s possible you’ll need to reorder the presets as they’re offered within the Component Preset dropdown. To do this, we will be able to use the Preset Supervisor to reorder them as you favor.

Why Remake Those as Component Presets?
I moved all of those to Component Presets, even supposing they comprise not anything however our Choice Staff Presets, as a result of they’re more uncomplicated to get entry to. To make use of those presets, click on at the part you need to genre and stack the Component Presets. You’ll be able to use the Choice Staff Presets, however that calls for clicking a component, then opening the proper tab, after which clicking the proper Choice Staff Preset icon once more. That is only a shortcut and my choice.

Textual content Module

There might be just a little overlap right here, because the Textual content module too can output headings, but it surely additionally brings a couple of further styling wishes.

Within the Textual content Module, we will be able to create Choice Staff 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 Component Presets that package deal length, colour, weight, and CSS improvements in combination.

The Textual content Module additionally has heading types that pair with its Wealthy Textual content editor, which helps headings. We will be able to create the ones Heading types in a equivalent, however reasonably more uncomplicated, manner than we did with the Heading Module.

Frame Textual content Choice Staff Presets

Ahead of construction Component Presets, create the Choice Staff Presets that may nest within them. Upload a Textual content module in 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 be able to additionally genre <a href="instance.com">each and every element</a> of this content material within the module Design settings or even observe 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 be able to genre each and every element of this content material within the module Design settings or even observe customized CSS to this article within the module Complicated settings. Choices are limitless.

Once more, choices are:

<ul> <li>Limitless</li> <li>Truly nice</li> </ul> And in case 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 no person else ever idea. -Albert Einstein</blockquote>

Rich Text Placeholder Text to style with Presets

Frame Dimension Presets

See also  How one can Use iptables in Linux

Within the Textual content possibility crew beneath the Design tab, create an Choice Staff Preset named Commonplace Textual content Dimension. Then set the Font Dimension in your Frame Textual content Design Variable and Line Top in your Line Top Frame variable set at 1.7 the usage of the Frame Textual content Line Top variable. Observe those similar settings for hyperlinks, unordered lists, ordered lists, and quotations.

Do the similar factor once more, however this time create an Choice Staff Preset named Small Textual content Dimension. Set the Font Dimension in your Frame Textual content Small variable and Line Top in your 1.6 line top variable. Observe those similar settings for hyperlinks, unordered lists, ordered lists, and quotations.

Frame Colour Presets

Create a brand new Choice Staff Preset named Darkish Textual content and set the Line and Textual content Colour in your Frame Textual content Colour variable. Observe the similar colour for unordered lists, ordered lists, and quotations. On the other hand, for hyperlinks, make a selection your Secondary Mild colour variable and underline the textual content. Open the Hover state, and for the Hyperlink, alternate the Hyperlink Colour on Hover to Number one Mild. Use this when textual content seems on mild backgrounds.

Do the similar factor once more, however this time create a brand new Choice Staff Preset named Mild Textual content with Textual content Colour set in your Frame Textual content Mild variable. Observe the similar colour for unordered lists, ordered lists, and quotations. On the other hand, for hyperlinks, make a selection your Frame Textual content Mild Hyperlink variable and upload an underline. Within the Hover state, use the Secondary Mild variable because the hyperlink colour. Use this when textual content seems on darkish backgrounds.

Light Text Option Preset Example on Dark BG

Frame Weight Preset

Set Font Weight to Mild and save the Choice Staff Preset with the title of Font Weight Mild. Upload extra weight presets in case your design calls for them, however for this situation, we will be able to solely use one.

Text Option Preset Font Weight Light for body, link, quote, and list text

Frame CSS Presets

Similar to the headings, we will be able to upload a single-line CSS rule that may make issues glance just a little higher. Underneath Complicated > CSS, create a brand new Choice Staff Preset. Title it Textual content Wrap Beautiful and beneath Module Parts, find the Major Component box. Upload the CSS rule text-wrap: lovely; and save the preset. This improves line breaks in frame textual content, heading off orphaned phrases.

Heading Textual content Choice Staff Presets

The Textual content module has a separate Heading Textual content possibility crew for H1-H6 tags entered in the course of the wealthy textual content editor. Ahead of developing Component Presets, we want Choice Staff Presets for heading sizes and hues.

Heading Sizes

Within the Heading Textual content possibility crew beneath Design, configure all six heading ranges the usage of your design variables. Set every stage’s Font Dimension and unitless Line Top:

  • H1 makes use of your H1 length variable with the 1.2 Line Top (H1) variable.
  • H2 makes use of your H2 length variable with the 1.3 Line Top (H2-H3) variable.
  • H3 makes use of your H3 length variable with the 1.3 Line Top (H2-H3) variable.
  • H4 makes use of your H4 length variable with the 1.4 Line Top (H4-H6) variable.
  • H5 makes use of your H5 length variable with the 1.4 Line Top (H4-H6) variable.
  • H6 makes use of your H6 length variable with the 1.4 Line Top (H4-H6) variable.

Save all of those in a single Heading Choice Staff Preset with the title Textual content Heading Sizes. This unmarried Choice Staff Preset handles all heading ranges inside Textual content Modules. The video displays 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 in your Heading Textual content colour variable. Save with the title Heading Colour Darkish.

Do the similar and create an Choice Staff Preset named Heading Colour Mild with Textual content Colour and Line Colour set in your Heading Textual content Mild variable for all heading ranges.

Textual content Module Component Presets

Now, mix your frame textual content and heading textual content Choice Staff Presets into unified Component Presets. Since Textual content modules can comprise each paragraph content material and headings, bundling the entirety in combination method one-click utility as an alternative of stacking more than one presets.

Click on the Component Preset chip on the most sensible of the Textual content module settings panel.

Create Darkish Textual content and nest the next Choice Staff Presets:

  • Commonplace Textual content Dimension from the Textual content possibility crew
  • Darkish Textual content for frame colour
  • Font Weight Mild for weight
  • Textual content Wrap Beautiful from CSS
  • Textual content Heading Sizes from Heading Textual content
  • Heading Colour Darkish from Heading Textual content

Create a Mild Textual content Component Preset the usage of the similar construction, however change Mild Textual content for frame colour and Heading Colour Mild for headings.

At this level, the development must be transparent so we received’t supply separate video for every of those closing Component Presets. Then, create the following Component Preset named Darkish Textual content Small, nesting Small Textual content Dimension, Darkish Textual content, Font Weight Mild, Textual content Wrap Beautiful, Textual content Heading Sizes, and Heading Colour Darkish.

And finally, create every other Component Preset named Mild 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. Whilst you upload a brand new Textual content module, you presently get correctly styled frame textual content and headings with none further configuration.

Assign Dark Text Element Preset for Text Module as the Default

All of the Choice Staff Presets you made will come in useful as you increase your website online. Either one of the Textual content possibility teams and the standalone Heading possibility crew preset will also be reused through different modules. When those possibility teams are utilized in different modules, you could have your self a head get started.

It’s good to increase the program additional, however it is a sturdy baseline for typography types. Subsequent, we’ll transfer directly to one thing rather less tedious — buttons!

Phase 4: Construction Button Presets

Buttons additionally have the benefit of a layered setup that makes use of more than one ranges of presets. Colour, sizes, and Semantic HTML settings can be utilized in distinctive combos.

Button Choice Staff Presets

Developing separate Choice Staff 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, akin to No Icon/Icon Choice Staff Presets, if you want.

Button Colour Presets

Upload a Button module and open its settings. Navigate to the Button possibility crew beneath the Design tab. We will be able to create more than one Choice Staff Presets for the Button possibility crew. For now, we will be able to center of attention on background colour, textual content colour, and sizing moderately than borders or icons.

First, create a Number one Button (Brown) Choice Staff Preset, set the Button Background Colour in 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 in your Number one Darkish colour variable. Make certain the Textual content Colour works on hover, then go back to Desktop view and Save.

Create Secondary Button (Inexperienced) Choice Staff Preset following the similar way. Set Button Background Colour in 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 be able to optionally alternate the border colour, however in later steps I can cover the button border.

Finally, create an Off-white Button colour Choice Staff Preset the usage of the Off-white variable for the background. Set the Button Textual content Colour to be your Mild or customary Frame Textual content colour. On Hover state, set Background Colour to Off-white with a delicate HSL filter out of -5% Lightness.

That provides us 3 button colour diversifications with hover states.

Three Button Color Variations with Hover States

Button Dimension Presets

Button sizing comes to 3 basic Choice Staff Presets: border width, spacing (padding), and textual content length.

Border Width and Radius

Create an Choice Staff Preset named Button Corners. Set the Border Radius in your Button Border Radius variable (7px). Additionally, set the Border Width to 0px.

No longer proven: Border Width set to 0, and the save button

Padding

Underneath Design > Spacing, create an Choice Staff Preset named Button Padding. Set the Best and Backside Padding in your Button Vertical Padding variable. Set the Left and Proper Padding in your Button Horizontal Padding variable.

Button Padding Option Preset

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 cut back reasonably if most popular).

Small and Normal Button Padding Options Examples

Textual content Dimension

Underneath Design > Button, create an Choice Staff Preset named Button Textual content Dimension. Set the Font Dimension in your Frame Textual content variable.

Create Button Textual content Dimension Small with Font Dimension set in your Frame Textual content Small variable. You’ll be able to reproduction your earlier Choice Staff Preset if this is sooner 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 every other web page), you must stay the button as an <a> part (<a> that means a typical hyperlink).

The a HTML Tag is the default element tag for buttons

On the other hand, in case you connect JavaScript to a button, use it in a touch shape, or cause an Interplay from a button click on, you need to use a special semantic HTML part. In those circumstances, you must set your Button Module to undertake the <button> HTML tag.

Cross to the Complicated tab > HTML and create an Choice Staff Preset named Button Component Sort. Within the Preset, make a selection <button> from the dropdown of to be had semantic HTML tags.

Create semantic button option preset for easily changing the element type

Button Component Presets

There’s crucial reason why we constructed these kinds of presets on the possibility crew stage. If we constructed them solely as Button Component Presets, we’d now not be capable to observe the similar Choice Staff Presets to modules just like the Touch Shape Module.

However Component Presets have a spot, and we will be able to use them to mix our Choice Staff Presets into ready-to-use button configurations. I’d filter out any Choice Staff 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 Component Preset.

Click on the Component 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 Staff 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 alternatively, create Off-white Button through nesting Off-white Button, Button Textual content Dimension, and Button Corners.

All Three Color Button Presets

Set the Number one Button because the default if maximum buttons to your website online might be number one CTAs.

See also  How To Design Websites In 2024 (Tips & Tricks)

At this level, we will be able to additionally briefly create Component Presets named Button Padding, Button Padding Small, and Button Component Sort. In every of those, assign the only Choice Staff Preset to the Button Component Preset with the matching title.

Primary Button as Default and Additional Element Presets for Quick Styling a Button

Regardless of which tab you might be on, you’ll be able to briefly assign other padding and part varieties on the Preset stage. It is a great time-saver that allows you to steer clear of clicking into a selected tab to make an project.

Finally, we will be able to create a Small Button Component 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, observe Number one Button first, then stack Small Button and Button Padding Small after it. As a result of they’re carried out ultimate, any overlapping types within the presets will default to these with a better precedence quantity (within the Preset settings) or the ones which are on the backside of the Energetic Preset checklist.

Phase 5: Odds And Ends

We will be able to arrange a snappy Symbol Component Preset. Upload an Symbol Module in your web page. Create a brand new Component Preset and title it Symbol Corners. Cross to Design > Border and set the Border Radius in your Symbol Border Radius variable.

After that, let’s arrange a snappy SVG background-image preset within the CSS possibility crew. Title it Patterned SVG Background and upload this CSS to the Module Parts > Major Parts box. I’ll use this SVG, but it surely has some hardcoded colours — you’ll be able to in finding this sort of factor on-line.

background-image: url(&amp;amp;quot;information:picture/svg+xml,%3Csvg width=&amp;amp;#039;60&amp;amp;#039; top=&amp;amp;#039;60&amp;amp;#039; viewBox=&amp;amp;#039;0 0 60 60&amp;amp;#039; xmlns=&amp;amp;#039;http://www.w3.org/2000/svg&amp;amp;#039;%3Epercent3Cpath d=&amp;amp;#039;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&amp;amp;#039; fill=&amp;amp;#039;%23644634&amp;amp;#039; fill-opacity=&amp;amp;#039;0.09&amp;amp;#039; fill-rule=&amp;amp;#039;evenodd&amp;amp;#039;/%3Epercent3C/svgpercent3E&amp;amp;quot;);
background-repeat: repeat;
background-size: 46px 46px;

Patterned SVG Background Image CSS Option Preset

Finally, I need to upload a CSS Preset that presentations panorama pictures in portrait orientation the usage of the aspect-ratio belongings. This may occasionally entail making a Loose-Shape CSS preset and an Attributes preset to assign the picture magnificence (each need to be used in combination). Whilst you use this, you could want to set the Module’s width to 100%.

.portrait-image img {
aspect-ratio: 9 / 16;
overflow: hidden;
object-fit: duvet;
object-position: middle middle;
}

Portrait Image Aspect Ratio Free-Form CSS Preset

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

Custom Attribute Preset Portrait Image class

Phase 6: Construction The Homepage

That is the payoff section. We now have round 40 Design Variables and dozens of presets waiting to deploy. Now we upload construction, drop in content material, and elegance the entirety the usage of the device we constructed. You’re going to realize a dramatic distinction in pace—maximum modules want simply two or 3 preset assignments, and they’re executed.

We will be able to construct 4 sections: a Hero, a Procedure phase, a Badge phase, and a Testimonial phase. For every phase, we will be able to lay out the construction first, then genre it.

Hero Phase

Upload a brand new Phase to the web page. When triggered to make a choice a construction, make a choice the 3/5 + 2/5 unequal column Flex format. This will give you a Row with two Columns—a much broader left column to your content material and a narrower proper column for a hero picture. Set the HTML Component Sort (within the Complicated Tab) to phase.

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 under.

Structure for Hero Section All Containers and Modules

At this level, upload your content material to every module. For me, it looks as if this.

Hero Section Structure plus Content

Styling

Click on the Phase and assign the Phase – Darkish Component Preset. This is applicable your darkish background, gutters, and flex-column format in one click on. Click on the Row. The Row – Usual Width default preset must already be energetic. No adjustments wanted.

Click on the Heading module and stack the next Component Presets: H1 Huge, Textual content Wrap Steadiness, Mild, and Textual content Name Case. Set the Heading Degree at the Module itself to “H1.” Click on the Textual content module and assign the Mild Textual content Component Preset.

Click on the primary Button, and stack the Secondary Button and Button Padding Component 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 Component Preset. Underneath Design > Sizing, set the Max Top to 80vh and the Width to 100% (or, higher on this scenario, use the “Drive Fullwidth” toggle). Then assign the Portrait Img Facet Ratio CSS Choice Staff Preset and the Magnificence Portrait Symbol Attributes Choice Staff Preset.

That completes the hero phase. Each module used to be styled through deciding on presets with a couple of minor on-module settings carried out all through.

Final Hero Section

Procedure Phase

Upload a brand new Phase and make a selection the equivalent two-column Flex format. In every Column, upload a Heading module, a Textual content module, an Icon Checklist module with 3 Icon Checklist 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. Select no matter icons fit your content material.

Container and Module Setup of the Process Section

Styling

We will be able to genre the entirety within the left column first, then extend those styles to the appropriate column on the finish.

Click on the Phase and assign Phase – Darkish. The Row assists in keeping its Row – Usual Width default. In Column 1, assign the BG – Impartial Background Choice Staff Preset and the Button Corners Border Choice Staff 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 Staff Preset to offer content material room to respire throughout the card. Additionally, set the Column to Align Pieces Middle and Area Between.

Click on the Heading module. Stack the H5 and Textual content Wrap Steadiness Component Presets. Set the Heading Degree to H2. The H5 preset controls the visible length whilst the H2 tag preserves correct record hierarchy—the phase nonetheless will get an H2 within the supply, it simply appears to be like smaller through design. Then, align the Heading Middle.

Click on the Textual content module and assign the Darkish Textual content Component 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 Checklist module. Within the Textual content possibility crew, observe the Small Textual content Dimension and Darkish Textual content Choice Staff Presets. Underneath Design > Format, set the Vertical Hole in 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 Component 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 Phase. Apply the similar development for the heading, textual content, icon checklist, and button.

And once more, with fairly few on-module types, an entire phase is finished.

Final Process Section

Badge Phase

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

Structure for Badge Section All Containers and Modules

Click on the Phase and assign the BG – Impartial Background Choice Staff Preset and the Patterned SVG Background CSS Choice Staff Preset. The SVG development provides delicate visible texture with out competing with the content material.

Click on the Icon Checklist module. Observe the Commonplace Textual content Dimension Choice Staff Preset within the Textual content possibility crew. Underneath Design > Format, set the Flex Route to Row, Justify Content material to Middle, Align Pieces to Middle, and the Horizontal Hole to 3rem. Within the Icon possibility crew, set the Icon Best Margin to 0, and within the customary Spacing Choice Staff, set Padding Backside to 0 as neatly.

After a handful of presets and format assignments, the phase is finished.

Final Badge Section

Testimonial Phase

Upload a brand new Phase with a single-column Flex format. Assign the Row – Slender Component Preset to the Row. Additionally, set the row to BG – Impartial. Within the Column, upload an Icon module, a Textual content module, and every other Icon module.

Testimonial Section Structure and Row Styles

Select a citation mark icon for each Icon modules. Set every to make use of the Secondary Mild colour variable, an Icon Dimension of 55, and Alignment to Left. On the second one Icon module, pass to Design > Become, then set Rotate Z to 180 levels. This adjustments it to seem like a ultimate citation mark and strikes it to the opposite facet.

Click on the Textual content module and assign the Darkish Textual content Component Preset. Input your testimonial as a blockquote, adopted through the individual’s title as a heading and a brief label in customary textual content underneath it.

Testimonial Section Text Module Element Preset

And with that, we’ve got our fourth and ultimate phase for this instructional.

Final Testimonial Section

Get started Construction In Divi 5 Nowadays!

This Divi 5 design device means scales to any complexity. Upload extra colour variants for various background varieties. Create further button sizes for various contexts. Construct specialised Phase presets for particular web page varieties. The modular structure helps enlargement 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, duvet hero sections, characteristic blocks, content material spaces, and CTAs. The typography and colour programs adapt to any content material sort. The button variants maintain number one, secondary, and tertiary movements.

The publish How To Build Your Own Design System With Nested + Stacked Presets In Divi 5 gave the impression 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!