Browse Source

Block Canvas : Eliminated the naming of font families from 'body' and 'header' (#6072)

Jason Crist 3 years ago
parent
commit
c013a1a89e
1 changed files with 4 additions and 12 deletions
  1. 4 12
      block-canvas/theme.json

+ 4 - 12
block-canvas/theme.json

@@ -94,15 +94,10 @@
             "fontFamilies": [
                 {
                     "fontFamily": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
-                    "name": "Body (System Font)",
-                    "slug": "body-font"
-                },
-                {
-                    "fontFamily": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
-                    "name": "Headings (System Font)",
-                    "slug": "heading-font"
+                    "name": "System Font",
+                    "slug": "system-font"
                 }
-            ],
+           ],
             "fontSizes": [
                 {
                     "name": "Small",
@@ -139,7 +134,6 @@
                     "text": "var(--wp--preset--color--background)"
                 },
                 "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--body-font)",
                     "fontSize": "var(--wp--preset--font-size--medium)",
                     "fontWeight": "normal",
                     "lineHeight": "2"
@@ -173,7 +167,6 @@
             },
             "core/heading": {
                 "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--heading-font)",
                     "fontWeight": "400",
                     "lineHeight": "1.125"
                 }
@@ -205,7 +198,6 @@
                     }
                 },
                 "typography": {
-                    "fontFamily": "var(--wp--preset--font-family--heading-font)",
                     "fontSize": "var(--wp--preset--font-size--large)",
                     "lineHeight": "1.125"
                 }
@@ -318,7 +310,7 @@
             "blockGap": "30px"
         },
         "typography": {
-            "fontFamily": "var(--wp--preset--font-family--body-font)",
+            "fontFamily": "var(--wp--preset--font-family--system-font)",
             "fontSize": "var(--wp--preset--font-size--medium)",
             "lineHeight": "1.6"
         }