Skip to content

Commit

Permalink
map medium Roboto fonts (500) as font-weight 600 so the system will u…
Browse files Browse the repository at this point in the history
…se bold as the fallback font
  • Loading branch information
mojavelinux committed Nov 26, 2023
1 parent 714563d commit 429a816
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/css/typeface-roboto-mono.css
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions src/css/typeface-roboto.css
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 429a816

Please sign in to comment.