-
-
Save rxnlabs/a0134f2d70edaaca8b651df9e61a7c9a to your computer and use it in GitHub Desktop.
An actual working experimental-theme.json as the WordPress documentation is utter shit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"templateParts": { | |
"header": { | |
"area": "header" | |
}, | |
"footer": { | |
"area": "footer" | |
} | |
}, | |
"settings": { | |
"defaults": { | |
"color": { | |
"palette": [ | |
{ | |
"slug": "green", | |
"color": "#D1E4DD", | |
"name": "Green" | |
}, | |
{ | |
"slug": "blue", | |
"color": "#D1DFE4", | |
"name": "Blue" | |
}, | |
{ | |
"slug": "purple", | |
"color": "#D1D1E4", | |
"name": "Purple" | |
}, | |
], | |
"gradients": [ | |
{ | |
"slug": "purple-to-yellow", | |
"gradient": "linear-gradient(160deg, var(--wp--preset--color--purple), var(--wp--preset--color--yellow))", | |
"name": "Purple to Yellow" | |
}, | |
{ | |
"slug": "yellow-to-purple", | |
"gradient": "linear-gradient(160deg, var(--wp--preset--color--yellow), var(--wp--preset--color--purple))", | |
"name": "Yellow to Purple" | |
}, | |
] | |
}, | |
"typography": { | |
"customLineHeight": true, | |
"fontSizes": [ | |
{ | |
"slug": "small", | |
"size": "18px", | |
"name": "Small" | |
}, | |
{ | |
"slug": "normal", | |
"size": "20px", | |
"name": "Normal" | |
}, | |
{ | |
"slug": "large", | |
"size": "24px", | |
"name": "Large" | |
}, | |
], | |
"fontFamilies": [ | |
{ | |
"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", | |
"slug": "system-font", | |
"name": "System Font" | |
}, | |
{ | |
"fontFamily": "Helvetica Neue, Helvetica, Arial, sans-serif", | |
"slug": "helvetica-arial" | |
}, | |
{ | |
"fontFamily": "Geneva, Tahoma, Verdana, sans-serif", | |
"slug": "geneva-verdana" | |
}, | |
{ | |
"fontFamily": "Cambria, Georgia, serif", | |
"slug": "cambria-georgia" | |
}, | |
{ | |
"fontFamily": "Hoefler Text, Baskerville Old Face, Garamond, Times New Roman, serif", | |
"slug": "hoefler-times-new-roman" | |
} | |
] | |
}, | |
} | |
}, | |
"styles": { | |
"root": { | |
"color": { | |
"background": "var(--wp--preset--color--green)", | |
"text": "var(--wp--preset--color--dark-gray)", | |
"link": "var(--wp--preset--color--dark-gray)" | |
}, | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--normal)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
}, | |
"core/heading/h1": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--gigantic)", | |
"lineHeight": "var(--wp--custom--line-height--page-title)" | |
} | |
}, | |
"core/heading/h2": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-large)", | |
"lineHeight": "var(--wp--custom--line-height--heading)" | |
} | |
}, | |
"core/site-tagline": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--small)", | |
"lineHeight": 1.4 | |
} | |
}, | |
"core/site-title": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--large)" | |
} | |
}, | |
"core/post-author": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-small)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
}, | |
"core/post-date": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-small)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
}, | |
"core/post-tags": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-small)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
} | |
}, | |
"customTemplates": { | |
"page-home": { | |
"title": "Page without title" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"templateParts": { | |
"header": { | |
"area": "header" | |
}, | |
"footer": { | |
"area": "footer" | |
} | |
}, | |
"settings": { | |
"defaults": { | |
"color": { | |
"palette": [ | |
{ | |
"slug": "green", | |
"color": "#D1E4DD", | |
"name": "Green" | |
}, | |
{ | |
"slug": "blue", | |
"color": "#D1DFE4", | |
"name": "Blue" | |
}, | |
{ | |
"slug": "purple", | |
"color": "#D1D1E4", | |
"name": "Purple" | |
}, | |
], | |
"gradients": [ | |
{ | |
"slug": "purple-to-yellow", | |
"gradient": "linear-gradient(160deg, var(--wp--preset--color--purple), var(--wp--preset--color--yellow))", | |
"name": "Purple to Yellow" | |
}, | |
{ | |
"slug": "yellow-to-purple", | |
"gradient": "linear-gradient(160deg, var(--wp--preset--color--yellow), var(--wp--preset--color--purple))", | |
"name": "Yellow to Purple" | |
}, | |
] | |
}, | |
"typography": { | |
"customLineHeight": true, | |
"fontSizes": [ | |
{ | |
"slug": "small", | |
"size": "18px", | |
"name": "Small" | |
}, | |
{ | |
"slug": "normal", | |
"size": "20px", | |
"name": "Normal" | |
}, | |
{ | |
"slug": "large", | |
"size": "24px", | |
"name": "Large" | |
}, | |
], | |
"fontFamilies": [ | |
{ | |
"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", | |
"slug": "system-font", | |
"name": "System Font" | |
}, | |
{ | |
"fontFamily": "Helvetica Neue, Helvetica, Arial, sans-serif", | |
"slug": "helvetica-arial" | |
}, | |
{ | |
"fontFamily": "Geneva, Tahoma, Verdana, sans-serif", | |
"slug": "geneva-verdana" | |
}, | |
{ | |
"fontFamily": "Cambria, Georgia, serif", | |
"slug": "cambria-georgia" | |
}, | |
{ | |
"fontFamily": "Hoefler Text, Baskerville Old Face, Garamond, Times New Roman, serif", | |
"slug": "hoefler-times-new-roman" | |
} | |
] | |
}, | |
} | |
}, | |
"styles": { | |
"root": { | |
"color": { | |
"background": "var(--wp--preset--color--green)", | |
"text": "var(--wp--preset--color--dark-gray)", | |
"link": "var(--wp--preset--color--dark-gray)" | |
}, | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--normal)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
}, | |
"core/heading/h1": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--gigantic)", | |
"lineHeight": "var(--wp--custom--line-height--page-title)" | |
} | |
}, | |
"core/heading/h2": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-large)", | |
"lineHeight": "var(--wp--custom--line-height--heading)" | |
} | |
}, | |
"core/site-tagline": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--small)", | |
"lineHeight": 1.4 | |
} | |
}, | |
"core/site-title": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--large)" | |
} | |
}, | |
"core/post-author": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-small)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
}, | |
"core/post-date": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-small)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
}, | |
"core/post-tags": { | |
"typography": { | |
"fontSize": "var(--wp--preset--font-size--extra-small)", | |
"lineHeight": "var(--wp--custom--line-height--body)" | |
} | |
} | |
}, | |
"customTemplates": { | |
"page-home": { | |
"title": "Page without title" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment