Skip to content

Instantly share code, notes, and snippets.

@jimmi-joensson
Forked from ryanwelcher/theme.json
Created April 7, 2022 05:07
Show Gist options
  • Save jimmi-joensson/ba4744d162131751812f0540dc0ffc62 to your computer and use it in GitHub Desktop.
Save jimmi-joensson/ba4744d162131751812f0540dc0ffc62 to your computer and use it in GitHub Desktop.
When adding theme.json to an existing Classic Theme, these settings will stop the default color and typography controls from being enabled.
{
"$schema": "http://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"layout": {
"contentSize": "750px"
},
"color": {
"background": false,
"custom": false,
"customDuotone": false,
"customGradient": false,
"defaultGradients": false,
"defaultPalette": false,
"text": false
},
"typography": {
"customFontSize": false,
"dropCap": false,
"fontStyle": false,
"fontWeight": false,
"letterSpacing": false,
"lineHeight": false,
"textDecoration": false,
"textTransform": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment