Skip to content

Commit 108a79a

Browse files
committed
Playground: Use Geist fonts (#8133)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on integrating the `geist` font into the `playground-web` application, updating the `tailwind` configuration, and replacing existing font imports with `GeistSans` and `GeistMono`. ### Detailed summary - Added `geist` dependency in `package.json`. - Updated `tailwind.config.ts` to extend the theme with `geist` font families. - Replaced `Fira_Code` and `Inter` font imports in `layout.tsx` with `GeistMono` and `GeistSans`. - Updated the body class to use `GeistSans` and `GeistMono` variables. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Style - Updated global typography to Geist Sans and Geist Mono for a cleaner, consistent look. - Replaced previous Inter and Fira Code fonts with new Geist font variables in the app layout. - Configured Tailwind to use Geist-based sans and mono font families across the app. - Chores - Added Geist font package as a new dependency. - Notes - No functional changes; visual update limited to typography. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 51390f3 commit 108a79a

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)