Skip to content

Commit d00f70d

Browse files
committed
Set custom font for site (FiraSans)
1 parent 5551147 commit d00f70d

4 files changed

Lines changed: 29 additions & 1 deletion

File tree

site/assets/FiraSans-Light.ttf

439 KB
Binary file not shown.

site/assets/FiraSans-Medium.ttf

447 KB
Binary file not shown.

site/assets/FiraSans-Regular.ttf

446 KB
Binary file not shown.

site/style.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
1+
@font-face {
2+
font-family: 'FiraSans';
3+
src: url('assets/FiraSans-Regular.ttf') format('truetype');
4+
font-weight: normal;
5+
font-style: normal;
6+
}
7+
8+
@font-face {
9+
font-family: 'FiraSans';
10+
src: url('assets/FiraSans-Medium.ttf') format('truetype');
11+
font-weight: 500;
12+
font-style: normal;
13+
}
14+
15+
@font-face {
16+
font-family: 'FiraSans';
17+
src: url('assets/FiraSans-Light.ttf') format('truetype');
18+
font-weight: 300;
19+
font-style: normal;
20+
}
21+
122
body {
2-
font-family: sans-serif;
23+
font-family: 'FiraSans', sans-serif;
24+
font-weight: normal;
325
background-color: #282828;
426
/* Gruvbox Dark background */
527
color: #ebdbb2;
@@ -24,11 +46,15 @@ body {
2446
}
2547

2648
h1 {
49+
font-family: 'FiraCode', sans-serif;
50+
font-weight: 600;
2751
color: #fb4934;
2852
/* Gruvbox Dark red */
2953
}
3054

3155
h2 {
56+
font-family: 'FiraCode', sans-serif;
57+
font-weight: 600;
3258
color: #d65d0e;
3359
}
3460

@@ -201,9 +227,11 @@ figcaption {
201227
color: #ebdbb2;
202228
margin: 50px auto;
203229
flex: 0 0 auto;
230+
font-family: 'FiraSans', sans-serif;
204231
}
205232

206233
.download-button {
234+
font-family: 'FiraSans', sans-serif;
207235
display: inline-block;
208236
padding: 15px 30px;
209237
margin: 20px 0;

0 commit comments

Comments
 (0)