File tree Expand file tree Collapse file tree 4 files changed +27
-24
lines changed Expand file tree Collapse file tree 4 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11import type { Metadata } from "next" ;
2- import { Fira_Code , Inter } from "next/font/google" ;
32import { metadataBase } from "@/lib/constants" ;
43import { cn } from "@/lib/utils" ;
54import { AppSidebarLayout } from "./AppSidebar" ;
65import { Providers } from "./providers" ;
76import "@workspace/ui/global.css" ;
7+ import { GeistMono } from "geist/font/mono" ;
8+ import { GeistSans } from "geist/font/sans" ;
89import { ThemeProvider } from "next-themes" ;
910import NextTopLoader from "nextjs-toploader" ;
1011import { 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-
2413export 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
Original file line number Diff line number Diff line change @@ -3,6 +3,16 @@ import type { Config } from "tailwindcss";
33
44const 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
You can’t perform that action at this time.
0 commit comments