Comparing The Font Scale Types In Divi 5’s Variable Generator

by | Jun 29, 2026 | Etcetera | 0 comments

While you generate font dimension variables in Divi 5, one of the vital necessary alternatives is the size sort. Fluid, Fastened Responsive, and Fastened Unmarried can all create a usable typography method, however they behave another way as soon as the ones variables are implemented throughout your web site.

The correct selection is dependent upon how you need your typography to reply throughout display sizes. Do you need textual content to scale easily between viewport widths? Do you need actual values at every breakpoint? Or do you need one constant scale that remains the similar far and wide?

On this put up, we’ll evaluate the 3 font scale sorts in Divi 5’s Variable Generator, provide an explanation for how every one works, and display when to make use of every choice.

What Is The Variable Generator In Divi 5?

The Variable Generator is a device inside of Divi 5’s Variable Supervisor that is helping you create reusable design variables mechanically. As a substitute of creating every quantity variable through hand, you select a class, configure the size, preview the output, and upload the variables on your web site.

For sizing programs, the generator can create quantity variables for font sizes, spacing, gaps, widths, border radius, border width, and different format values. The ones variables can then be used inside of modules, Choice Crew Presets, Component Presets, and different portions of your Divi 5 design method.

Subscribe To Our YouTube Channel

To open it, release the Variable Supervisor within the Visible Builder. Hover over the Numbers team and click on Generate Fluid Sizing Variables.

Generate Fluid Sizing Variables option in Divi 5 Variable Manager

A modal opens with configuration choices at the left and a are living preview at the proper. As you alter the settings, the preview updates so you’ll be able to see the size earlier than saving it.

Add generated variables to a Divi 5 site

When the size seems proper, click on Upload Variables To My Website online. Divi saves the generated values as international quantity variables on your Variable Supervisor.

Variable types available in the Divi 5 Variable Generator

This newsletter makes a speciality of the Font Dimension Scale and the 3 scale sorts to be had when producing typography variables.

Font size scale type options in Divi 5 Variable Generator

If you need a broader walkthrough of ways variables, presets, and web site making plans have compatibility in combination, the Divi 5 Mastery Course covers the overall design method workflow.

Why Font Dimension Scaling Issues

Typography has to paintings throughout each and every display dimension. A heading that appears balanced on desktop can really feel too huge on cellular. Frame textual content that reads smartly on a pc can really feel small on a big show. Manually adjusting font sizes module through module is sluggish and tough to deal with.

A font dimension scale solves that through making a comparable set of sizes. As a substitute of opting for random values for frame textual content, labels, headings, captions, and show textual content, you employ a method the place every step is attached to the following.

That method turns into extra robust when the sizes are stored as variables. You’ll reference the similar values throughout modules and presets. If you wish to have to regulate the size later, you’ll be able to replace the variables as a substitute of chasing particular person font dimension settings around the web site.

Learn Everything About Divi 5’s Sizing System

Fast Comparability: Fluid, Fastened Responsive, And Fastened Unmarried

Ahead of having a look at every scale sort intimately, this is the sensible distinction.

Scale Sort How Values Are Set CSS Output Perfect For
Fluid Minimal and most values calculated with clamp() One fluid worth according to token that scales easily with the viewport Responsive websites the place typography will have to adapt with out breakpoint-by-breakpoint control
Fastened Responsive Separate values set for every enabled breakpoint Breakpoint-specific values that vary at outlined display widths Exact per-device or per-breakpoint regulate
Fastened Unmarried One static worth set from a unmarried base and ratio One simple worth according to token without a responsive habits Textual content tokens that are supposed to keep the similar throughout display sizes
See also  How to Add a Background Image to Your Divi Header

All 3 choices create international quantity variables that you’ll be able to use on your design method. The variation is what every variable accommodates and the way it behaves throughout display sizes.

  • Fluid Scale: Creates variables that scale easily between a minimal and most worth.
  • Fastened Responsive: Creates variables with other values at other breakpoints.
  • Fastened Unmarried: Creates variables with one worth that remains the similar on each and every display dimension.

1. Fluid Scale

Fluid Scale is typically the most productive start line for contemporary responsive typography. It creates font dimension variables that scale easily because the viewport adjustments.

As a substitute of leaping from one font dimension to any other at a breakpoint, a fluid worth progressively will increase or decreases between an outlined minimal and most.

Minimum and maximum clamp values in Divi 5 Variable Generator

In CSS, that is regularly treated with the clamp() serve as. A clamp worth features a minimal, a most popular fluid worth, and a most. Divi’s generator handles the mathematics for you, so you do not want to put in writing the CSS through hand.

What Divi Generates

When you select Fluid Scale, Divi creates a collection of quantity variables to your font dimension scale. Each and every variable represents a step within the scale.

You’ll upload or take away greater and smaller steps earlier than saving the variables.

Add or remove larger and smaller font size variables in Divi 5

The variables use the prefix and suffix taste you select. As an example, a text- prefix with T-shirt sizing can produce names equivalent to:

  • –text-xs
  • –text-s
  • –text-m
  • –text-l
  • –text-xl

Numeric suffixes can produce names equivalent to –text-1, –text-2, –text-3, and so forth.

T-shirt sizing is steadily more uncomplicated to learn inside of presets as it describes relative dimension. Numeric naming can paintings smartly in case your design method already makes use of numbered tokens. Your best option is the only your staff will perceive later.

How The Scale Is Calculated

Fluid Scale makes use of modular ratios to construct comparable font sizes. Each and every step grows or shrinks through a constant ratio, which helps to keep the sort hierarchy balanced.

The default setup makes use of a tighter ratio for smaller displays and a bigger ratio for desktop. That is helping headings keep managed on cellular whilst giving greater displays a more potent typographic hierarchy.

You’ll use the default ratios, make a choice any other preset ratio, or customise the values manually.

Divi additionally allows you to make a choice the generated CSS unit. The default is rem, which is typically a sensible choice for typography as it respects the basis font dimension. The 1rem Equals box tells Divi what pixel worth to make use of for the calculations.

Generated CSS units and rem settings in Divi 5 Variable Generator

Fluid Scale Settings

The Fluid Scale settings help you regulate the anchor dimension, the responsive vary, and the way the size relates on your format.

Fluid Scale settings in Divi 5 Variable Generator

Key settings come with:

  • Base Dimension: Units the anchor step within the scale. That is regularly the frame textual content dimension.
  • Base Min. Font Dimension: Units the minimal dimension for the bottom step on the smaller finish of the viewport vary.
  • Viewport Decrease Prohibit: Units the place the decrease finish of the fluid vary starts.
  • Base Max. Font Dimension: Units the utmost dimension for the bottom step on the greater finish of the viewport vary.
  • Desktop Row Width: Is helping Divi calculate the size in line with your content material width relatively than simplest the overall browser width.
  • Desktop Row Max-Width: Is helping outline the utmost content material space used within the calculation.

Those settings are helpful as a result of typography typically belongs to the content material space, no longer the overall browser window. A web site with a slender max-width will have to no longer scale sort the similar manner as a full-width format.

What The CSS Seems Like

Fluid Scale outputs values the usage of clamp(). The construction looks as if this:

clamp(minimal, most popular, most)

CSS clamp function generated by Divi 5 Variable Generator

The primary worth units the smallest allowed dimension. The ultimate worth units the most important allowed dimension. The center worth controls how the dimensions adjustments between the ones limits.

See also  Part 5 Of Mastering Flexbox: Reordering Content For Better Mobile Layouts

You’ll use the are living preview to peer how the size responds earlier than saving it.

When To Use Fluid Scale

Use Fluid Scale when you need typography to reply easily throughout display sizes. It really works particularly smartly for:

  • Fashionable responsive web pages
  • Fluid layouts
  • Editorial pages
  • Touchdown pages
  • Websites with versatile boxes and spacing
  • Design programs the place typography will have to adapt with out handbook breakpoint edits

For many Divi 5 websites, Fluid Scale is the most secure default as it offers you responsive typography with fewer handbook selections after setup.

2. Fastened Scale Responsive

Fastened Scale Responsive makes use of outlined values at particular breakpoints. As a substitute of scaling regularly, every variable adjustments when the viewport crosses a breakpoint.

Fixed Responsive scale preview in Divi 5 Variable Generator

This way offers you extra specific regulate. You make a decision the values for Telephone, Pill, Desktop, and any further breakpoints you allow. The browser then applies the proper worth for the present viewport.

What Divi Generates

Fastened Scale Responsive creates the similar roughly named quantity variables as Fluid Scale, however the values are structured round breakpoints.

A variable would possibly use one dimension on Telephone, any other dimension on Pill, and any other dimension on Desktop. The worth does no longer slide between them. It adjustments when the energetic breakpoint adjustments.

That is useful when your design has intentional shifts between system sizes. As an example, a desktop format would possibly use a bigger heading hierarchy, whilst the cellular format would possibly want a tighter scale.

Scaling ratios for Fixed Responsive font variables in Divi 5

Divi 5 helps more than one responsive breakpoints, together with Telephone, Telephone Huge, Pill, Pill Huge, Desktop, Widescreen, and Extremely Huge. Most effective the energetic breakpoints are incorporated within the generated output.

Fastened Responsive Settings

With Fastened Scale Responsive, settings are arranged according to breakpoint. Each and every energetic breakpoint could have its personal base dimension and ratio.

Fixed Responsive settings in Divi 5 Variable Generator

Key settings come with:

  • Breakpoint Toggles: Come with or exclude particular breakpoints from the generated scale.
  • Base Dimension: Units the anchor font dimension for every breakpoint.
  • Scale Ratio: Units how strongly every step grows at every breakpoint.

This allows you to create a compact scale on telephones and a extra dramatic scale on desktop, whilst nonetheless preserving every breakpoint managed.

What The CSS Seems Like

Fastened Scale Responsive outputs simple values which might be scoped to breakpoint laws. Each and every variable will get a price for every enabled breakpoint.

Responsive CSS output for Fixed Responsive variables in Divi 5

There is not any fluid center vary. A dimension may well be one worth beneath a breakpoint and any other worth above it. That makes the habits predictable, however much less fluid.

When To Use Fastened Scale Responsive

Use Fastened Scale Responsive when you need actual regulate at every system dimension. It really works smartly for:

  • Consumer initiatives with particular font sizes in design recordsdata
  • Layouts that vary construction sharply between breakpoints
  • Websites the place cellular and desktop will have to have noticeably other sort programs
  • Tasks the place designers wish to approve actual values according to breakpoint
  • Builds that depend on many customized breakpoints

Fastened Scale Responsive offers you extra regulate than Fluid Scale, nevertheless it additionally asks you to make extra selections.

3. Fastened Scale Unmarried

Fastened Scale Unmarried creates one static font scale. Each and every variable will get one worth, and that worth remains the similar throughout display sizes.

Fixed Single scale option in Divi 5 Variable Generator

That is the most simple scale sort. There is not any fluid scaling and no breakpoint-specific output.

What Divi Generates

Fastened Scale Unmarried creates named quantity variables like the opposite scale sorts, however every variable shops one static worth.

Fixed Single CSS output in Divi 5 Variable Generator

As an example, a medium textual content variable would possibly output one worth and use it far and wide.

–text-m: 1.125rem;

There aren’t any clamp purposes and no media-query-based worth adjustments. The hierarchy continues to be modular since the scale makes use of a base and ratio, nevertheless it does no longer reply to viewport dimension.

Fastened Unmarried Settings

Fastened Scale Unmarried has the fewest settings.

Fixed Single settings in Divi 5 Variable Generator

Key settings come with:

  • Scale Base: Units the anchor dimension for the size.
  • Scale Ratio: Units the multiplier used to generate greater and smaller steps.

As a result of there is just one base and one ratio, Fastened Unmarried is speedy to configure. It is usually the least responsive choice.

When To Use Fastened Scale Unmarried

Use Fastened Scale Unmarried when the textual content dimension will have to stay solid throughout display sizes. It really works smartly for:

  • Fastened-width layouts
  • Small application textual content
  • Labels, captions, and metadata
  • Criminal replica or high quality print
  • Easy prototypes
  • Tasks with strict emblem laws for actual font sizes
See also  How To Make A Website That Makes Money (2024 Guide)

Fastened Unmarried isn’t the most productive have compatibility for a complete responsive typography method on most current websites, however it may be helpful for particular textual content roles that are supposed to no longer scale.

Which Font Scale Sort Must You Use?

The most productive scale sort is dependent upon how a lot responsive habits you need.

Use Fluid Scale For Maximum Responsive Websites

Select Fluid Scale when you need typography to conform easily between small and big displays. It really works smartly for most current Divi 5 builds and pairs naturally with fluid layouts, responsive spacing, and versatile boxes.

That is the most productive default for whole typography programs.

Use Fastened Scale Responsive For Actual Breakpoint Regulate

Select Fastened Scale Responsive when you wish to have particular font sizes at particular breakpoints. This comes in handy when a design document provides actual cellular, pill, and desktop values, or when a format adjustments sharply between gadgets.

That is the most suitable choice when precision issues greater than clean scaling.

Use Fastened Scale Unmarried For Static Textual content Roles

Select Fastened Scale Unmarried when a price will have to keep the similar on each and every display dimension. It comes in handy for small textual content roles, fixed-width layouts, prototypes, and emblem programs that require actual static sizes.

That is the most simple choice, nevertheless it will have to be used deliberately.

Can You Exchange Scale Sorts Later?

Sure, however deal with the size sort as a design-system resolution.

Generated variables may also be edited within the Variable Supervisor. You’ll additionally run the generator once more if you wish to create a brand new scale. For those who use the similar variable names, watch out as a result of converting the generated values can impact each and every preset and module that references the ones variables.

That may be helpful when you need to replace a site-wide typography method. It might additionally create sudden adjustments when you overwrite variables with out reviewing the place they’re used.

Ahead of changing an present scale, take a look at which presets depend on the ones variables and preview the end result throughout key templates.

How Font Dimension Variables Have compatibility Into Divi 5’s Design Machine

The Variable Generator creates the root layer. The variables are the reusable values. Your next step is to use the ones variables thru presets. As an example, it’s possible you’ll use generated font dimension variables in:

  • Heading Textual content Choice Crew Presets
  • Frame Textual content Choice Crew Presets
  • Button Textual content Choice Crew Presets
  • Blurb Name Presets
  • Card or Loop Structure Presets
  • Complete Component Presets for modules

This is the place the size begins operating around the web site. As a substitute of manually coming into font sizes in every module, you reference the variable thru a preset. Then the preset carries that call into each and every appropriate module that makes use of it.

For a deeper walkthrough of this sediment, Part 3 of the Divi 5 design system guide presentations how Design Variables and presets paintings in combination.

Use The Variable Generator In Divi 5 These days!

Fluid, Fastened Responsive, and Fastened Unmarried all create usable font dimension variables, however they remedy other issues. Fluid Scale offers you clean responsive typography. Fastened Scale Responsive offers you actual values according to breakpoint. Fastened Scale Unmarried offers you one solid scale for each and every display dimension.

Get started with the habits you need, then make a choice the size sort that helps it. After the variables are generated, attach them on your presets so your typography method can keep constant throughout your Divi 5 web site.

The put up Comparing The Font Scale Types In Divi 5’s Variable Generator seemed first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

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

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

You have Successfully Subscribed!