Get Active Theme Styles is a WordPress ability from Premium Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Active Theme Styles

Read-only
Premium Addons for Elementor Page Builders premium-addons/get-theme-styles

Read the color and typography presets the active theme defines, plus the resolved site-wide styles it applies.

Requires the Premium Addons for Elementor plugin on WordPress 7.0+ for the Abilities API (abilities are registered only when the wp_register_ability() function exists). Dashboard, settings and site-inventory abilities (get-id-by-title, list-pages, list-templates, get-global-settings, get-settings, update-setting, scan-usage, disable-unused-widgets, clear-dynamic-assets, subscribe-newsletter) require the caller hold the 'manage_options' capability. premium-addons/create-page requires 'edit_pages'. premium-addons/get-widget-schema, premium-addons/get-addon-schema, premium-addons/list-available-elements, premium-addons/list-pa-addons, premium-addons/detect-atomic-support, premium-addons/check-elementor-element and premium-addons/create-elementor-template require 'edit_posts'. premium-addons/get-page-structure, premium-addons/get-element-settings, premium-addons/add-flexbox, premium-addons/add-container, premium-addons/update-element-settings, premium-addons/insert-widget, premium-addons/remove-element, premium-addons/change-post-status and premium-addons/duplicate-post require 'edit_post' on the target post_id, and deny requests for a nonexistent post_id outright.

What it does

This ability reads the active theme's design tokens from WordPress's global settings/styles APIs (wp_get_global_settings() and wp_get_global_styles() with variables resolved) rather than Elementor's kit — it reports source (theme_json, theme_supports, or core_defaults), has_theme_json, is_block_theme, has_theme_palette and has_theme_typography flags, color presets (palette and gradients, each split by theme/default/custom origin with slug, name, value, and CSS custom property), typography presets (font families and font sizes, same origin split), and the resolved site-wide styles (base color and typography, plus per-element styles for h1–h6 and link). When has_theme_palette or has_theme_typography is false, the site's real design tokens most likely live in the Elementor kit instead — cross-check with premium-addons/get-global-settings. It takes no input.

See it in action

You ask your AI assistant

"Does my active theme define its own color palette, or is everything coming from the Elementor kit instead?"

Returns

An object with source, has_theme_json, is_block_theme, has_theme_palette, has_theme_typography, colors (palette and gradients, each an object keyed by theme/default/custom with arrays of {slug, name, value, css_var}), typography (font_families and font_sizes in the same shape), and styles (color, typography, and elements — h1 through h6 and link — each with resolved values).

Permission

The current user must have the 'manage_options' capability, checked via Admin_Helper::check_user_can('manage_options').

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.