From f3a88a2913cf2c64d038d3cac13d2b0b4a8d3cce Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 29 Mar 2023 17:46:11 +0100 Subject: [PATCH 1/5] Use regular font for body text --- src/styles/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/index.css b/src/styles/index.css index 95285ee449f..bfc0775f779 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -46,7 +46,7 @@ font-family: 'Optimistic Text'; src: url('https://react.dev/fonts/Optimistic_Text_W_Rg.woff2') format('woff2'); - font-weight: 300; + font-weight: 400; font-style: normal; font-display: swap; } From 385c16b2fa2c6272dd6e8fdb3863d1648fe963fc Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 29 Mar 2023 17:51:17 +0100 Subject: [PATCH 2/5] Use primary text color for content area --- src/components/Layout/Page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Layout/Page.tsx b/src/components/Layout/Page.tsx index 48d60dde634..9ada0859c70 100644 --- a/src/components/Layout/Page.tsx +++ b/src/components/Layout/Page.tsx @@ -128,7 +128,9 @@ export function Page({children, toc, routeTree, meta, section}: PageProps) { {/* No fallback UI so need to be careful not to suspend directly inside. */}
-
+
{content}
Date: Wed, 29 Mar 2023 21:59:10 +0100 Subject: [PATCH 3/5] Keep medium font for nav --- src/components/Layout/Page.tsx | 2 +- src/pages/_document.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/Page.tsx b/src/components/Layout/Page.tsx index 9ada0859c70..1c68db4d0d3 100644 --- a/src/components/Layout/Page.tsx +++ b/src/components/Layout/Page.tsx @@ -129,7 +129,7 @@ export function Page({children, toc, routeTree, meta, section}: PageProps) {
{content}
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 4596b7bc949..d3a1229d6ad 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -9,7 +9,7 @@ const MyDocument = () => { return ( - +