Skip to content

Commit c35ab9c

Browse files
committed
Replace Playfair Font with Inter Font
1 parent a10e050 commit c35ab9c

File tree

7 files changed

+25
-7
lines changed

7 files changed

+25
-7
lines changed

assets/scss/components/_feature.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
margin-bottom: auto;
1616
margin-top: auto;
1717
}
18+
h2 {
19+
font-weight: 600;
20+
}
1821
}

assets/scss/components/_footer.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
font-size: 14px;
1919
align-items: center;
2020
display: flex;
21+
font-weight: 300;
2122
a {
2223
font-weight: bold;
2324
color: inherit;

assets/scss/components/_intro.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
}
1010
h1 {
1111
font-size: 42px;
12-
font-weight: bold;
12+
font-weight: 600;
1313
line-height: 1.2;
14+
letter-spacing: -1.935px;
1415
@include media-breakpoint-up(md) {
1516
width: 80%;
1617
font-size: 48px;

assets/scss/components/_title.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.title {
22
font-size: 48px;
33
line-height: 1.2;
4+
letter-spacing: -1.935px;
5+
font-weight: 600;
46
@include media-breakpoint-up(lg) {
57
font-size: 50px;
68
}

assets/scss/style.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ $link-hover-color: $green6;
2121
$link-hover-decoration: underline;
2222

2323
// Fonts
24-
$font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI",
24+
$font-family-base: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
2525
Roboto, Oxygen-Sans, Ubuntu, Cantarell,
2626
"Helvetica Neue", sans-serif;
27-
$font-family-heading: 'Playfair Display', serif, -apple-system;
27+
$font-family-heading: Inter, serif, -apple-system;
2828

2929
// Footer
3030

@@ -111,3 +111,12 @@ body:after {
111111
background: linear-gradient(to bottom, transparent 75%, $green1 100%);
112112
pointer-events: none;
113113
}
114+
115+
:root {
116+
font-family: Inter, sans-serif;
117+
font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
118+
}
119+
120+
@supports (font-variation-settings: normal) {
121+
:root { font-family: InterVariable, sans-serif; }
122+
}

layouts/_default/baseof.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
{{ end }}
2828
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | relURL }}">
2929
<link rel="alternate" type="application/rss+xml" title="Stockfish Blog RSS Feed" href="/blog/index.xml">
30-
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet">
31-
30+
<link rel="preconnect" href="https://rsms.me/">
31+
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
32+
3233
<!-- CSS-->
3334
{{ if .Site.IsServer }}
3435
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }}

layouts/blog/baseof.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
{{ end }}
2828
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | relURL }}">
2929
<link rel="alternate" type="application/rss+xml" title="Stockfish Blog RSS Feed" href="/blog/index.xml">
30-
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet">
31-
30+
<link rel="preconnect" href="https://rsms.me/">
31+
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
32+
3233
<link href="/fontawesome/css/fontawesome.min.css" rel="stylesheet">
3334
<link href="/fontawesome/css/regular.min.css" rel="stylesheet">
3435

0 commit comments

Comments
 (0)