Skip to content

Commit 659f938

Browse files
author
Felix Hennig
committed
Add Noto Sans font
1 parent 4a8616f commit 659f938

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

package-lock.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"vinyl-fs": "^3.0"
6464
},
6565
"dependencies": {
66-
"typeface-ibm-plex-mono": "^1.1.13"
66+
"typeface-ibm-plex-mono": "^1.1.13",
67+
"typeface-noto-sans": "^1.1.13"
6768
}
6869
}

src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "typeface-roboto-mono.css";
22
@import "typeface-titillium-web.css";
3+
@import "typeface-noto-sans.css";
34
@import "typeface-ibm-plex-mono.css";
45
@import "vars.css";
56
@import "base.css";

src/css/typeface-noto-sans.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@font-face {
2+
font-family: "Noto Sans";
3+
font-style: normal;
4+
font-weight: 400;
5+
src:
6+
local("Roboto Mono Regular"),
7+
local("RobotoMono-Regular"),
8+
url(~typeface-noto-sans/files/noto-sans-latin-400.woff2) format("woff2"),
9+
url(~typeface-noto-sans/files/noto-sans-latin-400.woff) format("woff");
10+
}
11+
12+
@font-face {
13+
font-family: "Noto Sans";
14+
font-style: normal;
15+
font-weight: 700;
16+
src:
17+
local("Roboto Mono Medium"),
18+
local("RobotoMono-Medium"),
19+
url(~typeface-noto-sans/files/noto-sans-latin-700.woff2) format("woff2"),
20+
url(~typeface-noto-sans/files/noto-sans-latin-700.woff) format("woff");
21+
}

src/css/vars.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
--body-font-size--desktop: 1.125em; /* 18px */
2828
--body-font-size--print: 0.9375em; /* 15px */
2929
--body-line-height: 1.15;
30-
--body-font-color: var(--color-jet-70);
31-
--body-font-family: "Titillium Web", sans-serif;
32-
--body-font-weight-bold: 600;
30+
--body-font-color: var(--color-text);
31+
--body-font-family: "Noto Sans", sans-serif;
32+
--body-font-weight-bold: 700;
3333
--monospace-font-family: "Roboto Mono", monospace;
3434
--monospace-font-weight-bold: 500;
3535
/* base */

0 commit comments

Comments
 (0)