themes-wordpress/block-canvas/theme.json
Maggie 75f2feed30
Block Canvas: add support for button elements (#6139)
* add support for button elements

* removed test
2022-06-27 09:38:12 +02:00

330 lines
No EOL
9.6 KiB
JSON

{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"customTemplates": [
{
"name": "blank",
"postTypes": [
"page",
"post"
],
"title": "Blank"
},
{
"name": "header-footer-only",
"postTypes": [
"page",
"post"
],
"title": "Header and Footer Only"
},
{
"name": "footer-only",
"postTypes": [
"page",
"post"
],
"title": "Footer Only"
}
],
"settings": {
"appearanceTools": true,
"color": {
"palette": [
{
"color": "#007cba",
"name": "Primary",
"slug": "primary"
},
{
"color": "#006ba1",
"name": "Secondary",
"slug": "secondary"
},
{
"color": "#333333",
"name": "Foreground",
"slug": "foreground"
},
{
"color": "#ffffff",
"name": "Background",
"slug": "background"
},
{
"color": "#F0F0F0",
"name": "Tertiary",
"slug": "tertiary"
}
]
},
"custom": {
"gap": {
"horizontal": "min(30px, 5vw)",
"vertical": "min(30px, 5vw)"
}
},
"layout": {
"contentSize": "620px",
"wideSize": "1000px"
},
"spacing": {
"units": [
"%",
"px",
"em",
"rem",
"vh",
"vw"
]
},
"typography": {
"fontFamilies": [
{
"fontFamily": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
"name": "System Font",
"slug": "system-font"
}
],
"fontSizes": [
{
"name": "Small",
"size": "1rem",
"slug": "small"
},
{
"name": "Medium",
"size": "1.5rem",
"slug": "medium"
},
{
"name": "Large",
"size": "1.75rem",
"slug": "large"
},
{
"name": "Extra Large",
"size": "2rem",
"slug": "x-large"
}
]
}
},
"styles": {
"blocks": {
"core/button": {
"border": {
"radius": "4px"
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
},
"spacing": {
"padding": {
"bottom": "var(--wp--custom--gap--vertical)",
"left": "var(--wp--custom--gap--horizontal)",
"right": "var(--wp--custom--gap--horizontal)",
"top": "var(--wp--custom--gap--vertical)"
}
},
"typography": {
"fontFamily": "monospace"
}
},
"core/gallery": {
"spacing": {
"margin": {
"bottom": "var(--wp--custom--gap--vertical)"
}
}
},
"core/heading": {
"typography": {
"fontWeight": "400",
"lineHeight": "1.125"
}
},
"core/list": {
"spacing": {
"padding": {
"left": "calc( 2 * var(--wp--custom--gap--horizontal) )"
}
}
},
"core/navigation": {
"typography": {
"fontSize": "1.125rem"
}
},
"core/post-date": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/post-title": {
"spacing": {
"margin": {
"bottom": "0"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
"lineHeight": "1.125"
}
},
"core/pullquote": {
"border": {
"style": "solid",
"width": "1px 0"
},
"spacing": {
"padding": {
"bottom": "var(--wp--custom--gap--horizontal)",
"left": "var(--wp--custom--gap--horizontal)",
"right": "var(--wp--custom--gap--horizontal)",
"top": "var(--wp--custom--gap--horizontal)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
"fontStyle": "italic"
}
},
"core/quote": {
"border": {
"color": "var(--wp--preset--color--primary)",
"style": "solid",
"width": "0 0 0 1px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--gap--horizontal)"
}
},
"typography": {
"fontSize": "1.125rem",
"fontStyle": "normal"
}
},
"core/search": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"lineHeight": "1.6"
}
},
"core/separator": {
"border": {
"color": "currentColor",
"style": "solid",
"width": "0 0 1px 0"
},
"color": {
"text": "var(--wp--preset--color--foreground)"
}
},
"core/site-tagline": {
"typography": {
"fontSize": "0.825rem"
}
},
"core/site-title": {
"typography": {
"fontSize": "1.125rem",
"fontWeight": "700",
"textDecoration": "none"
}
}
},
"color": {
"background": "var(--wp--preset--color--background)",
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"button": {
"border": {
"radius": "0"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--background)"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontSize": "var(--wp--preset--font-size--medium)",
"fontWeight": "normal",
"lineHeight": "2",
"textDecoration": "none"
},
"spacing": {
"padding": {
"top": "calc(0.667em + 2px)",
"bottom": "calc(0.667em + 2px)",
"left": "calc(1.333em + 2px)",
"right": "calc(1.333em + 2px)"
}
}
},
"h1": {
"typography": {
"fontSize": "3rem"
}
},
"h2": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-large)"
}
},
"h3": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h4": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"h5": {
"typography": {
"fontSize": "1.125rem"
}
},
"h6": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
}
},
"spacing": {
"blockGap": "30px"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontSize": "1.125rem",
"lineHeight": "1.6"
}
},
"templateParts": [
{
"area": "header",
"name": "header"
},
{
"area": "footer",
"name": "footer"
}
],
"version": 2
}