Skip to content

Commit 8198d99

Browse files
author
hHolyMolly
committed
feat(fonts): add Google Fonts Roboto
1 parent 56e7841 commit 8198d99

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/html/layouts/_head.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818

1919
<link rel="icon" href="./assets/favicon.ico" />
2020

21+
<link rel="preconnect" href="https://fonts.googleapis.com" />
22+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
23+
<link
24+
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
25+
rel="stylesheet"
26+
/>
27+
2128
<link rel="stylesheet" href="./styles/normalize.css" />
2229
<link rel="stylesheet" href="./styles/vars.css" />
2330
<link rel="stylesheet" href="./styles/fonts.css" />

src/styles/vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--black: #222;
55

66
/* Typography */
7-
--font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue', arial, sans-serif;
7+
--font-family: 'Roboto', -apple-system, blinkmacsystemfont, 'Segoe UI', 'Helvetica Neue', arial, sans-serif;
88

99
/* Layout */
1010
--container-width: 1230px;

0 commit comments

Comments
 (0)