Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

feat: use geist font

Dillion Vermae8d63c771c77
diff --git a/app/layout.tsx b/app/layout.tsx
index 2eec2fff..c304f1a2 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -28,8 +28,8 @@ export default function RootLayout({
<head />
<body
className={cn(
- "relative flex min-h-screen w-full flex-col justify-center overflow-x-hidden scroll-smooth bg-background antialiased",
- fontSans.className,
+ "relative flex min-h-screen w-full flex-col justify-center overflow-x-hidden scroll-smooth bg-background font-sans antialiased",
+ fontSans.variable,
)}
>
<PHProvider>
diff --git a/lib/fonts.ts b/lib/fonts.ts
index 5b9dae16..b04f537e 100644
--- a/lib/fonts.ts
+++ b/lib/fonts.ts
@@ -1,12 +1,7 @@
-import {
- JetBrains_Mono as FontMono,
- Inter as FontSans,
-} from "next/font/google";
+import { GeistSans } from "geist/font/sans";
+import { JetBrains_Mono as FontMono } from "next/font/google";
-export const fontSans = FontSans({
- subsets: ["latin"],
- variable: "--font-sans",
-});
+export const fontSans = GeistSans;
export const fontMono = FontMono({
subsets: ["latin"],
diff --git a/package.json b/package.json
index 706aa8ab..4023f820 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,6 @@
},
"dependencies": {
"@auth/prisma-adapter": "^1.0.0",
- "@fontsource/inter": "^5.0.15",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.1.3",
"@hookform/resolvers": "^3.1.1",
@@ -77,7 +76,7 @@
"eslint": "8.55.0",
"eslint-config-next": "14.1.0",
"framer-motion": "^10.12.16",
- "geist": "^1.1.0",
+ "geist": "^1.2.2",
"gray-matter": "^4.0.3",
"lucide-react": "^0.274.0",
"next": "14.1.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 778770be..09fcbee6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -11,9 +11,6 @@ importers:
'@auth/prisma-adapter':
specifier: ^1.0.0
- '@fontsource/inter':
- specifier: ^5.0.15
- version: 5.0.16
'@headlessui/react':
specifier: ^1.7.17
@@ -174,7 +171,7 @@ importers:
specifier: ^10.12.16
geist:
- specifier: ^1.1.0
+ specifier: ^1.2.2
gray-matter:
specifier: ^4.0.3
@@ -1453,9 +1450,6 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==}
- '@fontsource/[email protected]':
- resolution: {integrity: sha512-qF0aH5UiZvCmneX5orJbVRoc2VTyLTV3X/7laMp03Qt28L+B9tFlZODOGUL64wDWc69YVdi1LeJB0cIgd51lvw==}
-
resolution: {integrity: sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ==}
engines: {node: ^8.13.0 || >=10.10.0}
@@ -3292,7 +3286,7 @@ packages:
engines: {node: '>=10.16.0'}
- resolution: {integrity: sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==}
+ resolution: {integrity: sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=}
engines: {node: '>= 0.8'}
@@ -3794,7 +3788,7 @@ packages:
hasBin: true
- resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
+ resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=}
resolution: {integrity: sha512-3avY1B+vUzNxEgkBDpKOP8WarvUAEwpRaiCL0He5OKWEFxzaOFiq4WoZEZe7qh0ReS7DiWoHMnYoQCKxNZNzSg==}
@@ -4173,7 +4167,7 @@ packages:
optional: true
- resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==}
+ resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=}
engines: {node: '>= 0.6'}
@@ -6403,6 +6397,7 @@ packages:
resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==}
+ deprecated: Rimraf versions prior to v4 are no longer supported
hasBin: true
@@ -7078,7 +7073,7 @@ packages:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
- resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==}
+ resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=}
engines: {node: '>= 0.4.0'}
@@ -8479,8 +8474,6 @@ snapshots:
'@floating-ui/[email protected]': {}
- '@fontsource/[email protected]': {}
-
dependencies:
'@grpc/proto-loader': 0.7.10
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 2ef66c3e..36f73f2f 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,3 +1,4 @@
+const { fontFamily } = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
/** @type {import('tailwindcss').Config} */
@@ -19,6 +20,9 @@ module.exports = {
},
},
extend: {
+ fontFamily: {
+ sans: ["var(--font-geist-sans)", ...fontFamily.sans],
+ },
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",