The Site Editor isn’t available on my site. I don’t have my theme setup as a Block Theme. When theme.json first came out this wasn’t a requirement – as long as the file existed, the styles that were declared in it were output on the front end. Is it expected that to use theme.json fully the theme needs to be a block theme now? I don’t see anything in the documentation for theme.json saying it needs to be a Block Theme.
{
"version": 2,
"settings": {
"color": {
"custom": false,
"defaultPalette": false,
"duotone": [],
"gradients": [],
"palette": [
{
"slug": "black",
"color": "#24242D",
"name": "Black"
},
{
"slug": "white",
"color": "#ffffff",
"name": "White"
},
{
"slug": "maroon",
"color": "#4d191f",
"name": "Maroon"
}
]
},
"spacing": {
"blockGap": true
},
"typography": {
"dropCap": false,
"customFontSize": false,
"textTransform": false,
"fontWeight": false,
"fontStyle": false,
"letterSpacing": false,
"lineHeight": false,
"fontSizes": []
},
"layout": {
"contentSize": "1200px",
"wideSize": "1400px"
},
"blocks": {
"core/paragraph": {
"color": {
"palette": [],
"background": false
}
},
"core/heading": {
"color": {
"palette": [],
"background": false
},
"typography": {
"fontSizes": []
}
},
"core/button": {
"border": {
"radius": false
}
}
}
},
"styles": {
"color": {
"background": "var(--wp--preset--color--maroon)",
"text": "var(--wp--preset--color--white)"
},
"typography": {
"fontSize": "18px",
"lineHeight": "1.6em"
},
"spacing": {
"blockGap": "3rem"
},
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--white)"
}
},
"h1": {
"typography": {
"fontSize": "var(--wp--preset--font-size--h-1)",
"lineHeight": "1.1em"
}
},
"h2": {
"typography": {
"fontSize": "var(--wp--preset--font-size--h-2)",
"lineHeight": "1.2em"
}
},
"h3": {
"typography": {
"fontSize": "var(--wp--preset--font-size--h-3)",
"lineHeight": "1.3em"
}
},
"h4": {
"typography": {
"fontSize": "var(--wp--preset--font-size--h-4)",
"lineHeight": "1.4em"
}
},
"h5": {
"typography": {
"fontSize": "var(--wp--preset--font-size--h-5)",
"lineHeight": "1.5em"
}
},
"h6": {
"typography": {
"fontSize": "var(--wp--preset--font-size--h-6)",
"lineHeight": "1.6em"
}
}
}
}
}