Theme Json
Template Parts
Complete reference for templateParts in theme.json. Overview The templateParts array registers reusable template sections like headers, footers, and sidebars. {...
theme.json
Global settings and styles configuration for WordPress block themes. Since: 5.8.0 Current Schema Version: 3 Source: wp-includes/class-wp-theme-json.php Purpose theme.json provides...
Spacing Settings
Complete reference for settings.spacing in theme.json. Overview { "settings": { "spacing": { "blockGap": null, "customSpacingSize": true, "defaultSpacingSizes": true, "margin": false,...
Typography Settings
Complete reference for settings.typography in theme.json. Overview { "settings": { "typography": { "customFontSize": true, "defaultFontSizes": true, "dropCap": true, "fluid": false,...
Styles Configuration
Complete reference for styles in theme.json. Overview The styles section defines CSS styling rules that WordPress applies globally and per-block....
Color Settings
Complete reference for settings.color in theme.json. Overview { "settings": { "color": { "background": true, "custom": true, "customDuotone": true, "customGradient": true,...
Layout Settings
Complete reference for settings.layout in theme.json. Overview { "settings": { "layout": { "contentSize": "650px", "wideSize": "1200px", "allowEditing": true, "allowCustomContentAndWideSize": true...
Other Settings
Complete reference for border, shadow, dimensions, position, background, appearance tools, custom properties, and other settings. appearanceTools Meta-setting that enables multiple...
Per-Block Settings
Complete reference for settings.blocks in theme.json. Overview The settings.blocks object allows you to override global settings for specific blocks. {...
Custom Templates
Complete reference for customTemplates in theme.json. Overview The customTemplates array registers custom page/post templates that users can select in the...
Patterns
Complete reference for patterns in theme.json. Overview The patterns array registers block patterns that are bundled with or referenced by...
theme.json Schema Overview
The theme.json file is WordPress's unified configuration system for block themes, controlling global styles, editor settings, and theme behavior. File...