Skip to content

Commit dde8fe4

Browse files
committed
Fix font weights
1 parent 401b6a4 commit dde8fe4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const config: Config = {
6666
tagName: "link",
6767
attributes: {
6868
rel: "stylesheet",
69-
href: "https://fonts.googleapis.com/css2?family=Martian+Mono:wght@300;600&display=swap",
69+
href: "https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&display=swap",
7070
},
7171
},
7272
],

src/css/general.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
--ifm-line-height-base: 2;
3737

3838
--ifm-heading-font-family: 'Martian Grotesk', 'Roboto', sans-serif;
39+
--ifm-heading-font-weight: var(--ifm-font-weight-bold);
3940

4041
--ifm-table-stripe-background: rgba(255, 255, 255, 0.05);
4142
}
@@ -44,8 +45,10 @@
4445
--ifm-footer-background-color: #ffffff0d;
4546
}
4647

47-
html {
48+
body {
4849
font-weight: var(--ifm-font-weight-base);
50+
font-variation-settings: 'wght' var(--ifm-font-weight-base);
51+
font-synthesis-weight: none;
4952
}
5053

5154
.markdown details summary {
@@ -61,13 +64,18 @@ html {
6164
}
6265

6366
h1 {
64-
font-weight: 900;
67+
--ifm-heading-font-weight: 900;
6568
}
6669

6770
h2, h3 {
6871
font-stretch: condensed;
6972
}
7073

74+
h1, h2, h3, h4, h5, h6 {
75+
font-variation-settings: 'wght' var(--ifm-heading-font-weight);
76+
}
77+
7178
pre {
7279
font-weight: var(--ifm-font-weight-base);
80+
font-variation-settings: 'wght' var(--ifm-font-weight-base);
7381
}

0 commit comments

Comments
 (0)