From 6acc0219a2b49c7b208e1533c413fe69962e6627 Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Tue, 11 Oct 2022 17:32:24 +0100 Subject: [PATCH 1/4] Apply font sizes as overrides --- styles/canary.json | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/styles/canary.json b/styles/canary.json index 852f246..5b9bb1c 100644 --- a/styles/canary.json +++ b/styles/canary.json @@ -50,22 +50,6 @@ { "size": "0.75rem", "slug": "small" - }, - { - "size": "0.75rem", - "slug": "medium" - }, - { - "size": "0.75rem", - "slug": "large" - }, - { - "size": "0.75rem", - "slug": "x-large" - }, - { - "size": "0.75rem", - "slug": "xx-large" } ] } @@ -91,6 +75,11 @@ "fontSize": "var(--wp--preset--font-size--small)" } }, + "core/comments-title":{ + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, "core/heading": { "typography": { "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)" @@ -123,6 +112,11 @@ } } }, + "core/post-excerpt": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, "core/post-featured-image": { "border": { "radius": "100px 0 0 0" @@ -162,7 +156,8 @@ "core/site-title": { "typography": { "fontWeight": "700", - "textTransform": "lowercase" + "textTransform": "lowercase", + "fontSize": "var(--wp--preset--font-size--small)" } } }, @@ -210,22 +205,22 @@ }, "h1": { "typography": { - "fontSize": "var(--wp--preset--font-size--medium)" + "fontSize": "var(--wp--preset--font-size--small)" } }, "h2": { "typography": { - "fontSize": "var(--wp--preset--font-size--medium)" + "fontSize": "var(--wp--preset--font-size--small)" } }, "h3": { "typography": { - "fontSize": "var(--wp--preset--font-size--medium)" + "fontSize": "var(--wp--preset--font-size--small)" } }, "h4": { "typography": { - "fontSize": "var(--wp--preset--font-size--medium)" + "fontSize": "var(--wp--preset--font-size--small)" } }, "heading": { @@ -240,7 +235,8 @@ } }, "typography": { - "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)" + "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)", + "fontSize": "var(--wp--preset--font-size--small)" } } } From 04475cfb40c8596e8769c9157350831310a9af3e Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Tue, 11 Oct 2022 17:39:57 +0100 Subject: [PATCH 2/4] Add all font sizes --- styles/canary.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/styles/canary.json b/styles/canary.json index 5b9bb1c..9f81c17 100644 --- a/styles/canary.json +++ b/styles/canary.json @@ -50,6 +50,23 @@ { "size": "0.75rem", "slug": "small" + }, + { + "size": "1.125rem", + "slug": "medium" + }, + { + "size": "1.75rem", + "slug": "large" + }, + { + "size": "2.25rem", + "slug": "x-large", + "fluid": false + }, + { + "size": "10rem", + "slug": "xx-large" } ] } From 3d222aeb012de45400be243207a120a52596482f Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Thu, 13 Oct 2022 09:20:47 +0100 Subject: [PATCH 3/4] Allow all font sizes to be fluid --- styles/canary.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/styles/canary.json b/styles/canary.json index 9f81c17..445048e 100644 --- a/styles/canary.json +++ b/styles/canary.json @@ -61,8 +61,7 @@ }, { "size": "2.25rem", - "slug": "x-large", - "fluid": false + "slug": "x-large" }, { "size": "10rem", From 1a3da614c8322cc25ab6373db7df8e0b5cb603cb Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Thu, 13 Oct 2022 09:22:17 +0100 Subject: [PATCH 4/4] Remove font family setting on core/heading --- styles/canary.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/styles/canary.json b/styles/canary.json index 445048e..8346329 100644 --- a/styles/canary.json +++ b/styles/canary.json @@ -96,11 +96,6 @@ "fontSize": "var(--wp--preset--font-size--small)" } }, - "core/heading": { - "typography": { - "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)" - } - }, "core/image": { "border": { "radius": "100px 0 0 0"