mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-19 09:05:22 +01:00
4e1dc7a28c
This is the first piece of landing the theme.json processing in WordPress core. It allows themes to configure the different editor settings, allow cusomizations and define presets in theme.json file. Props jorgefilipecosta, nosolosw. See #53175. Built from https://develop.svn.wordpress.org/trunk@50959 git-svn-id: http://core.svn.wordpress.org/trunk@50568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
52 lines
634 B
JSON
52 lines
634 B
JSON
{
|
|
"settings": {
|
|
"typography": {
|
|
"fontSizes": [
|
|
{
|
|
"name": "Font size name"
|
|
}
|
|
]
|
|
},
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"name": "Color name"
|
|
}
|
|
],
|
|
"gradients": [
|
|
{
|
|
"name": "Gradient name"
|
|
}
|
|
],
|
|
"duotone": [
|
|
{
|
|
"name": "Duotone name"
|
|
}
|
|
]
|
|
},
|
|
"blocks": {
|
|
"*": {
|
|
"typography": {
|
|
"fontSizes": [
|
|
{
|
|
"name": "Font size name"
|
|
}
|
|
]
|
|
},
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"name": "Color name"
|
|
}
|
|
],
|
|
"gradients": [
|
|
{
|
|
"name": "Gradient name"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|