themes-wordpress/lettre/theme.json
Sarah Norris f2d6a5f7a6
Add Lettre (#6792)
* Add Lettre

* Move patterns out of inc

* Remove unused font face

* Remove index.php

* Remove alignment CSS

* Update newsletter bold

* Update hidden subscription form

* Update about single

* Update categories

* Update about multiple

* Update hidden 404

* Add missing echos

* Update hidden footer

* Update patterns

* Update remaining patterns

* Remove image ids

* Add footer to 404 template

* Use global padding

* Fix typo!

* Update all subscribe block markup

* Remove blank template

* Remove reference to .com

* Move CSS to theme.json

* Add Newsreader font

* Manual version bump

* Remove page title

* Add temp fix for Jetpack issue

* Update min version

* Remove archive search content

* Add search template

* Remove content from search block

* Remove buttonText attribute

* Fix media and text pattern

* Remove link hover CSS

* Fix button padding

* Remove Jetpack CSS fix

* Add Jetpack fix back

Needed until Jetpack 11.7 is released

* Update opacity GB issue link

* Add container element to index; remove search template

* Enable root padding

* Remove top and bottom global padding

* Add core/button styles back

* Add load_theme_textdomain

* Change tested up to versions to 6.1

* Exclude editor from Jetpack fix

The fix doesn't need to be applied in the editor, only on the front end

* Remove stable tag

* Update readme and style.css

* Fix echo typos

* Version bump
2023-01-04 15:59:46 +00:00

422 lines
8.5 KiB
JSON

{
"version": 2,
"$schema": "https://schemas.wp.org/trunk/theme.json",
"settings": {
"appearanceTools": true,
"color": {
"palette": [
{
"slug": "primary",
"color": "#113AF5",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#FFFFFF",
"name": "Secondary"
},
{
"slug": "tertiary",
"color": "#D9D9D9",
"name": "Tertiary"
},
{
"slug": "foreground",
"color": "#1E1E1E",
"name": "Foreground"
}
]
},
"custom": {
"spacing": {
"small": "max(1.25rem, 2vw)",
"medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))",
"large": "clamp(4rem, 12vw, 10rem)",
"outer": "var(--wp--custom--spacing--small, 1.25rem)"
},
"typography": {
"line-height": {
"tiny": 1.15,
"small": 1.2,
"medium": 1.4,
"normal": 1.6
}
}
},
"spacing": {
"units": [
"%",
"px",
"em",
"rem",
"vh",
"vw"
]
},
"typography": {
"fluid": true,
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/Inter-Regular.woff2"
]
},
{
"fontFamily": "Inter",
"fontStyle": "italic",
"fontWeight": "400",
"src": [
"file:./assets/fonts/Inter-Italic.woff2"
]
},
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "700",
"src": [
"file:./assets/fonts/Inter-Bold.woff2"
]
},
{
"fontFamily": "Inter",
"fontStyle": "italic",
"fontWeight": "700",
"src": [
"file:./assets/fonts/Inter-BoldItalic.woff2"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "Inter"
},
{
"fontFace": [
{
"fontFamily": "Newsreader",
"fontStyle": "normal",
"fontWeight": "800",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraBold.woff2"
]
},
{
"fontFamily": "Newsreader",
"fontStyle": "normal",
"fontWeight": "200",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraLight.woff2"
]
},
{
"fontFamily": "Newsreader",
"fontStyle": "italic",
"fontWeight": "800",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraBoldItalic.woff2"
]
},
{
"fontFamily": "Newsreader",
"fontStyle": "italic",
"fontWeight": "200",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraLightItalic.woff2"
]
}
],
"fontFamily": "Newsreader",
"name": "Newsreader",
"slug": "newsreader"
}
],
"fontSizes": [
{
"fluid": {
"max": "1rem",
"min": "0.85rem"
},
"size": "0.9rem",
"slug": "small"
},
{
"fluid": {
"max": "1.2rem",
"min": "1rem"
},
"size": "1.125rem",
"slug": "medium"
},
{
"fluid": {
"max": "2rem",
"min": "1.5rem"
},
"size": "1.75rem",
"slug": "large"
},
{
"fluid": {
"max": "2.75rem",
"min": "2rem"
},
"size": "2.5rem",
"slug": "x-large"
},
{
"fluid": {
"max": "4rem",
"min": "2.875rem"
},
"size": "3rem",
"slug": "xx-large"
}
]
},
"layout": {
"contentSize": "650px",
"wideSize": "1000px"
},
"useRootPaddingAwareAlignments": true
},
"styles": {
"blocks": {
"core/button": {
"border": {
"radius": "100px"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--secondary)"
},
"spacing": {
"padding": {
"bottom": "calc(.667em + 2px)",
"left": "calc(1.333em + 2px)",
"right": "calc(1.333em + 2px)",
"top": "calc(.667em + 2px)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/navigation": {
"elements": {
"link": {
":focus": {
"typography": {
"textDecoration": "underline"
}
},
":hover": {
"typography": {
"textDecoration": "underline"
}
}
}
}
},
"core/post-date": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
}
},
"core/post-title": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
},
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--tiny)",
"fontSize": "var(--wp--preset--font-size--x-large)"
}
},
"core/post-comments": {
"spacing": {
"padding": {
"top": "var(--wp--custom--spacing--small)"
}
}
},
"core/pullquote": {
"border": {
"width": "1px 0"
}
},
"core/query-title": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"core/quote": {
"border": {
"width": "0 0 0 1px"
}
},
"core/separator": {
"border": {
"color": "currentColor",
"style": "solid",
"width": "0 0 1px 0"
},
"color": {
"text": "var(--wp--preset--color--tertiary)"
}
},
"core/site-title": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--small)",
"fontWeight": "normal"
}
}
},
"color": {
"background": "#fff",
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"button": {
"border": {
"radius": "100px"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--secondary)"
},
"spacing": {
"padding": {
"bottom": "calc(.667em + 2px)",
"left": "calc(1.333em + 2px)",
"right": "calc(1.333em + 2px)",
"top": "calc(.667em + 2px)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"h1": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--x-large)"
}
},
"h2": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h3": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h4": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--medium)",
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"h5": {
"typography": {
"textTransform": "uppercase",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"h6": {
"typography": {
"textTransform": "uppercase",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
":active": {
"typography": {
"textDecoration": "none"
}
},
":focus": {
"typography": {
"textDecoration": "underline"
}
},
":hover": {
"typography": {
"textDecoration": "underline"
}
}
}
},
"spacing": {
"blockGap": "1.5rem",
"padding": {
"bottom": "",
"left": "var(--wp--custom--spacing--outer)",
"top": "",
"right": "var(--wp--custom--spacing--outer)"
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"templateParts": [
{
"name": "header",
"title": "Header",
"area": "header"
},
{
"name": "footer",
"title": "Footer",
"area": "footer"
}
]
}