Skip to content

Commit

Permalink
chore: revert to inter from geist
Browse files Browse the repository at this point in the history
t Please enter the commit message for your changes. Lines starting
  • Loading branch information
arshad-yaseen committed Nov 7, 2023
1 parent 6ea9a05 commit 23c1454
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SiteHero from "@/components/site-hero"
export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center">
<div className="jumbo absolute -inset-[10px] opacity-[12%]"></div>
<div className="jumbo absolute -inset-[10px] opacity-[8%]"></div>
<SiteHero />
<SiteFeatures />
<OpenSource />
Expand Down
5 changes: 2 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import "@/styles/globals.css"
import "@/styles/components.css"
import { Metadata } from "next"
import { Analytics } from "@vercel/analytics/react"
import { GeistSans } from "geist/font"
import { Provider as TextBalancer } from "react-wrap-balancer"
import { Toaster } from "sonner"

import { fontHeading, fontMono } from "@/lib/fonts"
import { fontHeading, fontMono, fontSans } from "@/lib/fonts"
import { ThemeProvider } from "@/components/theme-provider"

export const metadata: Metadata = {
Expand Down Expand Up @@ -74,7 +73,7 @@ export default async function RootLayout({
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
GeistSans.variable,
fontSans.variable,
fontHeading.variable,
fontMono.variable
)}
Expand Down
7 changes: 6 additions & 1 deletion lib/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JetBrains_Mono } from "next/font/google"
import { JetBrains_Mono, Inter } from "next/font/google"
import localFont from "next/font/local"

export const fontMono = JetBrains_Mono({
Expand All @@ -10,3 +10,8 @@ export const fontHeading = localFont({
src: "../assets/fonts/CalSans-SemiBold.woff2",
variable: "--font-heading",
})

export const fontSans = Inter({
subsets: ["latin"],
variable: "--font-sans",
})
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = {
fullscreen: "var(--shadow-fullscreen)",
},
fontFamily: {
sans: ["var(--font-geist-sans)"],
sans: ["var(--font-sans)", ...fontFamily.sans],
heading: ["var(--font-heading)", ...fontFamily.sans],
mono: ["var(--font-mono)", ...fontFamily.mono],
},
Expand Down

1 comment on commit 23c1454

@vercel
Copy link

@vercel vercel bot commented on 23c1454 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.