Skip to content

Commit a039d3e

Browse files
committed
feat: set up inter font
1 parent 45df236 commit a039d3e

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/app/globals.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
}
4747

4848
@theme inline {
49-
--font-sans: var(--font-geist-sans);
50-
--font-mono: var(--font-geist-mono);
49+
--font-sans: var(--font-inter);
5150

5251
--color-background: hsl(var(--background));
5352
--color-foreground: hsl(var(--foreground));

src/app/layout.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
2+
import { Inter } from "next/font/google";
33
import { Toaster } from "sonner";
44
import { Navbar } from "@/components/navbar";
55
import "@/lib/api-client";
66
import "./globals.css";
77

8-
const geistSans = Geist({
9-
variable: "--font-geist-sans",
10-
subsets: ["latin"],
11-
});
12-
13-
const geistMono = Geist_Mono({
14-
variable: "--font-geist-mono",
8+
const inter = Inter({
9+
variable: "--font-inter",
1510
subsets: ["latin"],
1611
});
1712

@@ -27,9 +22,7 @@ export default function RootLayout({
2722
}>) {
2823
return (
2924
<html lang="en">
30-
<body
31-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
32-
>
25+
<body className={`${inter.variable} antialiased`}>
3326
<Navbar />
3427
{children}
3528
<Toaster

0 commit comments

Comments
 (0)