Skip to content

Commit

Permalink
Added jakarta sans into font
Browse files Browse the repository at this point in the history
  • Loading branch information
winzamark123 committed Nov 18, 2024
1 parent 4b66882 commit ef82204
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions app/(pages)/_globals/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Inter, Montserrat } from 'next/font/google';
import { Inter, Montserrat, Plus_Jakarta_Sans} from 'next/font/google';

const inter = Inter({
subsets: ['latin'],
Expand All @@ -10,7 +10,12 @@ const montserrat = Montserrat({
variable: '--font-montserrat',
});

const fonts = [inter, montserrat];
const jakarta = Plus_Jakarta_Sans({
subsets: ['latin'],
variable: '--font-jakarta',
});

const fonts = [inter, montserrat, jakarta];

const font_variables = fonts.map((font) => font.variable);
const font_string = font_variables.join(' ');
Expand Down
3 changes: 3 additions & 0 deletions app/(pages)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default function Home() {
<p className="text-4xl font-bold font-inter">
Halo! Welcome to the HackDavis template repo :D
</p>
<p className="text-4xl font-bold font-jakarta">
Halo! Welcome to the HackDavis template repo :D
</p>

{/* Sections for Testing */}
<div
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default {
fontFamily: {
'metropolis': "var(--font-metropolis)",
'montserrat': "var(--font-montserrat)",
'inter': "var(--font-inter)"
'inter': "var(--font-inter)",
'jakarta': "var(--font-jakarta)"
}
},
},
Expand Down

0 comments on commit ef82204

Please sign in to comment.