Skip to content

Commit 0c4809b

Browse files
feat: switch to geist font package with pixel fonts
Co-Authored-By: martyy-code <nesalia.inc@gmail.com>
1 parent 55e76b9 commit 0c4809b

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"cmdk": "^1.1.1",
1616
"date-fns": "^4.1.0",
1717
"embla-carousel-react": "^8.6.0",
18+
"geist": "^1.7.0",
1819
"input-otp": "^1.4.2",
1920
"lucide-react": "^0.577.0",
2021
"next": "16.2.0",

src/app/layout.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
import { Geist, Geist_Mono } from 'next/font/google';
1+
import { GeistSans } from 'geist/font/sans';
2+
import { GeistMono } from 'geist/font/mono';
3+
import { GeistPixelSquare } from 'geist/font/pixel';
24
import { Package, ArrowRight, Command } from 'lucide-react';
35
import Link from 'next/link';
46
import { Button } from '@/components/ui/button';
57
import { ThemeProvider } from '@/components/theme-provider';
68
import './globals.css';
79

8-
const geistSans = Geist({
9-
variable: '--font-geist-sans',
10-
subsets: ['latin'],
11-
});
12-
13-
const geistMono = Geist_Mono({
14-
variable: '--font-geist-mono',
15-
subsets: ['latin'],
16-
});
17-
1810
export default function RootLayout({ children }: { children: React.ReactNode }) {
1911
return (
20-
<html lang="en" suppressHydrationWarning className={`${geistSans.variable} ${geistMono.variable} dark`} style={{ colorScheme: 'dark' }}>
12+
<html lang="en" suppressHydrationWarning className={`${GeistSans.variable} ${GeistMono.variable} ${GeistPixelSquare.variable} dark`} style={{ colorScheme: 'dark' }}>
2113
<body className="bg-background text-foreground font-sans antialiased min-h-screen">
2214
<ThemeProvider
2315
attribute="class"

0 commit comments

Comments
 (0)