Bläddra i källkod

Curator: adjust font styles (#5984)

* Add heading letter spacing

* Move letter spacing to core/heading setting

* Set individual heading line heights

* Adjust responsive font sizes
Sarah Norris 3 år sedan
förälder
incheckning
b4c9812b82
1 ändrade filer med 13 tillägg och 7 borttagningar
  1. 13 7
      curator/theme.json

+ 13 - 7
curator/theme.json

@@ -216,7 +216,7 @@
 			},
 			"core/heading": {
 				"typography": {
-					"lineHeight": "1.125"
+					"letterSpacing": "-0.02em"
 				}
 			},
 			"core/list": {
@@ -322,28 +322,32 @@
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",
 					"fontWeight": "900",
-					"fontSize": "clamp(5.875rem, 10vw, 3.375rem)"
+					"fontSize": "clamp(3.375rem, 10vw, 5.875rem)",
+					"lineHeight": "1"
 				}
 			},
 			"h2": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",
 					"fontWeight": "900",
-					"fontSize": "clamp(2.75rem, 10vw, 2rem)"
+					"fontSize": "clamp(2rem, 8.5vw, 2.75rem)",
+					"lineHeight": "1"
 				}
 			},
 			"h3": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
 					"fontWeight": "300",
-					"fontSize": "clamp(2rem, 10vw, 1.5rem)"
+					"fontSize": "clamp(1.5rem, 6vw, 2rem)",
+					"lineHeight": "1.2"
 				}
 			},
 			"h4": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
 					"fontWeight": "700",
-					"fontSize": "clamp(1.75rem, 10vw, 1.375rem)"
+					"fontSize": "clamp(1.375rem, 5vw, 1.75rem)",
+					"lineHeight": "1.1"
 				}
 			},
 			"h5": {
@@ -351,14 +355,16 @@
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",
 					"fontWeight": "900",
 					"fontSize": "1.375rem",
-					"textTransform": "uppercase"
+					"textTransform": "uppercase",
+					"lineHeight": "1.2"
 				}
 			},
 			"h6": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
 					"fontWeight": "700",
-					"fontSize": "var(--wp--preset--font-size--medium)"
+					"fontSize": "var(--wp--preset--font-size--medium)",
+					"lineHeight": "1.3"
 				}
 			},
 			"link": {