Skip to content

Commit 429a816

Browse files
committed
map medium Roboto fonts (500) as font-weight 600 so the system will use bold as the fallback font
1 parent 714563d commit 429a816

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/css/typeface-roboto-mono.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@font-face {
1212
font-family: "Roboto Mono";
1313
font-style: normal;
14-
font-weight: 500;
14+
font-weight: 600;
1515
src:
1616
url(~@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff2) format("woff2"),
1717
url(~@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff) format("woff");

src/css/typeface-roboto.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@font-face {
2222
font-family: "Roboto";
2323
font-style: normal;
24-
font-weight: 500;
24+
font-weight: 600;
2525
src:
2626
url(~@fontsource/roboto/files/roboto-latin-500-normal.woff2) format("woff2"),
2727
url(~@fontsource/roboto/files/roboto-latin-500-normal.woff) format("woff");
@@ -31,7 +31,7 @@
3131
@font-face {
3232
font-family: "Roboto";
3333
font-style: italic;
34-
font-weight: 500;
34+
font-weight: 600;
3535
src:
3636
url(~@fontsource/roboto/files/roboto-latin-500-italic.woff2) format("woff2"),
3737
url(~@fontsource/roboto/files/roboto-latin-500-italic.woff) format("woff");

src/css/vars.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
--body-line-height: 1.15;
2929
--body-font-color: var(--color-jet-80);
3030
--body-font-family: "Roboto", sans-serif;
31-
--body-font-weight-bold: 500;
31+
--body-font-weight-bold: 600;
3232
--monospace-font-family: "Roboto Mono", monospace;
33-
--monospace-font-weight-bold: 500;
33+
--monospace-font-weight-bold: 600;
3434
/* base */
3535
--body-background: var(--color-white);
3636
--panel-background: var(--color-smoke-30);

0 commit comments

Comments
 (0)