Explorar o código

Arbutus: Update theme json (#5030)

* Arbututs: Remove duplicated theme.json properties

* fix stray comma

* Arbutus: Update theme typography.

Co-authored-by: alaczek <ola@bodera.com>
Ben Dwyer %!s(int64=3) %!d(string=hai) anos
pai
achega
1278b46a61
Modificáronse 1 ficheiros con 111 adicións e 607 borrados
  1. 111 607
      arbutus/theme.json

+ 111 - 607
arbutus/theme.json

@@ -1,608 +1,112 @@
 {
-    "version": 1,
-    "templateParts": [
-        {
-            "name": "header",
-            "area": "header"
-        },
-        {
-            "name": "footer",
-            "area": "footer"
-        }
-    ],
-    "customTemplates": [
-        {
-            "name": "blank",
-            "title": "Blank",
-            "postTypes": [
-                "page",
-                "post"
-            ]
-        },
-        {
-            "name": "header-footer-only",
-            "title": "Header and Footer Only",
-            "postTypes": [
-                "page",
-                "post"
-            ]
-        }
-    ],
-    "settings": {
-        "border": {
-            "customColor": true,
-            "customRadius": true,
-            "customStyle": true,
-            "customWidth": true
-        },
-        "color": {
-            "palette": [
-                {
-                    "slug": "primary",
-                    "color": "#343e47",
-                    "name": "Primary",
-                    "default": "#007cba"
-                },
-                {
-                    "slug": "secondary",
-                    "color": "#33b26e",
-                    "name": "Secondary",
-                    "default": "#006ba1"
-                },
-                {
-                    "slug": "foreground",
-                    "color": "#6e797f",
-                    "name": "Foreground",
-                    "default": "#333333"
-                },
-                {
-                    "slug": "background",
-                    "color": "#ffffff",
-                    "name": "Background",
-                    "default": "#ffffff"
-                },
-                {
-                    "slug": "tertiary",
-                    "color": "#FAFAFA",
-                    "name": "Tertiary",
-                    "default": "#FAFAFA"
-                }
-            ]
-        },
-        "custom": {
-            "alignment": {
-                "alignedMaxWidth": "50%"
-            },
-            "button": {
-                "border": {
-                    "color": "var(--wp--custom--color--primary)",
-                    "radius": "4px",
-                    "style": "solid",
-                    "width": "2px"
-                },
-                "color": {
-                    "background": "var(--wp--custom--color--primary)",
-                    "text": "var(--wp--custom--color--background)"
-                },
-                "hover": {
-                    "color": {
-                        "text": "var(--wp--custom--color--background)",
-                        "background": "var(--wp--custom--color--secondary)"
-                    },
-                    "border": {
-                        "color": "var(--wp--custom--color--secondary)"
-                    }
-                },
-                "spacing": {
-                    "padding": {
-                        "top": "0.667em",
-                        "bottom": "0.667em",
-                        "left": "1.333em",
-                        "right": "1.333em"
-                    }
-                },
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--normal)",
-                    "fontWeight": "normal",
-                    "lineHeight": 2
-                }
-            },
-            "color": {
-                "foreground": "var(--wp--preset--color--foreground)",
-                "background": "var(--wp--preset--color--background)",
-                "primary": "var(--wp--preset--color--primary)",
-                "secondary": "var(--wp--preset--color--secondary)",
-                "tertiary": "var(--wp--preset--color--tertiary)"
-            },
-            "colorPalettes": [
-                {
-                    "label": "Featured",
-                    "slug": "palette-1",
-                    "colors": {
-                        "primary": "#C8133E",
-                        "secondary": "#4E2F4B",
-                        "foreground": "#1D1E1E",
-                        "background": "#FFFFFF",
-                        "tertiary": "#F9F9F9"
-                    }
-                },
-                {
-                    "label": "Featured",
-                    "slug": "palette-2",
-                    "colors": {
-                        "primary": "#35845D",
-                        "secondary": "#233252",
-                        "foreground": "#242527",
-                        "background": "#EEF4F7",
-                        "tertiary": "#F9F9F9"
-                    }
-                },
-                {
-                    "label": "Featured",
-                    "slug": "palette-3",
-                    "colors": {
-                        "primary": "#9FD3E8",
-                        "secondary": "#FBE6AA",
-                        "foreground": "#FFFFFF",
-                        "background": "#1F2527",
-                        "tertiary": "#364043"
-                    }
-                }
-            ],
-            "fontSizes": {
-                "tiny": "14px"
-            },
-            "form": {
-                "padding": "calc( 0.5 * var(--wp--custom--gap--horizontal) )",
-                "border": {
-                    "color": "#EFEFEF",
-                    "radius": "0",
-                    "style": "solid",
-                    "width": "2px"
-                },
-                "checkbox": {
-                    "checked": {
-                        "content": "\"\\2715\"",
-                        "fontSize": "var(--wp--custom--font-sizes--tiny)",
-                        "position": {
-                            "left": "3px",
-                            "top": "3px"
-                        },
-                        "sizing": {
-                            "height": "12px",
-                            "width": "12px"
-                        }
-                    },
-                    "unchecked": {
-                        "content": "\"\"",
-                        "position": {
-                            "left": "0",
-                            "top": "0.2em"
-                        },
-                        "sizing": {
-                            "height": "16px",
-                            "width": "16px"
-                        }
-                    }
-                },
-                "color": {
-                    "background": "transparent",
-                    "boxShadow": "none",
-                    "text": "inherit"
-                },
-                "label": {
-                    "spacing": {
-                        "margin": {
-                            "bottom": "var(--wp--custom--gap--baseline)"
-                        }
-                    },
-                    "typography": {
-                        "fontSize": "var(--wp--custom--font-sizes--tiny)",
-                        "fontWeight": "normal",
-                        "letterSpacing": "normal",
-                        "textTransform": "none"
-                    }
-                },
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--normal)"
-                }
-            },
-            "gallery": {
-                "caption": {
-                    "fontSize": "var(--wp--preset--font-size--small)"
-                }
-            },
-            "body": {
-                "typography": {
-                    "lineHeight": 1.6
-                }
-            },
-            "heading": {
-                "typography": {
-                    "fontWeight": 600,
-                    "lineHeight": 1.125
-                }
-            },
-            "latest-posts": {
-                "meta": {
-                    "color": {
-                        "text": "var(--wp--custom--color--primary)"
-                    }
-                }
-            },
-            "layout": {
-                "contentSize": "620px"
-            },
-            "list": {
-                "spacing": {
-                    "padding": {
-                        "left": "calc( 2 * var(--wp--custom--gap--horizontal) )"
-                    }
-                }
-            },
-            "gap": {
-                "baseline": "15px",
-                "horizontal": "min(30px, 5vw)",
-                "vertical": "min(30px, 5vw)"
-            },
-            "paragraph": {
-                "dropcap": {
-                    "margin": ".1em .1em 0 0",
-                    "typography": {
-                        "fontSize": "110px",
-                        "fontWeight": "400"
-                    }
-                }
-            },
-            "post-author": {
-                "typography": {
-                    "fontWeight": "normal"
-                }
-            },
-            "post-comment": {
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--normal)",
-                    "lineHeight": "var(--wp--custom--body--typography--line-height)"
-                }
-            },
-            "pullquote": {
-                "citation": {
-                    "typography": {
-                        "fontSize": "var(--wp--custom--font-sizes--tiny)",
-                        "fontFamily": "inherit",
-                        "fontStyle": "italic"
-                    },
-                    "spacing": {
-                        "margin": {
-                            "top": "var(--wp--custom--gap--vertical)"
-                        }
-                    }
-                },
-                "typography": {
-                    "textAlign": "left"
-                }
-            },
-            "quote": {
-                "citation": {
-                    "typography": {
-                        "fontSize": "var(--wp--custom--font-sizes--tiny)",
-                        "fontStyle": "italic",
-                        "fontWeight": "400"
-                    }
-                },
-                "typography": {
-                    "textAlign": "left"
-                }
-            },
-            "separator": {
-                "opacity": 1,
-                "width": "150px"
-            },
-            "table": {
-                "figcaption": {
-                    "typography": {
-                        "fontSize": "var(--wp--custom--font-sizes--tiny)"
-                    }
-                }
-            },
-            "video": {
-                "caption": {
-                    "textAlign": "center",
-                    "margin": "var(--wp--custom--gap--vertical) auto"
-                }
-            }
-        },
-        "layout": {
-            "contentSize": "620px",
-            "wideSize": "1000px"
-        },
-        "spacing": {
-            "blockGap": true,
-            "customPadding": true,
-            "units": [
-                "%",
-                "px",
-                "em",
-                "rem",
-                "vh",
-                "vw"
-            ]
-        },
-        "typography": {
-            "customFontSize": true,
-            "customLineHeight": true,
-            "fontFamilies": [
-                {
-                    "fontFamily": "\"Open Sans\", sans-serif",
-                    "slug": "open-sans",
-                    "name": "Open Sans",
-                    "google": "family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800"
-                },
-                {
-                    "fontFamily": "\"Open Sans\", sans-serif",
-                    "slug": "open-sans",
-                    "name": "Open Sans",
-                    "google": "family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800"
-                }
-            ],
-            "fontSizes": [
-                {
-                    "name": "Small",
-                    "size": "16px",
-                    "slug": "small"
-                },
-                {
-                    "name": "Normal",
-                    "size": "18px",
-                    "slug": "normal"
-                },
-                {
-                    "name": "Medium",
-                    "size": "24px",
-                    "slug": "medium"
-                },
-                {
-                    "name": "Large",
-                    "size": "28px",
-                    "slug": "large"
-                },
-                {
-                    "name": "Huge",
-                    "size": "32px",
-                    "slug": "huge"
-                }
-            ]
-        }
-    },
-    "styles": {
-        "blocks": {
-            "core\/button": {
-                "border": {
-                    "radius": "var(--wp--custom--button--border--radius)"
-                },
-                "color": {
-                    "background": "var(--wp--custom--button--color--background)",
-                    "text": "var(--wp--custom--button--color--text)"
-                },
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontSize": "var(--wp--custom--button--typography--font-size)",
-                    "fontWeight": "var(--wp--custom--button--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--button--typography--line-height)"
-                }
-            },
-            "core\/code": {
-                "border": {
-                    "color": "#CCCCCC",
-                    "radius": "0px",
-                    "style": "solid",
-                    "width": "2px"
-                },
-                "spacing": {
-                    "padding": {
-                        "left": "var(--wp--custom--gap--horizontal)",
-                        "right": "var(--wp--custom--gap--horizontal)",
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                },
-                "typography": {
-                    "fontFamily": "monospace"
-                }
-            },
-            "core\/gallery": {
-                "spacing": {
-                    "margin": {
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "core\/navigation": {
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--normal)"
-                }
-            },
-            "core\/post-title": {
-                "spacing": {
-                    "margin": {
-                        "bottom": "0"
-                    }
-                },
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontSize": "48px",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)"
-                }
-            },
-            "core\/post-date": {
-                "color": {
-                    "text": "var(--wp--custom--color--foreground)"
-                },
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--small)"
-                }
-            },
-            "core\/pullquote": {
-                "border": {
-                    "style": "solid",
-                    "width": "1px 0"
-                },
-                "typography": {
-                    "fontStyle": "italic",
-                    "fontSize": "var(--wp--preset--font-size--large)",
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)"
-                },
-                "spacing": {
-                    "padding": {
-                        "left": "var(--wp--custom--gap--horizontal)",
-                        "right": "var(--wp--custom--gap--horizontal)",
-                        "top": "var(--wp--custom--gap--horizontal)",
-                        "bottom": "var(--wp--custom--gap--horizontal)"
-                    }
-                }
-            },
-            "core\/search": {
-                "typography": {
-                    "fontSize": "var(--wp--custom--button--typography--font-size)",
-                    "lineHeight": "var(--wp--custom--body--typography--line-height)"
-                }
-            },
-            "core\/separator": {
-                "color": {
-                    "text": "var(--wp--custom--color--foreground)"
-                },
-                "border": {
-                    "color": "currentColor",
-                    "style": "solid",
-                    "width": "0 0 1px 0"
-                }
-            },
-            "core\/quote": {
-                "border": {
-                    "color": "var(--wp--custom--color--primary)",
-                    "style": "solid",
-                    "width": "0 0 0 1px"
-                },
-                "spacing": {
-                    "padding": {
-                        "left": "var(--wp--custom--gap--horizontal)"
-                    }
-                },
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--normal)",
-                    "fontStyle": "normal"
-                }
-            },
-            "core\/site-title": {
-                "typography": {
-                    "fontSize": "var(--wp--preset--font-size--normal)",
-                    "fontWeight": "700",
-                    "textDecoration": "none"
-                }
-            }
-        },
-        "color": {
-            "background": "var(--wp--custom--color--background)",
-            "text": "var(--wp--custom--color--foreground)"
-        },
-        "elements": {
-            "h1": {
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontWeight": "var(--wp--custom--heading--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)",
-                    "fontSize": "48px"
-                },
-                "spacing": {
-                    "margin": {
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "h2": {
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontWeight": "var(--wp--custom--heading--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)",
-                    "fontSize": "32px"
-                },
-                "spacing": {
-                    "margin": {
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "h3": {
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontWeight": "var(--wp--custom--heading--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)",
-                    "fontSize": "var(--wp--preset--font-size--large)"
-                },
-                "spacing": {
-                    "margin": {
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "h4": {
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontWeight": "var(--wp--custom--heading--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)",
-                    "fontSize": "var(--wp--preset--font-size--medium)"
-                },
-                "spacing": {
-                    "margin": {
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "h5": {
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontWeight": "var(--wp--custom--heading--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)",
-                    "fontSize": "var(--wp--preset--font-size--normal)"
-                },
-                "spacing": {
-                    "margin": {
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "h6": {
-                "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--open-sans)",
-                    "fontWeight": "var(--wp--custom--heading--typography--font-weight)",
-                    "lineHeight": "var(--wp--custom--heading--typography--line-height)",
-                    "fontSize": "var(--wp--preset--font-size--small)"
-                },
-                "spacing": {
-                    "margin": {
-                        "top": "var(--wp--custom--gap--vertical)",
-                        "bottom": "var(--wp--custom--gap--vertical)"
-                    }
-                }
-            },
-            "link": {
-                "color": {
-                    "text": "var(--wp--custom--color--primary)"
-                }
-            }
-        },
-        "spacing": {
-            "blockGap": "calc(2 * var(--wp--custom--gap--baseline))"
-        },
-        "typography": {
-            "lineHeight": "var(--wp--custom--body--typography--line-height)",
-            "fontFamily": "var(--wp--preset--font-family--open-sans)",
-            "fontSize": "var(--wp--preset--font-size--normal)"
-        }
-    }
-}
+	"$schema": "https://json.schemastore.org/theme-v1.json",
+	"version": 1,
+	"settings": {
+		"color": {
+			"palette": [
+				{
+					"slug": "primary",
+					"color": "#343e47",
+					"name": "Primary",
+					"default": "#007cba"
+				},
+				{
+					"slug": "secondary",
+					"color": "#33b26e",
+					"name": "Secondary",
+					"default": "#006ba1"
+				},
+				{
+					"slug": "foreground",
+					"color": "#6e797f",
+					"name": "Foreground",
+					"default": "#333333"
+				},
+				{
+					"slug": "background",
+					"color": "#ffffff",
+					"name": "Background",
+					"default": "#ffffff"
+				},
+				{
+					"slug": "tertiary",
+					"color": "#FAFAFA",
+					"name": "Tertiary",
+					"default": "#FAFAFA"
+				}
+			]
+		},
+		"custom": {
+			"heading": {
+				"typography": {
+					"fontWeight": 600
+				}
+			}
+		},
+		"typography": {
+			"fontFamilies": [
+				{
+					"fontFamily": "\"Roboto\", sans-serif",
+					"slug": "roboto",
+					"name": "roboto",
+					"google": "family=Open+Sans:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900"
+				}
+			]
+		}
+	},
+	"styles": {
+		"blocks": {
+			"core/button": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			},
+			"core/post-title": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)",
+					"fontSize": "48px"
+				}
+			},
+			"core/pullquote": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			}
+		},
+		"elements": {
+			"h1": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			},
+			"h2": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			},
+			"h3": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			},
+			"h4": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			},
+			"h5": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			},
+			"h6": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--roboto)"
+				}
+			}
+		},
+		"typography": {
+			"fontFamily": "var(--wp--preset--font-family--roboto)"
+		}
+	}
+}