tools/wordpress-theme-json-generator
theme.json Generator
Build a block theme's theme.json: colour, typography and spacing presets, layout widths, the styles applied to the page and to links, buttons and headings, and per-block overrides — with the preset slugs already in the form WordPress will turn them into CSS variables.
theme.json
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"appearanceTools": true,
"useRootPaddingAwareAlignments": true,
"color": {
"palette": [
{
"name": "Brand",
"slug": "brand",
"color": "#1e1e1e"
},
{
"name": "Surface",
"slug": "surface",
"color": "#ffffff"
}
]
},
"layout": {
"contentSize": "660px",
"wideSize": "1200px"
},
"spacing": {
"units": [
"px",
"em",
"rem",
"%"
]
},
"typography": {
"fluid": true,
"fontFamilies": [
{
"name": "Body",
"slug": "body",
"fontFamily": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif"
}
]
}
}
}