Преглед изворни кода

added button element to theme.json

MaggieCabrera пре 3 година
родитељ
комит
36b94aa3f5
1 измењених фајлова са 15 додато и 0 уклоњено
  1. 15 0
      blockbase/theme.json

+ 15 - 0
blockbase/theme.json

@@ -541,6 +541,21 @@
 			"text": "var(--wp--custom--color--foreground)"
 			"text": "var(--wp--custom--color--foreground)"
 		},
 		},
 		"elements": {
 		"elements": {
+			"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--body-font)",
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"fontWeight": "var(--wp--custom--button--typography--font-weight)",
+					"lineHeight": "var(--wp--custom--button--typography--line-height)"
+				}
+			},
 			"h1": {
 			"h1": {
 				"typography": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",