Global Styles
Global Styles provide you with the capability to define your styling preferences for elements and colors within Lime Editor. These global styles are subsequently accessible throughout your entire website, enhancing your page builder workflow.
Access Global Styles
To access Global Styles, you can either open the Tools menu and select "Global Styles," or use the keyboard shortcut:
- macOS - ⌘ command + G
- Windows - Ctrl + G
Elements Tab
In the Elements tab, you can set up global styles for elements like text, headings, links, and buttons. The available styling options consist of a color picker, typography settings, and for buttons, there are choices for borders and radius adjustments.
You can override these styling options on a case-by-case basis using the module styling options.
Text
The global Text styling options allow you to style any text that is within<p>
and<span>
tags.infoIn case you haven't set up any global styling for Links, the text global styling will be applied.
Headings
The global Heading styling choices enable you to style all heading tags (<h1>
,<h2>
,<h3>
,<h4>
,<h5>
, and<h6>
).Links
The global Link styling options enable you to customize the appearance of HTML links, which also includes an additional color picker for link hover color.Buttons
The global Button styling options allow you to style button tags (<button>
) as well as any HTML link using thefl-button
class.<a href="https://mywebsite.com/" class="fl-button">Some Link</a>
Colors Tab
The Colors tab allows you to generate a universal color palette. These colors can be easily reached within your Lime Editor layouts through the color picker tool and a color field connection.
While global colors utilize field connections, Beaver Themer is not required. You can access your global color field connections with only Lime Editor installed.
You can override these styling options on a case-by-case basis using the row, column, and module color picker options.
Add a Global Color
To add a global color:
- Navigate to Global Styles within the Tools menu and choose the Colors tab.
- Assign a name to your color, such as "primary color."
- Use the color picker to choose your desired color.
While assigning a color name, you have the flexibility to use lowercase, uppercase, or capital letters. If you opt for uppercase or capital letters in your color name, they will be automatically converted to lowercase for the CSS Variable name.
You have the option to include additional global colors by either clicking the Add Global Colors button or duplicating a color item using the duplicate icon located in the upper right-hand corner.
Rearrange Global Colors
You can rearrange the order of any added global colors by using the Move icon located in the upper right-hand corner of the color item you intend to reposition. Simply drag and drop the item to your preferred position.
The Move icon becomes accessible only when you possess more than a single global color item.
Delete Global Color
To remove a global color item, simply click the Delete icon located in the upper right-hand corner of the color item you wish to delete.
Apply a Global Color
To apply a global color:
- Access the Settings Window for a row, column, or module.
- Identify a Color option, then click the Field Connection Toggle to its right.
- This will reveal the Field Connection Menu, containing a list of your global colors and WordPress core global colors.
- Click Connect for the desired global color you wish to apply.
Global Color CSS Variables
Any Global Color you create is automatically generated as a CSS Variable, which can be utilized in custom CSS. The CSS Variable uses a prefix of --fl-global-color-
, followed by the assigned name of your global color.
For example, if you named a global color item as primary color, the CSS Variable for that item would be:
--fl-global-color-primary-color
You can make use of your global color in custom CSS by using the CSS Variable, as shown in the example below:
p {
color: var(--fl-global-color-primary-color);
}
.my-custom-class {
color: var(--fl-global-color-secondary-color);
}
#my-custom-id {
color: var(--fl-global-color-tertiary-color);
}