🔧 migrate global settings to theme.json (#2964)

This commit is contained in:
Ben Word
2022-02-10 14:52:33 -06:00
committed by GitHub
parent 9857121ed0
commit b1d291e63f
4 changed files with 40 additions and 56 deletions

38
theme.json Normal file
View File

@@ -0,0 +1,38 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"color": {
"palette": [
{
"slug": "primary",
"color": "#525ddc",
"name": "Primary"
}
],
"custom": false,
"customGradient": false
},
"custom": {
"spacing": {},
"typography": {
"font-size": {},
"line-height": {}
}
},
"spacing": {
"padding": true,
"units": [
"px",
"%",
"em",
"rem",
"vw",
"vh"
]
},
"typography": {
"customFontSize": false
}
}
}