mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Additionally, this changeset fixes some of the `block.json` and `theme.json` files in PHPUnit tests by adding missing `title` properties to satisfy the schema. Those changes have no impact on the runtime whatsoever and do not change the result of unit tests. Note that some block and theme JSON files still aren't valid according to the schema. Fixing is underway; the required changes will be merged subsequently. Props jonsurrell, dmsnell, gziolo. Fixes #60255. git-svn-id: https://develop.svn.wordpress.org/trunk@57336 602fd350-edb4-49c9-b593-d223f7449a82
136 lines
2.3 KiB
JSON
136 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/theme.json",
|
|
"version": 1,
|
|
"title": "Block theme",
|
|
"settings": {
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"slug": "light",
|
|
"name": "Light",
|
|
"color": "#f5f7f9"
|
|
},
|
|
{
|
|
"slug": "dark",
|
|
"name": "Dark",
|
|
"color": "#000"
|
|
}
|
|
],
|
|
"gradients": [
|
|
{
|
|
"name": "Custom gradient",
|
|
"gradient": "linear-gradient(135deg,rgba(0,0,0) 0%,rgb(0,0,0) 100%)",
|
|
"slug": "custom-gradient"
|
|
}
|
|
],
|
|
"duotone": [
|
|
{
|
|
"colors": [ "#333333", "#aaaaaa" ],
|
|
"slug": "custom-duotone",
|
|
"name": "Custom Duotone"
|
|
}
|
|
],
|
|
"custom": false,
|
|
"customGradient": false
|
|
},
|
|
"typography": {
|
|
"fontSizes": [
|
|
{
|
|
"name": "Custom",
|
|
"slug": "custom",
|
|
"size": "100px"
|
|
}
|
|
],
|
|
"customFontSize": false,
|
|
"customLineHeight": true
|
|
},
|
|
"spacing": {
|
|
"units": ["rem"],
|
|
"customPadding": true,
|
|
"blockGap": true
|
|
},
|
|
"blocks": {
|
|
"core/paragraph": {
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"slug": "light",
|
|
"name": "Light",
|
|
"color": "#f5f7f9"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"styles" : {
|
|
"blocks" :{
|
|
"core/post-featured-image": {
|
|
"shadow": "10px 10px 5px 0px rgba(0,0,0,0.66)",
|
|
"filter": {
|
|
"duotone": "var(--wp--preset--duotone--custom-duotone)"
|
|
}
|
|
},
|
|
"my/third-party-block": {
|
|
"color": {
|
|
"background": "hotpink"
|
|
},
|
|
"elements": {
|
|
"cite": {
|
|
"color": {
|
|
"text": "white"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"elements": {
|
|
"button": {
|
|
"shadow": "10px 10px 5px 0px rgba(0,0,0,0.66)"
|
|
},
|
|
"link": {
|
|
"typography": {
|
|
"textDecoration": "none"
|
|
},
|
|
"border": {
|
|
"bottom": {
|
|
"width": "2px",
|
|
"color": "currentColor",
|
|
"style": "solid"
|
|
}
|
|
},
|
|
":hover": {
|
|
"typography": {
|
|
"textDecoration": "none"
|
|
},
|
|
"border": {
|
|
"bottom": {
|
|
"width": "2px",
|
|
"color": "#000",
|
|
"style": "dotted"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"customTemplates": [
|
|
{
|
|
"name": "page-home",
|
|
"title": "Homepage template"
|
|
},
|
|
{
|
|
"name": "custom-single-post-template",
|
|
"title": "Custom Single Post template",
|
|
"postTypes": ["post"]
|
|
}
|
|
],
|
|
"templateParts": [
|
|
{
|
|
"name": "small-header",
|
|
"title": "Small Header",
|
|
"area": "header"
|
|
}
|
|
]
|
|
}
|