Skip to content

Commit

Permalink
feat: font mono changed to geist mono (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsarghyadas authored Jan 2, 2025
1 parent efccf08 commit ce6bcc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fontSans } from "@/lib/fonts";
import { fontMono, fontSans } from "@/lib/fonts";
import { absoluteUrl, cn, constructMetadata } from "@/lib/utils";
import { Toaster } from "@/components/ui/sonner";
import { TooltipProvider } from "@/components/ui/tooltip";
Expand Down Expand Up @@ -39,6 +39,7 @@ export default function RootLayout({
className={cn(
"relative flex min-h-screen w-full flex-col justify-center overflow-x-hidden scroll-smooth bg-background font-sans antialiased",
fontSans.variable,
fontMono.variable,
)}
>
<PHProvider>
Expand Down
7 changes: 2 additions & 5 deletions lib/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { JetBrains_Mono as FontMono } from "next/font/google";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";

export const fontSans = GeistSans;

export const fontMono = FontMono({
subsets: ["latin"],
variable: "--font-mono",
});
export const fontMono = GeistMono;
1 change: 1 addition & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
extend: {
fontFamily: {
sans: ["var(--font-geist-sans)", ...fontFamily.sans],
mono: ["var(--font-geist-mono)", ...fontFamily.mono],
},
colors: {
border: "hsl(var(--border))",
Expand Down

0 comments on commit ce6bcc7

Please sign in to comment.