From 2ee8f85d0db486888c50c56a0a2ac3eb59297b67 Mon Sep 17 00:00:00 2001 From: muddlebee Date: Mon, 18 Nov 2024 12:41:48 +0530 Subject: [PATCH] fix font, remove old --- src/app/layout.tsx | 20 +++++++------------- tailwind.config.ts | 7 +++++-- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6623221..bcb47de 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,18 +1,12 @@ import type { Metadata } from "next"; -import localFont from "next/font/local"; import "./globals.css"; +import { Inter } from 'next/font/google' -const geistSans = localFont({ - src: "./fonts/GeistVF.woff", - variable: "--font-geist-sans", - weight: "100 900", -}); -const geistMono = localFont({ - src: "./fonts/GeistMonoVF.woff", - variable: "--font-geist-mono", - weight: "100 900", -}); +export const inter = Inter({ + subsets: ['latin'], + display: 'swap', +}) export const metadata: Metadata = { title: "Swush", description: "DEX Aggregator on Polkadot Asset Hub", @@ -26,9 +20,9 @@ export default function RootLayout({ return ( - {children} + {children} ); diff --git a/tailwind.config.ts b/tailwind.config.ts index 864f33a..349444b 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -17,8 +17,11 @@ const config: Config = { lg: 'var(--radius)', md: 'calc(var(--radius) - 2px)', sm: 'calc(var(--radius) - 4px)' - } - } + }, + fontFamily: { + sans: ['var(--font-inter)'], + }, + }, }, plugins: [require("tailwindcss-animate")], };