Browse Source

added root element to theme.json

Maggie Cabrera 4 years ago
parent
commit
61d78264b2
1 changed files with 11 additions and 10 deletions
  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",