Themes.json
: Assigns specific styles (like font size or background color) to elements or blocks. templateParts : Registers parts like headers or footers. Quick Template
In WordPress, theme.json is the configuration file for block-based themes. It allows you to define global settings and styles that apply to both the front end and the editor. themes.json
{ "version": 3, "settings": { "appearanceTools": true, "color": { "palette": [ { "slug": "primary", "color": "#007cba", "name": "Primary Blue" } ] } }, "styles": { "typography": { "lineHeight": "1.5" } } } Use code with caution. Copied to clipboard : Assigns specific styles (like font size or
The two most common uses for this file are in development and Power BI reporting. 1. WordPress theme.json Guide It allows you to define global settings and
: Enables/disables UI tools and defines presets like your color palette and typography.