Skip to content

Commit f3e831e

Browse files
committed
Update font stacks to avoid FOUT
1 parent 00aa8fb commit f3e831e

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

docusaurus.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,6 @@ const config: Config = {
215215
crossOrigin: 'true',
216216
},
217217
},
218-
{
219-
tagName: 'link',
220-
attributes: {
221-
rel: 'stylesheet',
222-
href: 'https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet',
223-
},
224-
},
225218
],
226219
scripts: [
227220
'/js/snack-helpers.js',

src/css/custom.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New,
99
monospace;
1010
--ifm-font-family-base:
11-
Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', ui-sans-serif,
12-
system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,
13-
Noto Color Emoji;
14-
--ifm-heading-font-family: 'Google Sans', var(--ifm-font-family-base);
11+
Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial,
12+
ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji,
13+
Segoe UI Symbol, Noto Color Emoji;
14+
--ifm-heading-font-family:
15+
Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif,
16+
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
17+
font-weight: normal;
1518
--ifm-font-size-base: 100%;
1619
--ifm-line-height-base: 1.75;
1720
--ifm-code-font-size: 85%;

src/pages/home/Splash/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
.mainText {
5656
font-size: 4.375rem;
5757
color: var(--ifm-home-color-text);
58-
font-weight: 700;
58+
font-weight: 900;
5959
margin-bottom: 0.25rem;
6060
}
6161

0 commit comments

Comments
 (0)