Skip to content

Commit 053502f

Browse files
committed
Playground: Use Geist fonts
1 parent 51390f3 commit 053502f

File tree

4 files changed

+27
-24
lines changed

4 files changed

+27
-24
lines changed

apps/playground-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"clsx": "^2.1.1",
2727
"date-fns": "4.1.0",
2828
"fetch-event-stream": "0.1.5",
29+
"geist": "^1.5.1",
2930
"lucide-react": "0.525.0",
3031
"next": "15.3.5",
3132
"next-themes": "^0.4.6",

apps/playground-web/src/app/layout.tsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
import type { Metadata } from "next";
2-
import { Fira_Code, Inter } from "next/font/google";
32
import { metadataBase } from "@/lib/constants";
43
import { cn } from "@/lib/utils";
54
import { AppSidebarLayout } from "./AppSidebar";
65
import { Providers } from "./providers";
76
import "@workspace/ui/global.css";
7+
import { GeistMono } from "geist/font/mono";
8+
import { GeistSans } from "geist/font/sans";
89
import { ThemeProvider } from "next-themes";
910
import NextTopLoader from "nextjs-toploader";
1011
import { Toaster } from "sonner";
1112

12-
const sansFont = Inter({
13-
subsets: ["latin"],
14-
variable: "--font-sans",
15-
weight: "variable",
16-
});
17-
18-
const monoFont = Fira_Code({
19-
subsets: ["latin"],
20-
variable: "--font-mono",
21-
weight: "variable",
22-
});
23-
2413
export const metadata: Metadata = {
2514
description: "thirdweb playground",
2615
metadataBase,
@@ -37,8 +26,8 @@ export default async function RootLayout({
3726
<body
3827
className={cn(
3928
"bg-background font-sans antialiased ",
40-
sansFont.variable,
41-
monoFont.variable,
29+
GeistSans.variable,
30+
GeistMono.variable,
4231
)}
4332
>
4433
<ThemeProvider

apps/playground-web/tailwind.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ import type { Config } from "tailwindcss";
33

44
const config: Config = {
55
...tailwindConfig,
6+
theme: {
7+
...tailwindConfig.theme,
8+
extend: {
9+
...tailwindConfig.theme?.extend,
10+
fontFamily: {
11+
sans: ["var(--font-geist-sans)"],
12+
mono: ["var(--font-geist-mono)"],
13+
},
14+
},
15+
},
616
content: [
717
"./src/**/*.{ts,tsx}",
818
// add contents of ui package

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)