Styling one border or shadow is fast. Preserving that very same border or shadow constant throughout a complete web site is more difficult.
A card will get one border. A column will get a relatively other one. A button shadow is copied from some other web page. Then the design path adjustments, and you have got to trace down the similar small taste resolution throughout a couple of modules.
Divi 5 will give you a greater workflow with Option Group Presets. As an alternative of saving a complete module design, you’ll be able to save one reusable staff of settings, comparable to Border or Field Shadow, and observe it anywhere that possibility staff is to be had.
On this publish, we’ll display you the way to create reusable border and shadow presets, order them into a sensible preset library, use Design Variables inside of them, and replace the ones kinds globally from one position.
Why Create A Border And Shadow Preset Library?
Borders and shadows regularly seem like minor styling main points, however they form how polished a web site feels. If playing cards, pictures, sections, bureaucracy, and callouts all use relatively other radius values, border colours, or shadow strengths, the design begins to really feel inconsistent.
A preset library provides the ones repeated selections a transparent construction.
- Transparent names make presets more straightforward to reuse: Labels comparable to Border: Card, Border: Divider, Shadow: Delicate, and Shadow: Floating inform you what each and every preset is for.
- Shared presets cut back guesswork: As an alternative of rebuilding the similar border or shadow via hand, you observe the stored preset.
- World edits save time: Replace the preset as soon as, and each component the usage of that preset can observe the exchange.
- Defaults accelerate new builds: When a preset is about because the default for an possibility staff, new parts can get started with the suitable styling already carried out.
- Reusable libraries strengthen design techniques: Borders and shadows develop into a part of a constant visible language as a substitute of one-off styling possible choices.
The objective isn’t to create dozens of presets for each conceivable scenario. The objective is to create a small, transparent library you’ll be able to handle.
What Are Choice Crew Presets In Divi 5?
Ahead of Choice Crew Presets, reusable styling in Divi most often supposed saving an Part Preset. Part Presets are nonetheless helpful, however they save the styling for a complete component or module kind.
That works when you need an entire Button preset, Blurb preset, or Name To Motion preset. It’s much less helpful while you best wish to reuse one a part of the design.
Choice Crew Presets resolve that. They save a particular possibility staff, comparable to:
- Border
- Field Shadow
- Spacing
- Background
- Sizing
- Textual content
- Button
A Border preset created on a Column may also be carried out to a Segment, Row, Symbol module, Crew module, or another component that helps the Border possibility staff. A Field Shadow preset works the similar means throughout parts that reveal Field Shadow controls.
That smaller scope is what makes Choice Crew Presets tough. You’ll reuse one styling resolution with out bringing alongside each different atmosphere from the unique module.
The place Design Variables Have compatibility In
Design Variables retailer reusable values, comparable to colours, numbers, fonts, pictures, and hyperlinks.
Whilst you use variables inside of a preset, the preset turns into more straightforward to handle.
For instance, a border preset may use:
- A Colour Variable for the border colour
- A Quantity Variable for the border width
- A Quantity Variable for the border radius
A shadow preset may use:
- A Colour Variable for the shadow colour
- Quantity Variables for blur, unfold, or vertical place
The variable holds the uncooked worth. The preset applies that worth to a styling development. If the variable adjustments later, each preset and component referencing it might probably keep aligned with the up to date design gadget.
How To Create Reusable Border Presets
There are two sensible techniques to create a Border Choice Crew Preset in Divi 5.
You’ll create one at once from a component you might be already styling, or you’ll be able to create one from the Preset Supervisor earlier than making use of it to an actual component.
Trail 1: Create A Border Preset From An Part
This trail works neatly if you find yourself already designing in context. You taste a component, verify that it appears to be like proper within the format, then save that Border staff as a reusable preset.
Open An Part And Move To The Design Tab
Click on a component to your format. A Column is a superb instance as a result of borders are regularly used on playing cards and boxes, however the similar workflow works for Sections, Rows, Teams, Photographs, Blurbs, and different parts that come with Border settings.
Open the component settings, then click on the Design tab.

Scroll to the Border possibility staff.

Open the gang to get entry to border radius, width, colour, and elegance controls.

Set The Border Taste
Get started with Border Radius. The 4 nook fields are connected via default, so one worth applies to all corners. You’ll unlink them if the design wishes other values for each and every nook.
Use a Quantity Variable in case your web site already has a radius scale.

Subsequent, set the border width and colour. A Colour Variable works neatly for border colour as it assists in keeping the preset attached for your web site’s broader colour gadget.

Through default, width and colour observe to all 4 aspects. You’ll unlink the edges when you wish to have a backside border, left accessory border, top-and-bottom divider, or some other directional remedy.
In spite of everything, make a choice a border taste. Forged borders paintings neatly for card outlines, symbol frames, and shape fields. Dashed or dotted borders can paintings for secondary boxes, placeholder spaces, or ornamental separators.

Save The Border Crew As A Preset
As soon as the border appears to be like proper, hover over the Border staff header. Click on the preset icon that looks.

Make a choice New Preset From Present Types to save lots of the border settings you simply created.
![]()
Give the preset a transparent title and reserve it.
Excellent preset names describe the manner, now not best the component the place it used to be created. For instance:
- Border: Card
- Border: Delicate
- Border: Divider
- Border: Accessory Left
- Border: Symbol Body
That naming way issues for the reason that identical preset can be utilized throughout other component sorts.
Trail 2: Create A Border Preset In The Preset Supervisor
The second one trail begins within the Preset Manager. This comes in handy when you need to outline your preset library earlier than styling person parts.
It is usually useful on collaborative builds. As an alternative of each and every individual growing borders their very own means, the crew can pull from the similar preset library from the beginning.
Open The Preset Supervisor And Transfer To Crew Presets
Click on the Preset Supervisor icon within the left sidebar of the Visible Builder.
The Preset Supervisor will give you a central view of your preset library. Part presets and staff presets are controlled one at a time.
Move to the Crew tab. That is the place Choice Crew Presets are living, together with Border, Field Shadow, Spacing, Background, and different possibility staff presets.
Make a choice Border to view or create Border presets.

Upload A New Border Preset
Click on Upload New Preset.

The Preset Preview panel opens. This permits you to edit the preset itself with out converting a component at the web page.
Set the border radius, width, colour, aspects, and elegance. The preview updates as you’re employed, so you’ll be able to take a look at the preset earlier than making use of it to an actual component.

When the preset is able, title it and reserve it. It’s going to seem within the Border preset library and may also be carried out around the web site.
How To Create Reusable Shadow Presets
Field Shadow presets paintings the similar means as Border presets. You’ll create them from a component’s settings or from the Preset Supervisor.
Open a component, cross to the Design tab, extend Field Shadow, set the manner, and save the gang as an Choice Crew Preset. Or open the Preset Supervisor, cross to the Crew tab, make a choice Field Shadow, and create the preset there.
Get started With The Field Shadow Controls
The Field Shadow staff contains integrated shadow choices that can be utilized as beginning issues.

After opting for a place to begin, alter the shadow settings.
The primary controls come with:
- Horizontal Place: Strikes the shadow left or proper.
- Vertical Place: Strikes the shadow up or down.
- Blur Power: Controls how comfortable or sharp the shadow seems.
- Unfold Power: Expands or contracts the shadow.
- Shadow Colour: Units the colour and opacity of the shadow.
- Field Shadow Place: Switches between outer and inside shadow conduct.

Vertical Place and Blur Power most often do probably the most visible paintings. Smaller values really feel tighter and extra grounded. Better values make a component really feel extra lifted.
Unfold Power can lend a hand comprise the shadow. A damaging unfold can pull the shadow again so it does now not spill too a ways previous the component.
Use Variables For Shadow Values
For a maintainable shadow gadget, attach shadow values to Design Variables the place it is sensible.

A shadow colour variable assists in keeping shadow tone constant around the web site. Opacity issues up to colour right here. Maximum interface shadows paintings perfect after they keep delicate.
You’ll additionally use Quantity Variables for values comparable to blur, unfold, or vertical place. This comes in handy if you need a small shadow scale, comparable to:
- Shadow: Delicate
- Shadow: Medium
- Shadow: Floating
Internal shadows must be used extra selectively. They are able to paintings neatly for inset shape fields, pressed states, toggles, and panels that desire a recessed impact.
Title Shadow Presets Through Weight And Context
Shadow presets are best to control when the title tells you the way robust the shadow is.

Excellent examples come with:
- Shadow: Delicate
- Shadow: Medium
- Shadow: Floating
- Shadow: Inset
- Shadow: Darkish Segment
In case your web site has each mild and darkish sections, imagine separate shadow presets for each and every context. A shadow that appears comfortable on a gentle background might disappear on a depressing one, or really feel too heavy when the background adjustments.
Practice Border And Shadow Presets Throughout Your Web page
After your presets are stored, making use of them is fast.
Open any component that helps the choice staff, cross to the Design tab, hover over the Border or Field Shadow staff header, click on the preset icon, and make a choice the preset from the listing.

This will paintings throughout other component sorts for the reason that preset belongs to the choice staff, now not the module. The similar Border preset can taste a Column, Segment, Symbol, Crew, or Blurb when the Border possibility staff is to be had.
Use Native Overrides When Wanted
Presets don’t save you one-off changes. If a preset units a 4px border however one component wishes 3px, you’ll be able to override that particular worth at the component.
The remainder of the preset can keep attached. For instance, the colour, radius, and border taste can stay managed via the preset whilst the only component makes use of its personal width worth.
Use overrides deliberately. If the similar override begins showing in a couple of puts, reserve it as a brand new preset as a substitute of repeating it via hand.
Set Defaults For Quicker Builds
If a border or shadow taste must be the default for brand new parts, set it because the default preset.
Defaults are helpful for repeated patterns comparable to:
- Same old card borders
- Default symbol frames
- Shape box borders
- Delicate phase shadows
- Default container radius
This reduces the collection of guide styling selections you wish to have to make whilst construction new sections.
Use Border And Shadow Presets In combination
Border and shadow presets paintings particularly neatly in combination as a result of they keep an eye on separate portions of a visible taste.
For instance:
- Border: Card controls the description and radius.
- Shadow: Delicate controls intensity.
- Background: Floor controls the cardboard background.
- Spacing: Card Padding controls inner spacing.
Preserving the ones selections separate will give you flexibility. You’ll use the similar border with other shadows, or the similar shadow with other border remedies.
Use Nested Presets For Better Patterns
Nested Presets let smaller Choice Crew Presets sit down inside of greater presets or Part Presets.
For instance, you may create:
- Border: Radius Same old
- Border: Card Define
- Shadow: Delicate
- Part Preset: Card
The Part Preset can come with the smaller Choice Crew Presets. Whilst you observe the Card Part Preset, the border and shadow selections include it whilst nonetheless staying editable from their very own preset resources.
This will give you a layered gadget:
- Variables cling reusable values.
- Choice Crew Presets observe the ones values to 1 staff of settings.
- Nested Presets mix smaller preset selections.
- Part Presets observe complete design patterns to modules.
Each and every layer remains more straightforward to replace as it has a transparent activity.
Blank Up Present Border And Shadow Types
If a web page used to be constructed earlier than your preset library existed, it is going to nonetheless comprise static values: one-off border colours, inconsistent radius values, or shadow settings that don’t fit your gadget.
Divi 5 will give you a number of equipment to wash that up.
Use Inspector To Audit Present Types
Use the Inspector when you wish to have to know what’s already at the web page.
Proper-click a piece and make a choice Check up on. You’ll overview carried out kinds in a single position as a substitute of opening each module in my opinion.
This comes in handy when a row of playing cards appears to be like relatively inconsistent however you don’t but know which border, radius, or shadow values are other.
Use To find And Exchange For Identified Values
Use Find And Replace while you already know the precise worth you need to switch.
For instance, you’ll be able to substitute a static border colour with a Colour Variable, exchange a repeated 1px border width to 2px, or replace a shadow colour that now not suits your gadget.
Use Most effective Exchange Equivalent Fields sparsely. It may lend a hand save you a bunch meant for border radius from being changed in unrelated fields that occur to make use of the similar worth.
Use Lengthen Attributes To Reproduction A Proper Taste
Use Extend Attributes when one component already appears to be like proper and you need matching parts to make use of the similar styling.
Proper-click the styled component, make a choice Lengthen Attributes, then prolong the Border possibility staff, Field Shadow possibility staff, or each. Make a choice the scope and goal component sorts, then observe the exchange.
That is much less about discovering a worth and extra about announcing: make the remainder fit this component.
Replace Presets Globally In The Preset Supervisor
When you wish to have to switch a preset, you do not want to search out a component the usage of it first.
Open the Preset Supervisor, cross to the Crew tab, to find the Border or Field Shadow preset, and edit it. The Preset Preview gadget allows you to alter the preset in a protected preview space earlier than saving.
After you save, the exchange applies to parts the usage of that preset.
The Preset Supervisor could also be helpful for organizing your library. You’ll replica a preset to create a variation, set a preset because the default, take away presets that now not have compatibility, and transfer your most-used presets the place they’re more straightforward to search out.
Best possible Practices For Border And Shadow Presets
A preset library works perfect when it remains small, named obviously, and attached to reusable values.
- Title via position: Use names comparable to Border: Card or Shadow: Delicate as a substitute of names tied to 1 module.
- Use variables the place conceivable: Attach colours, radius, width, and shadow values to Design Variables when the ones values must keep international.
- Separate border and shadow selections: Stay Border and Field Shadow presets impartial until you deliberately mix them thru nesting or an Part Preset.
- Create permutations deliberately: A small library of Delicate, Medium, and Robust is more straightforward to control than ten just about an identical shadows.
- Use defaults for repeated patterns: Set default presets for not unusual card, symbol, or box remedies.
- Audit older pages: Use Inspector, To find And Exchange, and Lengthen Attributes to convey older static values into your preset gadget.
- Evaluation on mild and darkish backgrounds: Borders and shadows can really feel very other relying at the phase background.
Construct A Reusable Border And Shadow Device In Divi 5
Borders and shadows are small main points, however they seem all over the place. When they’re controlled module via module, they develop into laborious to handle. When they’re stored as Choice Crew Presets in Divi 5, they develop into a part of your design gadget.
Create a targeted preset library, attach repeated values to Design Variables, mix presets when wanted, and replace them from the Preset Supervisor when the design adjustments.
That means, your playing cards, pictures, sections, bureaucracy, and callouts keep constant with out restyling the similar settings over and over.
The publish How To Create Reusable Border And Shadow Presets In Divi 5 seemed first on Elegant Themes Blog.



0 Comments