themes-wordpress/stewart/theme.json
Ben Dwyer 8458a1c58a
Stewart: Move link and hover settings to theme.json (#6121)
* Stewart: Move link color and hover color to theme.json

* move text decoration rules to JSON

* Bump min version for Stewart to 6.1

Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
2022-11-07 12:38:33 +05:30

403 lines
9.1 KiB
JSON

{
"version": 1,
"templateParts": [
{
"name": "header",
"title": "Header",
"area": "header"
},
{
"name": "header-title-nav",
"title": "Header with Site Title and Navigation",
"area": "header"
},
{
"name": "sidebar",
"title": "Sidebar",
"area": "uncategorized"
},
{
"name": "footer",
"title": "Footer",
"area": "footer"
}
],
"customTemplates": [
{
"name": "blank",
"title": "Blank",
"postTypes": [
"page",
"post"
]
},
{
"name": "header-footer-only",
"title": "Header and Footer Only",
"postTypes": [
"page",
"post"
]
},
{
"name": "sidebar-footer-only",
"title": "Sidebar and Footer Only",
"postTypes": [
"page",
"post"
]
}
],
"settings": {
"appearanceTools": true,
"color": {
"duotone": [
{
"colors": [ "#F1F2F2", "#F1F2F2" ],
"slug": "background-and-foreground",
"name": "Background and Foreground"
},
{
"colors": [ "#C14420", "#F1F2F2" ],
"slug": "foreground-and-background",
"name": "Foreground and background"
}
],
"palette": [
{
"slug": "foreground",
"color": "#C14420",
"name": "Foreground"
},
{
"slug": "background",
"color": "#F1F2F2",
"name": "Background"
},
{
"slug": "primary",
"color": "#000000",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#863119",
"name": "Secondary"
},
{
"slug": "tertiary",
"color": "#FFFFFF",
"name": "Tertiary"
}
]
},
"custom": {
"body": {
"typography": {
"lineHeight": 1.6
}
},
"heading": {
"typography": {
"lineHeight": 1.2
}
},
"margin": {
"horizontal": "30px",
"vertical": "30px"
},
"spacing": {
"outer": "min(4vw, 30px)"
}
},
"layout": {
"contentSize": "826px",
"wideSize": "1160px"
},
"typography": {
"fontFamilies": [
{
"fontFamily": "'Work Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Helvetica', sans-serif",
"slug": "work-sans",
"name": "Work Sans",
"fontFace": [
{
"fontFamily": "Work Sans",
"fontDisplay": "block",
"fontWeight": "400",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/WorkSans-VariableFont_wght.ttf" ]
},
{
"fontFamily": "Work Sans",
"fontDisplay": "block",
"fontWeight": "700",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/WorkSans-VariableFont_wght.ttf" ]
},
{
"fontFamily": "Work Sans",
"fontDisplay": "block",
"fontWeight": "400",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/WorkSans-Italic-VariableFont_wght.ttf" ]
},
{
"fontFamily": "Work Sans",
"fontDisplay": "block",
"fontWeight": "700",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/WorkSans-Italic-VariableFont_wght.ttf" ]
}
]
}
],
"fontSizes": [
{
"name": "Tiny",
"size": "1rem",
"slug": "tiny"
},
{
"name": "Small",
"size": "1.125rem",
"slug": "small"
},
{
"name": "Normal",
"size": "1.25rem",
"slug": "normal"
},
{
"name": "Large",
"size": "1.5rem",
"slug": "large"
},
{
"name": "Extra Large",
"size": "2rem",
"slug": "extra-large"
},
{
"name": "Huge",
"size": "2.375rem",
"slug": "huge"
},
{
"name": "Gigantic",
"size": "3.125rem",
"slug": "gigantic"
}
]
}
},
"styles": {
"blocks": {
"core/button": {
"border": {
"radius": "0"
},
"color": {
"background": "var(--wp--preset--color--foreground)",
"text": "var(--wp--preset--color--background)"
},
"typography": {
"fontSize": "var(--wp--preset--typography--font-size--normal)"
}
},
"core/code": {
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
"right": "var(--wp--custom--margin--horizontal)",
"top": "var(--wp--custom--margin--vertical)",
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
}
},
"core/post-featured-image": {
"spacing": {
"margin": {
"top": "0",
"bottom": "var(--wp--custom--margin--horizontal)"
}
}
},
"core/navigation": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)",
"lineHeight": 2
},
"elements": {
"link": {
"typography": {
"textDecoration": "underline"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
}
},
"core/post-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontSize": "var(--wp--preset--font-size--huge)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)"
},
"spacing": {
"margin": {
"top": "0",
"bottom": "var(--wp--custom--margin--horizontal)"
}
}
},
"core/post-date": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/post-excerpt": {
"spacing": {
"margin": {
"top": "var(--wp--custom--margin--horizontal)",
"bottom": "var(--wp--custom--margin--horizontal)"
}
}
},
"core/pullquote": {
"border": {
"style": "solid",
"width": "1px 0"
},
"typography": {
"fontStyle": "italic",
"fontSize": "var(--wp--preset--font-size--huge)"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
"right": "var(--wp--custom--margin--horizontal)",
"top": "var(--wp--custom--margin--horizontal)",
"bottom": "var(--wp--custom--margin--horizontal)"
}
}
},
"core/separator": {
"border": {
"width": "0 0 1px 0"
}
},
"core/site-title": {
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)",
"fontWeight": 400
}
},
"core/site-tagline": {
"spacing": {
"padding": {
"bottom": "calc(0.25 * var(--wp--custom--margin--horizontal))"
}
}
},
"core/quote": {
"border": {
"color": "var(--wp--preset--color--primary)",
"style": "solid",
"width": "0 0 0 1px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)",
"fontStyle": "normal"
}
}
},
"color": {
"background": "var(--wp--preset--color--background)",
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"h1": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "var(--wp--preset--font-size--gigantic)"
}
},
"h2": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "var(--wp--preset--font-size--huge)"
}
},
"h3": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "var(--wp--preset--font-size--extra-large)"
}
},
"h4": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h5": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "var(--wp--preset--font-size--normal)"
}
},
"h6": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
":hover": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
}
}
},
"typography": {
"lineHeight": "var(--wp--custom--body--typography--line-height)",
"fontFamily": "var(--wp--preset--font-family--work-sans)",
"fontSize": "var(--wp--preset--font-size--normal)"
}
}
}