Elementor global colour and font CSS variables
The CSS variables Elementor creates for global colours and fonts, and how to use them in your own CSS.
By Anker Rasmussen, updated
Based on Elementor 4.3.6’s code, each global colour becomes a CSS variable named --e-global-color-{id}, such as --e-global-color-primary, and each global font becomes a set of --e-global-typography-{id}-… variables. They are scoped to .elementor-kit-{ID} on the page body, so var(--e-global-color-primary) works in custom CSS anywhere on the page.
- You want a global colour in custom CSS Use var(--e-global‑color‑primary), or -secondary, -text, -accent Based on Elementor 4.3.6’s code, not yet confirmed on a live site
- You need a custom colour’s variable It is --e-global‑color- followed by the colour’s 7-character id Based on Elementor 4.3.6’s code, not yet confirmed on a live site
- Theme Style and the globals disagree Global colours and fonts take precedence over Theme Style Elementor help centre: How Elementor’s Theme Style and Design System options work together
- Elementor’s default colours and fonts get in the way Turn on Disable Default Colors and Disable Default Fonts in Elementor › Editor › Settings Elementor help centre: Disable Elementor’s default fonts and colors
Checked against Elementor 4.3.6 source code and Elementor’s help centre on 8 November 2026. Not yet tested on a live site.
Not affiliated with or endorsed by Elementor.
Convert a kit to CSS variables or Tailwind
Colour variables
| Variable | Global | Default |
|---|---|---|
--e-global-color-primary | Primary | #6EC1E4 |
--e-global-color-secondary | Secondary | #54595F |
--e-global-color-text | Text | #7A7A7A |
--e-global-color-accent | Accent | #61CE70 |
--e-global-color-{id} | A custom colour; {id} is its 7-character id | none |
Font variables
Each system font (primary, secondary, text, accent) and each custom font gets one variable per property it sets. Defaults: Primary Roboto 600; Secondary Roboto Slab 400; Text Roboto 400; Accent Roboto 500.
| Variable |
|---|
--e-global-typography-{id}-font-family |
--e-global-typography-{id}-font-size |
--e-global-typography-{id}-font-weight |
--e-global-typography-{id}-text-transform |
--e-global-typography-{id}-font-style |
--e-global-typography-{id}-text-decoration |
--e-global-typography-{id}-line-height |
--e-global-typography-{id}-letter-spacing |
--e-global-typography-{id}-word-spacing |
What the variables look like
The CSS our kit engine produces for the example kit on the kit format page, in the same shape Elementor uses. {ID} is your kit’s post ID. Base values only; tablet and mobile values are left out.
.elementor-kit-{ID} {
--e-global-color-primary:#1F3A5F;
--e-global-color-secondary:#F2A541;
--e-global-color-text:#222222;
--e-global-color-accent:#3FA796;
--e-global-color-a1b2c3d:#FAF7F2;
--e-global-color-e4f5a6b:#5A5A5A;
--e-global-typography-primary-font-family:"Inter";
--e-global-typography-primary-font-weight:600;
--e-global-typography-secondary-font-family:"Fraunces";
--e-global-typography-secondary-font-weight:400;
--e-global-typography-text-font-family:"Inter";
--e-global-typography-text-font-weight:400;
--e-global-typography-accent-font-family:"Inter";
--e-global-typography-accent-font-weight:500;
--e-global-typography-c7d8e9f-font-family:"Inter";
--e-global-typography-c7d8e9f-font-weight:600;
--e-global-typography-c7d8e9f-font-size:12px;
--e-global-typography-c7d8e9f-letter-spacing:1.5px;
--e-global-typography-c7d8e9f-text-transform:uppercase;
}Using them in custom CSS
Reference a global with var() instead of copying its value into your CSS.
.pricing-card {
background: var(--e-global-color-accent);
color: var(--e-global-color-text);
font-family: var(--e-global-typography-primary-font-family), sans-serif;
font-weight: var(--e-global-typography-primary-font-weight);
}How widgets point at globals
Based on Elementor 4.3.6’s code: a widget that uses a global stores a reference such as globals/colors?id=primary rather than the colour value.
Theme Style vs global colours and fonts
“Theme Style sets fallback style definitions for HTML tags… Global Colors and Global Fonts are additional style layers that use CSS variables… take precedence.”
Disable Default Colors and Fonts
-
Find the setting. The Disable Default Colors and Disable Default Fonts options are on the Settings screen. Elementor’s newer help article gives Elementor › Editor › Settings; an older one gives Elementor › Settings › General.
Depending on your version:
Questions
What are the four system colour variables?
Do global colours override Theme Style?
Sources
- Elementor help: How Elementor’s Theme Style and Design System options work together (modified 5 February 2025)
- Elementor help: Theme Style global settings (modified 15 September 2026)
- Elementor help: Disable Elementor’s default fonts and colors (modified 15 June 2025)
- Elementor help: Configure Site Settings (modified 15 September 2026)
- Elementor 4.3.6 plugin source (wordpress.org)