wp_update_global_styles is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_update_global_styles
DestructiveDescription
A single conversation can rebrand your entire WordPress site: tell your AI client the new primary color, heading font, and spacing scale, and Easy MCP AI writes the changes to global styles instantly — no file edits, no Site Editor, no code. Requires an active block theme. Because global styles cascade across every block on the site, this is the highest-leverage design tool Easy MCP AI exposes, and the one most worth pairing with a read-first step.
See it in action
wp_get_global_styles Reading current global styles before editing…
{
"theme": "twentytwentyfour",
"styles": {
"color": { "background": "#ffffff", "text": "#111827" },
"typography": { "fontSize": "1rem", "fontFamily": "Inter, sans-serif" }
}
} wp_update_global_styles {
"theme": "twentytwentyfour",
"updated_fields": ["typography.fontSize", "color.text"],
"styles": {
"typography": { "fontSize": "1.125rem" },
"color": { "text": "#0f172a" }
}
} Read current styles — font-size was 1rem, text color was #111827. Updated font-size to 1.125rem and text to #0f172a.
Example Use Cases & Sample Prompts
- Changing the brand color
- Prompt: “Update my site’s primary color in global styles to #2563EB.”
- Switching the heading font
- Prompt: “Change the heading font in global styles to Inter and the body font to Georgia.”
- Sitewide rebrand
- Prompt: “Update global styles with our new brand colors, fonts, and spacing scale.”
- Dark mode adjustment
- Prompt: “Update the background color in global styles to a dark charcoal (#1a1a1a) for a dark theme.”
- Spacing system update
- Prompt: “Change the default spacing presets in global styles to use a tighter scale.”
Frequently Asked Questions
What does wp_update_global_styles do?
A single conversation can rebrand your entire WordPress site: tell your AI client the new primary color, heading font, and spacing scale, and Easy MCP AI writes the changes to global styles instantly — no file edits, no Site Editor, no code. Requires an active block theme. Because global styles cascade across every block on the site, this is the highest-leverage design tool Easy MCP AI exposes, and the one most worth pairing with a read-first step.
How do I use wp_update_global_styles with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Update my site's global styles to change the primary color to #2563EB and the heading font to Inter."
Do I need Easy MCP AI to use wp_update_global_styles?
Yes. wp_update_global_styles is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
Global StylesGet the current global styles settings and styles object (requires block theme)
Update a block template's content (requires block theme)
Get the name, version, and details of the currently active WordPress theme
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_update_global_styles and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.