Skip to content

Commit f5e7cb2

Browse files
authored
Merge pull request #253 from scroll-tech/update-doc-typeface
Swap two fonts, 'trans-sans' and 'Roboto Flex', for 'Roboto'
2 parents 67a7fce + 7246041 commit f5e7cb2

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

src/layouts/MainLayout.astro

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,7 @@ changeLanguage(content.lang)
4545
<link rel="preconnect" href="https://fonts.googleapis.com" />
4646
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4747
<link
48-
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@500&family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,600&display=swap"
49-
rel="stylesheet"
50-
/>
51-
<link
52-
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,600&display=swap"
53-
rel="stylesheet"
54-
/>
55-
56-
<link rel="preconnect" href="https://fonts.googleapis.com" />
57-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
58-
<link
59-
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,600&family=Roboto+Mono:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap"
48+
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Roboto+Mono:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap"
6049
rel="stylesheet"
6150
/>
6251

src/styles/design-system/values/font.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:root {
22
--font-family-text: "trans-sans", "circular", Arial, "Helvetica Neue", Helvetica, sans-serif;
33
--font-family-code: "Roboto Mono", "Fira Code", "Courier New", monospace, sans-serif;
4-
--font-family-body-text: "Roboto Flex", "trans-sans", "circular", Arial, "Helvetica Neue", Helvetica, sans-serif;
4+
--font-family-body-text: "Roboto", "trans-sans", "circular", Arial, "Helvetica Neue", Helvetica, sans-serif;
55

66
/* Font weights */
77
--font-weight-normal: 400;

src/styles/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ article > section iframe {
116116
position: relative;
117117
}
118118

119-
.main-section :is(h1, h2, h3) {
120-
font-family: var(--font-family-text);
121-
}
122-
123119
.main-section .remix-callout {
124120
margin-top: 30px;
125121
}

0 commit comments

Comments
 (0)