Skip to content

Commit ca60478

Browse files
authored
feat: use new font (#133)
1 parent e0a304c commit ca60478

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

src/main.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@
88
<meta name="mobile-web-app-capable" content="yes" />
99
<link rel="preconnect" href="https://fonts.googleapis.com" />
1010
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
11+
<link
12+
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Fira+Sans+Condensed:ital,wght@0,400;0,600;1,400;1,600&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap"
13+
rel="stylesheet" />
1114
<link
1215
rel="icon"
1316
type="image/png"
1417
href="/external/ecsact_logo/ecsact-color.png" />
15-
<link
16-
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@400;700&display=swap"
17-
rel="stylesheet" />
18-
<link
19-
href="https://fonts.googleapis.com/css2?family=Raleway&family=Titillium+Web:wght@400;700&display=swap"
20-
rel="stylesheet" />
2118
<link
2219
rel="stylesheet"
2320
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block" />

src/styles.tailwind.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
@tailwind base;
22

33
@layer base {
4+
html {
5+
@apply font-body;
6+
}
7+
48
h1 {
5-
@apply text-3xl mt-2 mb-4 font-bold;
9+
@apply text-3xl mt-2 mb-4 font-header;
610
}
11+
712
h2 {
8-
@apply text-2xl mt-2 mb-4 font-bold;
13+
@apply text-2xl mt-2 mb-4 font-header;
914
}
15+
1016
h3 {
11-
@apply text-xl mt-2 mb-4 font-bold;
17+
@apply text-xl mt-2 mb-4 font-header;
1218
}
19+
1320
h4 {
14-
@apply text-lg mt-2 mb-4 font-bold;
21+
@apply text-lg mt-2 mb-4 font-header;
1522
}
23+
1624
p {
1725
@apply mt-2 mb-4;
1826
}

src/tailwind.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ module.exports = {
7979
},
8080
},
8181
fontFamily: {
82-
sans: ['Raleway', 'ui-sans-serif', 'system-ui'],
83-
serif: ['Raleway', 'ui-serif', 'sans-serif'],
84-
mono: ["'Noto Sans Mono'", 'ui-monospace', 'SFMono-Regular', 'monospace'],
82+
body: ['Nunito Sans', 'ui-sans-serif', 'system-ui'],
83+
header: ['Fira Sans Condensed', 'ui-serif', 'sans-serif'],
84+
mono: ["'Fira Code'", 'ui-monospace', 'SFMono-Regular', 'monospace'],
8585
},
8686
colors: {
8787
primary: {

0 commit comments

Comments
 (0)