Variable fonts, Textual content Fill, and Textual content Stroke are 3 other typography controls in Divi 5. The font controls the form of the letters. The fill controls what seems within them. The stroke controls the brink.
You’ll use every one by itself, however they change into extra robust while you mix them. A variable font could make a heading thick sufficient for a gradient to turn obviously. A clear fill and stroke can flip a phrase right into a hole define. A large, heavy letterform can dangle a picture trend with out shedding clarity.
There is not any unmarried recipe. Each and every design beneath makes use of the similar 3 components another way. The primary layers defined and cast textual content round a cutout photograph. The second one makes use of a gradient-filled quantity with a mild stroke. The 3rd fills a full-width heading band with a picture trend.
Alongside the way in which, we’ll have a look at how variable font axes, Textual content Fill, Textual content Stroke, Gradient Variables, and presets paintings in combination so you’ll construct extra intentional typography results at once within Divi 5.
Figuring out Variable Fonts, Textual content Fill, And Textual content Stroke
Those settings are living within the Design tab of text-based modules and textual content choice teams, together with Textual content, Heading Textual content, and Identify Textual content. Variable font controls seem close to the font variety when the chosen font helps them. Fill and stroke settings seem within the textual content results space of the similar textual content crew.
We coated every fill sort in our information to Divi 5’s textual content fill choices. On this educational, we’ll center of attention on how the settings have an effect on every different whenever you get started combining them.
Variable Fonts
Practice a supported variable font to a component, and Divi 5 displays the axes to be had for that font. Each and every axis adjustments a part of the letterform.
Weight controls how heavy the strokes are. Width controls how slim or expanded the letters really feel. Relying at the font, you may additionally see axes similar to Slant, Grade, Skinny Stroke, Thick Stroke, or different font-specific controls.
For this educational, the necessary phase is the outside space within every letter. Heavier and wider settings most often give fills extra space to turn. Lighter and narrower settings go away much less room for gradients, photographs, and strokes to paintings.
The open spaces within letters like e, a, o, and g are known as counters. If a stroke is just too thick or a font weight is just too tight, the ones counters can begin to shut up. Stay that during thoughts as we construct the examples.
Textual content Fill
Textual content Fill controls what seems throughout the letter form.
Set Fill Sort to Gradient, and the letters are full of a gradient. Set it to Symbol, and the letters change into a masks for a picture. Set it to Clear, and the interior of the letters turns into see-through, which matches neatly when paired with a stroke for defined textual content.
The fill most effective has the interior of the letter to paintings with. A heavy heading offers the fill a large floor. A gentle heading offers it a skinny strip. This is why a gradient can glance wealthy within a daring heading however virtually flat within a skinny one.
Textual content Stroke
Textual content Stroke attracts a line across the fringe of the letters. Crucial controls are Stroke Width, Stroke Colour, and Stroke Place.
Stroke Place issues as it adjustments how a lot of the fill remains visual. A targeted stroke sits in part throughout the letter and in part out of doors it. The interior phase covers one of the vital fill. An out of doors stroke protects extra of the fill since the define sits past the letter form.
For instance, a targeted 3px stroke can paintings properly on a big, heavy heading as a result of there’s nonetheless a lot of fill visual throughout the letters. On a smaller or lighter heading, that very same stroke can take over an excessive amount of of the letter and make the fill tougher to peer.
When you need a stroke to outline the brink with out reducing right into a gradient or symbol fill, use an out of doors stroke place the place to be had. When you need the stroke to really feel extra built-in with the letterform, a targeted stroke can nonetheless paintings, particularly at massive sizes.
How The 3 Impact Each and every Different
The font makes a decision the letter form. The fill sits within that form. The stroke defines the brink. That order issues. Set the variable font axes first so the letters have the proper weight, width, and counters. Then select the fill. Then make a decision whether or not the stroke will have to be delicate, daring, targeted, or out of doors.
A gradient wishes sufficient letter floor to turn motion. A picture fill wishes sufficient floor to turn element. A stroke wishes sufficient letter width to steer clear of crowding the fill. Whenever you remember the fact that dating, you’ll mix the settings extra freely and nonetheless stay the heading readable.
Design 1: A Layered Hero With Defined And Cast Textual content
The primary design places two headings on best of one another. The again phrase is hole, the use of a clear fill and a white stroke. The entrance phrase is cast white and sits over the cutout photograph.

This mix works as a result of every layer has a unique task. The defined phrase creates the dimensions and construction of the hero. The cutout photograph provides intensity. The cast phrase carries the principle message. Not anything right here wishes a gradient or symbol fill. The impact comes from the font axes, one clear fill, one stroke, and cautious stacking.
Step 1. Set Up The Segment And Row
Upload a brand new phase and open its settings. Beneath Background, set the phase background for your darkish base colour. When you already use Colour Variables, pull in the dead of night colour out of your palette as an alternative of typing the worth manually. The remainder of the design makes use of white textual content and a white define, so the hero wishes a depressing floor in the back of it.

Subsequent, set the phase top. Beneath Sizing, set Min Peak to 100vh so the hero fills the display screen. Then open Spacing and set Padding Best to 0px so the massive defined heading can take a seat nearer to the highest edge.
Upload a one-column row throughout the phase and open the row settings. Beneath Spacing, set Padding Best to 5%. This provides the heading some area with out growing a hard and fast hole that feels too massive or too small on other displays.

Step 2. Upload The Defined Heading
Upload a Heading module to the row and sort DIGITAL. That is the again layer of the hero. It must be sufficiently big to anchor the phase, slim sufficient to suit around the format, and thick sufficient for the stroke to stick open and readable.

Open the Design tab and cross to Heading Textual content. Set the Heading Degree to H1 and select Roboto Flex because the Heading Font. Roboto Flex works neatly right here as it will provide you with a number of helpful axes. Use those settings:
- Variable Font Weight: 592
- Variable Font Width: 38
- Variable Font Grade: 56
- Variable Font Skinny Stroke: 69

The slim width shall we a seven-letter phrase stretch around the phase with out overflowing. Grade and Skinny Stroke give the letterforms sufficient frame to improve a thick define.
Now set the scale. Use clamp(11rem, 40vw, 38rem) for Heading Textual content Dimension. This shall we the heading scale with the viewport whilst holding it from changing into too small or too massive. Set Heading Letter Spacing to 5px and Heading Textual content Alignment to middle.

Now flip the phrase into an summary. Set Heading Fill Sort to Clear. Then set Heading Stroke Width to 8px and Heading Stroke Colour to #FFFFFF.
The clear fill makes the interior of the phrase see-through, whilst the stroke attracts the letter edges. Since the variable font settings give the letters sufficient construction, the 8px stroke remains readable as an alternative of final up the counters.
In case your stroke begins to crowd the interior of the letters, both decrease the stroke width, building up the font weight, building up width somewhat, or transfer the stroke out of doors if that choice suits the design. Subsequent, set the stacking order. Open the column settings, cross to Design > Place, and set Z Index to 0. Then open the defined Heading module, cross to Place, and set its Z Index to 1.
The defined phrase now has its position within the stack. The picture and the cast heading will take a seat above it.
Step 3. Position The Cutout Photograph Over The Define
Upload an Symbol module beneath the defined heading and add your cutout photograph. Use a picture with the background already got rid of so the topic can take a seat between the 2 textual content layers cleanly.

Open the Design tab and cross to Sizing. Set Width to 100% so the picture fills the column. Then open Spacing and set Padding Backside to 300px. This assists in keeping enough room beneath the cutout for the cast heading layer.
Now carry the picture out of the standard format glide. Cross to Place and set Place to Absolute. Set Vertical Offset to 100px, then regulate the worth till the topic sits the place you need it throughout the defined phrase.

Set the picture Z Index to 2. The defined heading is on 1, so the photograph now sits above it. The description stays visual in the back of the topic and disappears anyplace the picture overlaps it.
Step 4. Upload The Cast Heading
Upload a 2nd Heading module beneath the picture and sort CREATIVE. That is the entrance layer. It makes use of the similar font because the defined phrase, however other axis values so the 2 phrases really feel comparable with out having a look equivalent.

Open the Design tab and cross to Heading Textual content. Set the Heading Degree to H2 and set the Heading Font to Roboto Flex. Use those variable font settings:
- Variable Font Weight: 550
- Variable Font Width: 25
- Variable Font Grade: -63
- Variable Font Skinny Stroke: 69
- Variable Font Thick Stroke: 103

The width is narrower than the defined phrase so the longer phrase can nonetheless are compatible around the phase. Grade strikes in the other way from the defined heading, trimming the letters somewhat with out converting the full width up to weight would.
Set Heading Textual content Dimension to clamp(11rem, 25vw, 34rem), Heading Line Peak to 1em, and Heading Letter Spacing to 5px. Set Heading Textual content Alignment to middle and Heading Textual content Colour to #FFFFFF.

Go away Heading Fill Sort on None and don’t upload a stroke. The entrance phrase will have to keep easy since the again phrase is already sporting the description impact. Now position it within the stack. Cross to Place and set Place to Relative. Set Z Index to 3 so it sits above each the defined phrase and the photograph.
Set Vertical Offset to -222px to tug the phrase into the decrease part of the defined heading. Alter that worth in keeping with your ultimate symbol place and textual content measurement.

Step 5. Upload The Tagline And Hyperlink Row
The principle sort impact is completed. Now upload the supporting textual content and hyperlink. Upload a brand new row beneath the hero row and select a two-column construction. If the row conflicts with the layered content material above it, upload best margin till the spacing feels balanced.
Position a Textual content module within the left column for the tagline and a 2nd Textual content module in the proper column for the hyperlink. Set the proper column textual content to correct alignment so it sits on the reverse fringe of the phase.

Stay those supporting textual content parts easy. Use small uppercase textual content, white colour, and no fill or stroke. If you have already got presets for small textual content and hyperlinks, practice the ones as an alternative of styling the modules manually.
Step 6. Test The Smaller Displays
Maximum of this design is responsive via design. The headings use clamp(), the phase makes use of vh, the row padding makes use of a share, and the picture width is about to 100%. The mounted pixel values want assessment.
Transfer to pill and call perspectives and take a look at the Vertical Offset at the CREATIVE heading. The desktop worth might position the heading too top or too low as soon as the textual content scales down. Set responsive values for pill and call till the overlap appears intentional at every breakpoint.
The picture module’s Vertical Offset and Padding Backside might want the similar remedy.
Then take a look at the ground row. On desktop, the tagline and hyperlink take a seat throughout from every different. On telephone, the columns stack, and the distance between the heading and tagline can get too tight. Upload responsive best margin to the row on telephone if the format wishes extra respiring room.
Two Extra Heading Permutations With Gradient And Symbol Fill
The following two designs use the similar 3 settings in numerous mixtures.
The primary fills a big quantity with a gradient and provides a mild stroke. The second one fills a full-width heading band with a picture trend. Each depend on variable font axes first, since the fill most effective works when the letters are large and heavy sufficient to turn it.
Variation 1: A Gradient Fill On An Outsized Quantity
Numbers are a powerful floor for gradient fills. Digits like 2, 5, and 0 create large shapes, so the gradient has room to transport around the letterform as an alternative of having squeezed right into a slim stroke.

Prior to styling the quantity, construct the gradient as soon as and reserve it as a variable.
Open any gradient box, create the gradient you need, then right-click the gradient box and select Convert To Variable. Give it a role-based identify similar to Logo Gradient. The gradient now lives within the Variable Supervisor and can also be reused any place gradients are supported, together with textual content fills.
The format makes use of two rows.
The primary row has 3 columns, with the center column set wider so the massive quantity has enough space. The left column holds the phase heading and supporting textual content. The center column holds the massive quantity. The fitting column holds the icon and outline.
The second one row has 3 equivalent columns. Each and every column incorporates a nested two-column row so a smaller quantity can take a seat beside its label and textual content.

Each and every quantity is a Heading module with Fill Sort set to Gradient. The huge quantity makes use of the stored Logo Gradient variable and a skinny white stroke. The smaller numbers use gradient fills with out strokes so the fill remains visual at their smaller measurement.
For the massive quantity, use a Heading module set in Roboto Flex with those settings:
- Variable Font Weight: 615
- Variable Font Width: 49
- Heading Textual content Dimension: 500px
- Heading Fill Sort: Gradient
- Heading Gradient Fill: Logo Gradient
- Heading Stroke Width: 6px
- Heading Stroke Colour: #FFFFFF
The load and width make the 6px stroke workable. If the quantity had been lighter or narrower, the stroke would take an excessive amount of area clear of the gradient. Because the quantity is huge and heavy, the fill nonetheless has enough space to turn the mix.
For the smaller numbers, use gradient fills with out stroke. At smaller sizes, even a skinny define can crowd the fill and make the gradient tougher to learn.
One element to keep in mind: the gradient maps to the textual content field, and the letters act like home windows onto it. A large textual content field displays extra of the gradient. A slim one compresses the visual a part of the mix. If two gradient-filled numbers glance other, take a look at each the gradient settings and the scale of the module field.
Variation 2: A Development Fill On A Complete-Width Band
The final design runs one massive line of textual content around the complete width of the phase and fills the letters with a picture trend. This type of band works neatly as a footer-style final mark, marketing campaign signoff, or visible divider.

The format makes use of two rows. The primary row holds the final content material at the left: an eyebrow, heading, quick paragraph, and hyperlink. The second one row is a one-column row maintaining the full-width heading band. Take away further phase padding across the band so the letters can run nearer to the phase edges.
The band is a Heading module set in Roboto Flex. Use those settings:
- Variable Font Weight: 766
- Variable Font Width: 25
- Variable Font Grade: -200
- Heading Textual content Dimension: 14vw
- Heading Fill Sort: Symbol
- Symbol Fill Place: Best Left
- Heading Stroke Width: 3px
- Heading Stroke Colour: #e68110
The width axis does lots of the format paintings. At 25, the letters are slim sufficient to suit around the phase. The load at 766 assists in keeping every letter thick sufficient to turn the trend. Drop the burden too a ways and the picture fill turns into skinny strips of colour. Build up the width an excessive amount of and the band might now not are compatible cleanly around the phase.
A trend works higher right here than an in depth {photograph}. A photograph steadily has one robust focal space and a large number of quieter spaces, because of this some letters might display the fascinating phase whilst others display filler. A repeating trend offers each letter a equivalent stage of element.
The stroke is helping dangle the perimeters in combination. Because the trend has mild spaces and the background could also be mild, a 3px orange define assists in keeping the phrase readable regardless of which a part of the trend seems within every letter.

If the stroke begins to cover an excessive amount of of the picture fill, scale back the stroke width or transfer the stroke out of doors. If the picture fill begins to lose its element, building up the font weight or select a trend with more potent distinction.
Save The Remedy As A Preset
The gradient quantity makes use of a number of settings: a selected font, axis values, a big textual content measurement, a gradient fill, a stored Gradient Variable, and a stroke. As an alternative of rebuilding that mixture each time, reserve it as a preset. Open the Heading module that holds the massive quantity. Hover close to the highest of the settings panel, click on the Preset icon, select New Preset From Present Kinds, and identify it one thing transparent, similar to Gradient Quantity.
The preset now shops the styling selections for that Heading module, together with the variable font settings, textual content measurement, gradient fill, and stroke. Practice Gradient Quantity to some other Heading module and the similar remedy seems in an instant.
If the gradient fill makes use of the Logo Gradient variable, the preset assists in keeping that variable connection. Edit the gradient variable later and each heading the use of that variable can replace with it.
You’ll additionally separate duties with presets. Let one preset deal with the typography impact, and let your present spacing, colour, or format presets deal with the encircling construction. That assists in keeping the impact reusable with out making each heading at the website online behave precisely the similar means.
Get Ingenious With Textual content Within Divi 5
Variable fonts, Textual content Fill, and Textual content Stroke in Divi 5 paintings best possible while you bring to mind them as a series.
First, use the variable font axes to form the letters. Lead them to heavy sufficient, large sufficient, slim sufficient, comfortable sufficient, or condensed sufficient for the design. Then select the fill that belongs within the ones letters: cast colour, gradient, symbol, or clear. In spite of everything, upload a stroke when the brink wishes definition.
Each and every instance on this educational implemented the similar thought in numerous tactics. The layered hero used clear fill and a white define. The outsized quantity used a gradient fill with a mild stroke. The entire-width band used a picture trend with an orange define.
As soon as you know how the font form, fill, and stroke have an effect on every different, you’ll create your personal mixtures with out depending on mounted formulation.
The put up How To Use Textual content Stroke, Textual content Fill, And Variable Fonts In combination In Divi 5 gave the impression first on Sublime Subject matters Weblog.
WordPress Web Design
