themes-wordpress/lettre/theme.json
alaczek addcdf43c5
Lettre: round of fixes (#7664)
* Add search template

Add missing search template, including a "no-results" message.
See #7662

* Update theme.json

Add values to top and bottom spacing to fix the mobile nav spacing issues.
See #7662

* Update archive.html

Add query navigation on the archive pages. See #7231

* Update style.css

* Add spacing to comment reply heading
* Try fixing the underline issue in navigation
* Add spacing to the search input field, to bring the styling in line with subscription block.
2024-03-05 15:07:43 +11: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": "0px",
"left": "var(--wp--custom--spacing--outer)",
"top": "0px",
"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"
}
]
}