Browse Source

Fix more letter spacings and font weight

Figma outputs were not matching the design in HTML
Imran Hossain 2 years ago
parent
commit
74d97e85f1
1 changed files with 25 additions and 5 deletions
  1. 25 5
      course/styles/gold.json

+ 25 - 5
course/styles/gold.json

@@ -92,6 +92,14 @@
 							"fontStretch": "normal",
 							"src": [ "file:./assets/fonts/montserrat/Montserrat-VariableFont_wght.ttf" ]
 						},
+						{
+							"fontFamily": "Montserrat",
+							"fontDisplay": "block",
+							"fontWeight": "500",
+							"fontStyle": "normal",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/montserrat/Montserrat-VariableFont_wght.ttf" ]
+						},
 						{
 							"fontFamily": "Montserrat",
 							"fontDisplay": "block",
@@ -115,6 +123,14 @@
 							"fontStyle": "italic",
 							"fontStretch": "normal",
 							"src": [ "file:./assets/fonts/montserrat/Montserrat-Italic-VariableFont_wght.ttf" ]
+						},
+						{
+							"fontFamily": "Montserrat",
+							"fontDisplay": "block",
+							"fontWeight": "800",
+							"fontStyle": "italic",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/montserrat/Montserrat-Italic-VariableFont_wght.ttf" ]
 						}
 					]
 				},
@@ -216,11 +232,13 @@
 			},
 			"core/paragraph": {
 				"typography": {
-					"lineHeight": "1.6"
+					"lineHeight": "1.6",
+					"letterSpacing": "-0.004em"
 				}
 			},
 			"sensei-lms/course-theme-lesson-module": {
 				"typography": {
+					"letterSpacing": "-0.02em",
 					"fontWeight": "700",
 					"lineHeight": "1.21"
 				}
@@ -240,7 +258,8 @@
 			},
 			"sensei-lms/course-theme-course-progress-counter": {
 				"typography": {
-					"letterSpacing": "-0.01em",
+					"fontFamily": "var(--wp--preset--font-family--heading)",
+					"letterSpacing": "-0.001em",
 					"fontWeight": "500",
 					"fontSize": "var(--wp--preset--font-size--small)",
 					"lineHeight": "1.6"
@@ -248,8 +267,9 @@
 			},
 			"sensei-lms/exit-course": {
 				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--heading)",
 					"fontSize": "var(--wp--preset--font-size--x-small)",
-					"letterSpacing": "-0.01em",
+					"letterSpacing": "-0.02em",
 					"fontWeight": "500",
 					"lineHeight": "1.6"
 				}
@@ -258,8 +278,8 @@
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--system)",
 					"fontSize": "var(--wp--preset--font-size--x-small)",
-					"fontWeight": "700",
-					"letterSpacing": "-0.01em",
+					"fontWeight": "800",
+					"letterSpacing": "0.04em",
 					"lineHeight": "1",
 					"textTransform": "uppercase"
 				}