Skip to content

Commit

Permalink
feat: swap to general sans font
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartlewis committed Feb 13, 2025
1 parent 169deee commit 14ad8f3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Binary file added apps/app/public/fonts/GeneralSans-Variable.ttf
Binary file not shown.
Binary file not shown.
9 changes: 8 additions & 1 deletion apps/app/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";
import type { Metadata } from "next";
import { SessionProvider } from "next-auth/react";
import localFont from "next/font/local";
import { NuqsAdapter } from "nuqs/adapters/next/app";
import { Toaster } from "sonner";
import { extractRouterConfig } from "uploadthing/server";
Expand Down Expand Up @@ -67,6 +68,12 @@ export const viewport = {
],
};

const font = localFont({
src: "/../../../public/fonts/GeneralSans-Variable.ttf",
display: "swap",
variable: "--font-general-sans",
});

export const preferredRegion = ["auto"];
export const maxDuration = 5;

Expand All @@ -91,7 +98,7 @@ export default async function Layout(props: {
<html lang={locale} suppressHydrationWarning>
<body
className={cn(
`${GeistSans.variable} ${GeistMono.variable}`,
`${GeistMono.variable} ${font.variable}`,
"whitespace-pre-line overscroll-none antialiased",
)}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default withUt({
extend: {
colors: {
fontFamily: {
sans: "var(--font-geist-sans)",
sans: "var(--font-general-sans)",
mono: "var(--font-geist-mono)",
},
border: "hsl(var(--border))",
Expand Down

0 comments on commit 14ad8f3

Please sign in to comment.