mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 15:31:04 +01:00
6476fd96ec
These changes involve: - Move shared variation definitions from styles.blocks.variations to styles.variations - Remove blockTypes from styles.variations. - Do not register shared variations from theme style variation or primary theme.json files. - Move the merging of theme.json data into the WP_Theme_JSON_Resolver and WP_Theme_JSON classes. These changes improve performance and are more future-proof API wise. See conversation at https://github.com/WordPress/gutenberg/issues/62686 Props aaronrobertshaw, oandregal, andrewserong, joemcgill, talldanwp, andrewserong, ramonopoly, richtabor, youknowriad. See #61312, #61451. Built from https://develop.svn.wordpress.org/trunk@58466 git-svn-id: http://core.svn.wordpress.org/trunk@57915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
94 lines
1.2 KiB
JSON
94 lines
1.2 KiB
JSON
{
|
|
"title": "Style variation name",
|
|
"settings": {
|
|
"typography": {
|
|
"fontSizes": [
|
|
{
|
|
"name": "Font size name"
|
|
}
|
|
],
|
|
"fontFamilies": [
|
|
{
|
|
"name": "Font family name"
|
|
}
|
|
]
|
|
},
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"name": "Color name"
|
|
}
|
|
],
|
|
"gradients": [
|
|
{
|
|
"name": "Gradient name"
|
|
}
|
|
],
|
|
"duotone": [
|
|
{
|
|
"name": "Duotone name"
|
|
}
|
|
]
|
|
},
|
|
"spacing": {
|
|
"spacingSizes": [
|
|
{
|
|
"name": "Space size name"
|
|
}
|
|
]
|
|
},
|
|
"dimensions": {
|
|
"aspectRatios": [
|
|
{
|
|
"name": "Aspect ratio name"
|
|
}
|
|
]
|
|
},
|
|
"blocks": {
|
|
"*": {
|
|
"typography": {
|
|
"fontSizes": [
|
|
{
|
|
"name": "Font size name"
|
|
}
|
|
],
|
|
"fontFamilies": [
|
|
{
|
|
"name": "Font family name"
|
|
}
|
|
]
|
|
},
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"name": "Color name"
|
|
}
|
|
],
|
|
"gradients": [
|
|
{
|
|
"name": "Gradient name"
|
|
}
|
|
]
|
|
},
|
|
"spacing": {
|
|
"spacingSizes": [
|
|
{
|
|
"name": "Space size name"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"customTemplates": [
|
|
{
|
|
"title": "Custom template name"
|
|
}
|
|
],
|
|
"templateParts": [
|
|
{
|
|
"title": "Template part name"
|
|
}
|
|
]
|
|
}
|