浏览代码

added root element to theme.json

Maggie Cabrera 4 年之前
父节点
当前提交
61d78264b2
共有 1 个文件被更改,包括 11 次插入10 次删除
  1. 11 10
      mayland-blocks/experimental-theme.json

+ 11 - 10
mayland-blocks/experimental-theme.json

@@ -110,17 +110,18 @@
 		}
 	},
 	"styles": {
-		"color": {
-			"background": "var(--wp--preset--color--background)",
-			"text": "var(--wp--preset--color--foreground)",
-			"link": "var(--wp--preset--color--foreground)"
-		},
-		"typography": {
-			"fontSize": "var(--wp--preset--font-size--normal)",
-			"lineHeight": "var(--wp--custom--line-height--body)",
-			"fontFamily": "var(--wp--preset--font-family--poppins)"
+		"root": {
+			"color": {
+				"background": "var(--wp--preset--color--background)",
+				"text": "var(--wp--preset--color--foreground)",
+				"link": "var(--wp--preset--color--foreground)"
+			},
+			"typography": {
+				"fontSize": "var(--wp--preset--font-size--normal)",
+				"lineHeight": "var(--wp--custom--line-height--body)",
+				"fontFamily": "var(--wp--preset--font-family--poppins)"
+			}
 		},
-
 		"core/heading/h1": {
 			"typography": {
 				"fontSize": "41.47px",