themes-wordpress/archeo/theme.json
Sarah Norris 2d25644752
Archeo: move CSS styles to theme.json (#6159)
* Move button styles from CSS to theme.json

* Move comments button styles to theme.json

* Move footer gap styles to theme.json

* Disable wp-block-styles

* Tweak footer column gap size

* Enable wp-block-styles again

* Add search and file button CSS back

* Fix merge conflicts

* Move uppercase to core/button

* Remove duplicate button element settings

* Move text transform back to button element

* Reduce vertical gap in footer nav

* Fix normal font size ref

* Remove more CSS

* Fix indentation

* Second attempt at fixing indentation
2022-08-09 11:49:33 +05:30

349 lines
No EOL
6.8 KiB
JSON

{
"customTemplates": [
{
"name": "blank",
"postTypes": [
"page",
"post"
],
"title": "Blank"
},
{
"name": "page-no-title",
"postTypes": [
"page"
],
"title": "Page (No Title)"
}
],
"settings": {
"appearanceTools": true,
"color": {
"palette": [
{
"color": "#242321",
"name": "Foreground",
"slug": "foreground"
},
{
"color": "#FCFBF8",
"name": "Background",
"slug": "background"
},
{
"color": "#71706E",
"name": "Primary",
"slug": "primary"
},
{
"color": "#CFCFCF",
"name": "Tertiary",
"slug": "tertiary"
}
]
},
"custom": {
"spacing": {
"large": "clamp(100px, 12vw, 460px)",
"medium": "clamp(48px, 8vw, 100px)",
"outer": "min(4vw, 90px)",
"small": "clamp(20px, 4vw, 40px)"
}
},
"layout": {
"contentSize": "620px",
"wideSize": "1260px"
},
"spacing": {
"units": [
"%",
"px",
"em",
"rem",
"vh",
"vw"
]
},
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontDisplay": "block",
"fontFamily": "Chivo",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "100",
"src": [
"file:./assets/fonts/Chivo-Thin.woff2"
]
},
{
"fontDisplay": "block",
"fontFamily": "Chivo",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/Chivo-Regular.woff2"
]
},
{
"fontDisplay": "block",
"fontFamily": "Chivo",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "700",
"src": [
"file:./assets/fonts/Chivo-Bold.woff2"
]
},
{
"fontDisplay": "block",
"fontFamily": "Chivo",
"fontStretch": "normal",
"fontStyle": "italic",
"fontWeight": "100",
"src": [
"file:./assets/fonts/Chivo-ThinItalic.woff2"
]
},
{
"fontDisplay": "block",
"fontFamily": "Chivo",
"fontStretch": "normal",
"fontStyle": "italic",
"fontWeight": "400",
"src": [
"file:./assets/fonts/Chivo-Italic.woff2"
]
},
{
"fontDisplay": "block",
"fontFamily": "Chivo",
"fontStretch": "normal",
"fontStyle": "italic",
"fontWeight": "700",
"src": [
"file:./assets/fonts/Chivo-BoldItalic.woff2"
]
}
],
"fontFamily": "\"Chivo\", sans-serif",
"name": "Chivo",
"slug": "chivo"
}
],
"fontSizes": [
{
"name": "Small",
"size": "1rem",
"slug": "small"
},
{
"name": "Normal",
"size": "1.125rem",
"slug": "normal"
},
{
"name": "Medium",
"size": "clamp(1.5rem, 5vw, 2rem)",
"slug": "medium"
},
{
"name": "Large",
"size": "clamp(2.25rem, 6vw, 3rem)",
"slug": "large"
},
{
"name": "Huge",
"size": "clamp(2.625rem, 7vw, 4rem)",
"slug": "huge"
}
]
},
"useRootPaddingAwareAlignments": true
},
"styles": {
"blocks": {
"core/heading": {
"typography": {
"fontWeight": "100",
"lineHeight": "1.1"
}
},
"core/navigation": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/post-comments": {
"elements": {
"button": {
"color": {
"background": "var(--wp--preset--color--background)",
"text": "var(--wp--preset--color--foreground)"
}
},
"h3": {
"typography": {
"textTransform": "uppercase"
}
}
},
"spacing": {
"padding": {
"top": "var(--wp--custom--spacing--small)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/post-navigation-link": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"fontWeight": "100",
"textTransform": "uppercase"
}
},
"core/pullquote": {
"border": {
"width": "0"
},
"spacing": {
"padding": {
"bottom": "var(--wp--custom--spacing--medium)",
"top": "var(--wp--custom--spacing--medium)"
}
},
"typography": {
"fontWeight": "100",
"lineHeight": "1.2"
}
},
"core/query-pagination": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/quote": {
"border": {
"width": "1px"
}
},
"core/separator": {
"color": {
"background": "var(--wp--preset--color--foreground)"
}
},
"core/site-title": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)",
"fontWeight": "400",
"textTransform": "uppercase"
}
}
},
"color": {
"background": "var(--wp--preset--color--background)",
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"button": {
"border": {
"radius": "0",
"width": "0"
},
"color": {
"background": "var(--wp--preset--color--foreground)",
"text": "var(--wp--preset--color--background)"
},
"spacing": {
"padding": {
"bottom": "calc(0.667em + 2px)",
"left": "calc(1.333em + 2px)",
"right": "calc(1.333em + 2px)",
"top": "calc(0.667em + 2px)"
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--chivo)",
"fontSize": "var(--wp--preset--font-size--normal)",
"textTransform": "uppercase"
}
},
"h1": {
"typography": {
"fontSize": "clamp(3rem, 8vw, 4.5rem)"
}
},
"h2": {
"typography": {
"fontSize": "var(--wp--preset--font-size--huge)"
}
},
"h3": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h4": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"h5": {
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)"
}
},
"h6": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
}
}
},
"spacing": {
"blockGap": "1.25rem",
"padding": {
"top": "0px",
"right": "var(--wp--custom--spacing--outer)",
"bottom": "0px",
"left": "var(--wp--custom--spacing--outer)"
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--chivo)",
"fontSize": "var(--wp--preset--font-size--normal)",
"fontWeight": "400",
"lineHeight": "1.6"
}
},
"templateParts": [
{
"area": "header",
"name": "header",
"title": "Header"
},
{
"area": "footer",
"name": "footer",
"title": "Footer"
}
],
"version": 2,
"$schema": "https://schemas.wp.org/trunk/theme.json"
}