mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50959 602fd350-edb4-49c9-b593-d223f7449a82
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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|