mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 15:31:04 +01:00
2602d78021
This ensures that settings and styles are properly handled by code editors that support schema. Reference: [https://developer.wordpress.org/block-editor/reference-guides/theme-json-reference/theme-json-v2/#json-schema Theme.json Version 2 Reference: JSON Schema]. Follow-up to [58403]. Props poena, umeshsinghin. Fixes #61789. Built from https://develop.svn.wordpress.org/trunk@58835 git-svn-id: http://core.svn.wordpress.org/trunk@58231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
170 lines
3.7 KiB
JSON
170 lines
3.7 KiB
JSON
{
|
|
"$schema": "https://schemas.wp.org/wp/6.5/theme.json",
|
|
"version": 2,
|
|
"title": "Mint",
|
|
"settings": {
|
|
"color": {
|
|
"palette": [
|
|
{
|
|
"color": "#e4efeb",
|
|
"name": "Base",
|
|
"slug": "base"
|
|
},
|
|
{
|
|
"color": "#f1fefb",
|
|
"name": "Base / Two",
|
|
"slug": "base-2"
|
|
},
|
|
{
|
|
"color": "#000000",
|
|
"name": "Contrast",
|
|
"slug": "contrast"
|
|
},
|
|
{
|
|
"color": "#353535",
|
|
"name": "Contrast / Two",
|
|
"slug": "contrast-2"
|
|
},
|
|
{
|
|
"color": "#A4A4A4",
|
|
"name": "Contrast / Three",
|
|
"slug": "contrast-3"
|
|
}
|
|
]
|
|
},
|
|
"typography": {
|
|
"fluid": true,
|
|
"fontFamilies": [
|
|
{
|
|
"fontFace": [
|
|
{
|
|
"fontFamily": "Instrument Sans",
|
|
"fontStyle": "normal",
|
|
"fontWeight": "400 700",
|
|
"src": [
|
|
"file:./assets/fonts/instrument-sans/InstrumentSans-VariableFont_wdth,wght.woff2"
|
|
]
|
|
},
|
|
{
|
|
"fontFamily": "Instrument Sans",
|
|
"fontStyle": "italic",
|
|
"fontWeight": "400 700",
|
|
"src": [
|
|
"file:./assets/fonts/instrument-sans/InstrumentSans-Italic-VariableFont_wdth,wght.woff2"
|
|
]
|
|
}
|
|
],
|
|
"fontFamily": "\"Instrument Sans\", sans-serif",
|
|
"name": "Instrument Sans",
|
|
"slug": "heading"
|
|
},
|
|
{
|
|
"fontFace": [
|
|
{
|
|
"fontFamily": "Jost",
|
|
"fontStyle": "normal",
|
|
"fontWeight": "100 900",
|
|
"src": ["file:./assets/fonts/jost/Jost-VariableFont_wght.woff2"]
|
|
},
|
|
{
|
|
"fontFamily": "Jost",
|
|
"fontStyle": "italic",
|
|
"fontWeight": "100 900",
|
|
"src": [
|
|
"file:./assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2"
|
|
]
|
|
}
|
|
],
|
|
"fontFamily": "\"Jost\", sans-serif",
|
|
"name": "Jost",
|
|
"slug": "body"
|
|
},
|
|
{
|
|
"fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif",
|
|
"name": "System Sans-serif",
|
|
"slug": "system-sans-serif"
|
|
},
|
|
{
|
|
"fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",
|
|
"name": "System Serif",
|
|
"slug": "system-serif"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"styles": {
|
|
"blocks": {
|
|
"core/navigation": {
|
|
"typography": {
|
|
"fontStyle": "normal",
|
|
"fontWeight": "400"
|
|
}
|
|
},
|
|
"core/pullquote": {
|
|
"typography": {
|
|
"fontFamily": "var(--wp--preset--font-family--body)",
|
|
"fontSize": "var(--wp--preset--font-size--x-large)",
|
|
"fontStyle": "normal",
|
|
"fontWeight": "600",
|
|
"lineHeight": "1.3"
|
|
}
|
|
},
|
|
"core/quote": {
|
|
"typography": {
|
|
"fontFamily": "var(--wp--preset--font-family--body)",
|
|
"fontSize": "var(--wp--preset--font-size--large)",
|
|
"fontStyle": "normal",
|
|
"fontWeight": "400"
|
|
}
|
|
},
|
|
"core/site-title": {
|
|
"typography": {
|
|
"fontFamily": "var(--wp--preset--font-family--heading)"
|
|
}
|
|
}
|
|
},
|
|
"elements": {
|
|
"caption": {
|
|
"typography": {
|
|
"fontFamily": "var(--wp--preset--font-family--body)"
|
|
}
|
|
},
|
|
"h1": {
|
|
"typography": {
|
|
"fontSize": "var(--wp--preset--font-size--x-large)"
|
|
}
|
|
},
|
|
"h2": {
|
|
"typography": {
|
|
"fontSize": "2.1rem"
|
|
}
|
|
},
|
|
"h3": {
|
|
"typography": {
|
|
"fontSize": "var(--wp--preset--font-size--large)"
|
|
}
|
|
},
|
|
"h4": {
|
|
"typography": {
|
|
"fontSize": "1.6rem"
|
|
}
|
|
},
|
|
"h5": {
|
|
"typography": {
|
|
"fontSize": "1.4rem"
|
|
}
|
|
},
|
|
"heading": {
|
|
"typography": {
|
|
"fontFamily": "var(--wp--preset--font-family--heading)",
|
|
"fontStyle": "normal",
|
|
"fontWeight": "600"
|
|
}
|
|
}
|
|
},
|
|
"typography": {
|
|
"fontFamily": "var(--wp--preset--font-family--body)"
|
|
}
|
|
}
|
|
}
|