Skip to content

Commit 2aaaf76

Browse files
Niteshfarhaanbukhsh
authored andcommitted
update: font family for all webpages #89
1 parent 72f56d3 commit 2aaaf76

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/_includes/head.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<link rel="preload" href="{{ env.baseUrl }}css/page.css" as="style">
55
<link rel="icon" type="image/x-icon" href="{{ env.baseUrl }}img/logo.png">
66
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
7+
<link href="https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Hanken+Grotesk&display=swap" rel="stylesheet">
78
<!-- PRELOAD CDN SCRIPTS -->
89
<link rel="preconnect" href="https://unpkg.com/popper.js@1" as="script">
910
<link rel="preconnect" href="https://unpkg.com/tippy.js@4" as="script">

src/css/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ html {
1919
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2020
}
2121

22+
h1, h2, h3, h4, h5, h6 {
23+
font-family: 'Black Han Sans', sans-serif;
24+
}
25+
2226
body {
23-
font-family: 'Inter', sans-serif;
27+
font-family: 'Hanken Grotesk', sans-serif;
2428
color: #111827;
2529
background-color: #FFFFFF;
2630
min-height: 100vh;

tailwind.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ module.exports = {
251251
DEFAULT: '1',
252252
},
253253
fontFamily: {
254+
heading: ['"Black Han Sans"', 'sans-serif'],
255+
body: ['"Hanken Grotesk"', 'sans-serif'],
254256
sans: [
255257
'ui-sans-serif',
256258
'system-ui',

0 commit comments

Comments
 (0)