From 429a816f631f1c9a91ff39780235c311ac06aac5 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 25 Nov 2023 20:44:13 -0700 Subject: [PATCH] map medium Roboto fonts (500) as font-weight 600 so the system will use bold as the fallback font --- src/css/typeface-roboto-mono.css | 2 +- src/css/typeface-roboto.css | 4 ++-- src/css/vars.css | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/css/typeface-roboto-mono.css b/src/css/typeface-roboto-mono.css index 841df088..cea0fe8e 100644 --- a/src/css/typeface-roboto-mono.css +++ b/src/css/typeface-roboto-mono.css @@ -11,7 +11,7 @@ @font-face { font-family: "Roboto Mono"; font-style: normal; - font-weight: 500; + font-weight: 600; src: url(~@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff2) format("woff2"), url(~@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff) format("woff"); diff --git a/src/css/typeface-roboto.css b/src/css/typeface-roboto.css index 1648a2bd..ede22b4f 100644 --- a/src/css/typeface-roboto.css +++ b/src/css/typeface-roboto.css @@ -21,7 +21,7 @@ @font-face { font-family: "Roboto"; font-style: normal; - font-weight: 500; + font-weight: 600; src: url(~@fontsource/roboto/files/roboto-latin-500-normal.woff2) format("woff2"), url(~@fontsource/roboto/files/roboto-latin-500-normal.woff) format("woff"); @@ -31,7 +31,7 @@ @font-face { font-family: "Roboto"; font-style: italic; - font-weight: 500; + font-weight: 600; src: url(~@fontsource/roboto/files/roboto-latin-500-italic.woff2) format("woff2"), url(~@fontsource/roboto/files/roboto-latin-500-italic.woff) format("woff"); diff --git a/src/css/vars.css b/src/css/vars.css index 45fe1123..6077aec3 100644 --- a/src/css/vars.css +++ b/src/css/vars.css @@ -28,9 +28,9 @@ --body-line-height: 1.15; --body-font-color: var(--color-jet-80); --body-font-family: "Roboto", sans-serif; - --body-font-weight-bold: 500; + --body-font-weight-bold: 600; --monospace-font-family: "Roboto Mono", monospace; - --monospace-font-weight-bold: 500; + --monospace-font-weight-bold: 600; /* base */ --body-background: var(--color-white); --panel-background: var(--color-smoke-30);