Skip to content

Commit 2fa1dfb

Browse files
authored
Added font to tailwind and globals (#7)
1 parent 37b8270 commit 2fa1dfb

File tree

75 files changed

+53
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+53
-4
lines changed

app/(pages)/_globals/styles/globals.scss

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,49 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss/base";
2+
3+
@import "tailwindcss/components";
4+
5+
@import "tailwindcss/utilities";
6+
7+
@font-face {
8+
font-family: 'Metropolis';
9+
src: url('/fonts/Metropolis/TrueType/Metropolis-ExtraLight.ttf') format('truetype');
10+
font-weight: 200;
11+
font-style: normal;
12+
}
13+
@font-face {
14+
font-family: 'Metropolis';
15+
src: url('/fonts/Metropolis/TrueType/Metropolis-Light.ttf') format('truetype');
16+
font-weight: 300;
17+
font-style: normal;
18+
}
19+
@font-face {
20+
font-family: 'Metropolis';
21+
src: url('/fonts/Metropolis/TrueType/Metropolis-Regular.ttf') format('truetype');
22+
font-weight: 400;
23+
font-style: normal;
24+
}
25+
@font-face {
26+
font-family: 'Metropolis';
27+
src: url('/fonts/Metropolis/TrueType/Metropolis-Medium.ttf') format('truetype');
28+
font-weight: 500;
29+
font-style: normal;
30+
}
31+
@font-face {
32+
font-family: 'Metropolis';
33+
src: url('/fonts/Metropolis/TrueType/Metropolis-SemiBold.ttf') format('truetype');
34+
font-weight: 600;
35+
font-style: normal;
36+
}
37+
@font-face {
38+
font-family: 'Metropolis';
39+
src: url('/fonts/Metropolis/TrueType/Metropolis-Bold.ttf') format('truetype');
40+
font-weight: 700;
41+
font-style: normal;
42+
}
43+
444

545
:root {
46+
--font-metropolis: 'Metropolis', sans-serif;
647
--background-light: #FFF;
748
--background-dark: #173A52;
849

@@ -22,6 +63,7 @@
2263
box-sizing: border-box;
2364
padding: 0;
2465
margin: 0;
66+
font-family: var(--font-metropolis);
2567
}
2668

2769
h1 {

app/(pages)/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
export default function Home() {
22
return (
33
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center p-8 pb-20 gap-16 sm:p-20">
4-
<p>Halo! Welcome to the HackDavis template repo :D</p>
4+
<p className="text-4xl font-bold font-metropolis">Halo! Welcome to the HackDavis template repo :D</p>
5+
<p className="text-4xl font-bold font-montserrat">Halo! Welcome to the HackDavis template repo :D</p>
6+
<p className="text-4xl font-bold font-inter">Halo! Welcome to the HackDavis template repo :D</p>
57
</div>
68
);
79
}
72.9 KB
Binary file not shown.
74.7 KB
Binary file not shown.
73.9 KB
Binary file not shown.
76.3 KB
Binary file not shown.
74.2 KB
Binary file not shown.
76.4 KB
Binary file not shown.
72.8 KB
Binary file not shown.
73.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)