Skip to content

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.

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

VariableGlobalDefault
--e-global-color-primaryPrimary#6EC1E4
--e-global-color-secondarySecondary#54595F
--e-global-color-textText#7A7A7A
--e-global-color-accentAccent#61CE70
--e-global-color-{id}A custom colour; {id} is its 7-character idnone
Global colour variables and Elementor’s defaults (Elementor 4.3.6 source)

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
Typography variables for a global font with id {id} (Elementor 4.3.6 source)

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.

kit.css
.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.

custom.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.”
Elementor’s help centre, “How Elementor’s Theme Style and Design System options work together”

Disable Default Colors and Fonts

  1. 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: Elementor › Editor › Settings Older versions: Elementor › Settings › General

Questions

What are the four system colour variables?
--e-global-color-primary, --e-global-color-secondary, --e-global-color-text and --e-global-color-accent. Custom colours use their 7-character id in place of the name.
Do global colours override Theme Style?
Yes. Elementor’s help centre says Global Colors and Global Fonts take precedence over Theme Style, which sets fallback styles for HTML tags.

Sources

  1. Elementor help: How Elementor’s Theme Style and Design System options work together (modified 5 February 2025)
  2. Elementor help: Theme Style global settings (modified 15 September 2026)
  3. Elementor help: Disable Elementor’s default fonts and colors (modified 15 June 2025)
  4. Elementor help: Configure Site Settings (modified 15 September 2026)
  5. Elementor 4.3.6 plugin source (wordpress.org)