themes-wordpress/creatio-2/theme.json
alaczek c5046d4d3e
Creatio 2: Minor styling updates. (#7420)
* Update screenshot.png

* Remove font-size reference on block level.

* Update theme.json

Remove explicit reference to font family.

* Remove block-level styling

* Update header.html

Remove fixed background color.

* Update single.html

Remove the block-level color setting for post navigation.

* Update theme.json

Simply how colors are applied to blocks.

* Update theme.json

Add styling for comments count and comments link blocks.
2023-10-06 16:16:04 +11:00

648 lines
No EOL
13 KiB
JSON

{
"settings": {
"appearanceTools": true,
"color": {
"background": true,
"custom": true,
"customDuotone": true,
"customGradient": true,
"defaultDuotone": true,
"defaultGradients": true,
"defaultPalette": true,
"duotone": [],
"gradients": [],
"palette": [
{
"color": "#11181F",
"name": "Primary",
"slug": "primary"
},
{
"color": "#005ae1",
"name": "Secondary",
"slug": "secondary"
},
{
"color": "#11181F",
"name": "Foreground",
"slug": "foreground"
},
{
"color": "#ffffff",
"name": "Background",
"slug": "background"
},
{
"color": "#f7f9fd",
"name": "Tertiary",
"slug": "tertiary"
}
],
"text": true
},
"layout": {
"contentSize": "620px",
"wideSize": "1200px"
},
"shadow": {
"defaultPresets": true,
"presets": []
},
"spacing": {
"customSpacingSize": true,
"spacingScale": {
"increment": 1.5,
"mediumStep": 1.5,
"operator": "*",
"steps": 7,
"unit": "rem"
},
"spacingSizes": [
{
"name": "1",
"size": "0.25rem",
"slug": "30"
},
{
"name": "2",
"size": "1rem",
"slug": "40"
},
{
"name": "3",
"size": "1.75rem",
"slug": "50"
},
{
"name": "4",
"size": "clamp(1.75rem, 3.5211268vw, 3.5rem)",
"slug": "60"
},
{
"name": "5",
"size": "clamp(3.5rem, 7.3943662vw, 5.25rem)",
"slug": "70"
},
{
"name": "6",
"size": "clamp(5.25rem, 12.3239437vw, 8.75rem)",
"slug": "80"
}
],
"units": [
"%",
"px",
"em",
"rem",
"vh",
"vw"
]
},
"typography": {
"customFontSize": true,
"dropCap": true,
"fluid": true,
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "700",
"src": [
"file:./assets/fonts/inter_normal_700.ttf"
]
},
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "500",
"src": [
"file:./assets/fonts/inter_normal_500.ttf"
]
},
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "600",
"src": [
"file:./assets/fonts/inter_normal_600.ttf"
]
},
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/inter_normal_400.ttf"
]
}
],
"fontFamily": "Inter",
"slug": "inter"
}
],
"fontSizes": [
{
"fluid": false,
"name": "Extra Small",
"size": "0.8rem",
"slug": "x-small"
},
{
"fluid": {
"max": "1.0625rem",
"min": "0.825rem"
},
"name": "Small",
"size": "1rem",
"slug": "small"
},
{
"fluid": {
"max": "1.25rem",
"min": "1rem"
},
"name": "Medium",
"size": "1.125rem",
"slug": "medium"
},
{
"fluid": {
"max": "1.563rem",
"min": "1.25rem"
},
"name": "Large",
"size": "1.563rem",
"slug": "large"
},
{
"fluid": {
"max": "1.953rem",
"min": "1.563rem"
},
"name": "Extra Large",
"size": "1.953rem",
"slug": "x-large"
},
{
"fluid": {
"max": "2.441rem",
"min": "1.953rem"
},
"name": "2X Large",
"size": "3.732rem",
"slug": "xx-large"
},
{
"fluid": {
"max": "3.052rem",
"min": "2.441rem"
},
"name": "3X Large",
"size": "3.052rem",
"slug": "xxx-large"
},
{
"fluid": {
"max": "3.815rem",
"min": "3.052rem"
},
"name": "4X Large",
"size": "3.815rem",
"slug": "xxxx-large"
},
{
"fluid": {
"max": "4.768rem",
"min": "3.815rem"
},
"name": "5X Large",
"size": "4.768rem",
"slug": "xxxxx-large"
}
],
"fontStyle": true,
"fontWeight": true,
"letterSpacing": true,
"textDecoration": true,
"textTransform": true
},
"useRootPaddingAwareAlignments": true
},
"styles": {
"blocks": {
"core/button": {
"color": {
"background": "var(--wp--preset--color--secondary)"
},
"spacing": {
"padding": {
"bottom": "var(--wp--preset--spacing--40)",
"top": "var(--wp--preset--spacing--40)"
}
},
"typography": {
"lineHeight": "1"
},
"variations": {
"outline": {
"border": {
"color": "var(--wp--preset--color--secondary)"
},
"color": {
"text": "var(--wp--preset--color--secondary)"
},
"spacing": {
"padding": {
"bottom": "14px",
"top": "14px"
}
}
}
}
},
"core/buttons": {
"spacing": {
"blockGap": "var(--wp--preset--spacing--40)"
}
},
"core/code": {
"border": {
"color": "var(--wp--preset--color--foreground)",
"radius": "0.25rem",
"style": "solid",
"width": "2px"
},
"spacing": {
"padding": {
"bottom": "var(--wp--preset--spacing--50)",
"left": "var(--wp--preset--spacing--50)",
"right": "var(--wp--preset--spacing--50)",
"top": "var(--wp--preset--spacing--50)"
}
},
"typography": {
"fontFamily": "monospace"
}
},
"core/comment-author-name": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/comment-date": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/comment-edit-link": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/comment-reply-link": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/gallery": {
"spacing": {
"margin": {
"bottom": "var(--wp--preset--spacing--50)"
}
}
},
"core/heading": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
}
}
}
},
"core/list": {
"spacing": {
"padding": {
"left": "var(--wp--preset--spacing--50)"
}
}
},
"core/navigation": {
"elements": {
"link": {
":hover": {
"typography": {
"textDecoration": "underline"
}
},
"typography": {
"textDecoration": "none"
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/post-author-name": {
"elements": {
"link": {
":hover": {
"typography": {
"textDecoration": "underline"
}
},
"typography": {
"textDecoration": "none"
}
}
}
},
"core/post-date": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"link": {
":hover": {
"typography": {
"textDecoration": "underline"
}
},
"typography": {
"textDecoration": "none"
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/post-terms": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/post-comments-link": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/post-comments-count": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-small)"
}
},
"core/post-title": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"link": {
":hover": {
"color": {
"text": "var(--wp--preset--color--primary)"
},
"typography": {
"textDecoration": "underline"
}
},
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"typography": {
"textDecoration": "none"
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--xxx-large)"
}
},
"core/pullquote": {
"border": {
"color": "var(--wp--preset--color--foreground)",
"style": "solid",
"width": "1px 0"
},
"spacing": {
"padding": {
"bottom": "var(--wp--preset--spacing--50)",
"left": "var(--wp--preset--spacing--50)",
"right": "var(--wp--preset--spacing--50)",
"top": "var(--wp--preset--spacing--50)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"fontStyle": "italic"
}
},
"core/quote": {
"border": {
"color": "var(--wp--preset--color--foreground)",
"style": "solid",
"width": "0 0 0 5px"
},
"spacing": {
"padding": {
"left": "var(--wp--preset--spacing--50)"
}
},
"typography": {
"fontStyle": "italic"
},
"variations": {
"plain": {
"border": {
"width": "0"
},
"spacing": {
"padding": {
"left": "0"
}
},
"typography": {
"fontStyle": "normal"
}
}
}
},
"core/search": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)",
"lineHeight": "1.2"
}
},
"core/separator": {
"border": {
"color": "currentColor",
"style": "solid",
"width": "0 0 1px 0"
},
"color": {
"text": "var(--wp--preset--color--foreground)"
}
},
"core/site-tagline": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/site-title": {
"elements": {
"link": {
":hover": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"typography": {
"textDecoration": "underline"
}
},
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"typography": {
"textDecoration": "none"
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"fontStyle": "normal"
}
}
},
"color": {
"background": "var(--wp--preset--color--background)",
"text": "var(--wp--preset--color--foreground)"
},
"css": "/* Remove block gap between first-level blocks */ :where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }",
"elements": {
"button": {
":active": {
"color": {
"background": "var(--wp--preset--color--foreground)",
"text": "var(--wp--preset--color--background)"
}
},
":focus": {
"color": {
"background": "var(--wp--preset--color--foreground)",
"text": "var(--wp--preset--color--background)"
},
"outline": {
"color": "var(--wp--preset--color--primary)",
"offset": "2px",
"style": "dotted",
"width": "1px"
}
},
":hover": {
"color": {
"background": "var(--wp--preset--color--secondary)",
"text": "var(--wp--preset--color--background)"
}
},
"border": {
"radius": "0.25rem"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--background)"
}
},
"h1": {
"typography": {
"fontSize": "var(--wp--preset--font-size--xxx-large)",
"lineHeight": "1.127"
}
},
"h2": {
"typography": {
"fontSize": "var(--wp--preset--font-size--xx-large)",
"lineHeight": "1.152"
}
},
"h3": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-large)",
"lineHeight": "1.28"
}
},
"h4": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
"lineHeight": "1.5"
}
},
"h5": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"lineHeight": "1.5"
}
},
"h6": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"lineHeight": "1.5"
}
},
"heading": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontStyle": "normal",
"fontWeight": "600",
"lineHeight": "1.2"
}
},
"link": {
":hover": {
"color": {
"text": "var(--wp--preset--color--primary)"
},
"typography": {
"textDecoration": "none"
}
},
"color": {
"text": "var(--wp--preset--color--foreground)"
}
}
},
"spacing": {
"blockGap": "var(--wp--preset--spacing--50)",
"padding": {
"bottom": "0px",
"left": "var(--wp--preset--spacing--50)",
"right": "var(--wp--preset--spacing--50)",
"top": "0px"
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontSize": "var(--wp--preset--font-size--small)",
"fontStyle": "normal",
"fontWeight": "400",
"lineHeight": "1.6"
}
},
"templateParts": [
{
"area": "header",
"name": "header"
},
{
"area": "footer",
"name": "footer"
}
],
"version": 2,
"$schema": "https://schemas.wp.org/trunk/theme.json"
}