Closed iamdevmarcos closed 8 months ago
FYI i noticed the same, but to get this font working i used the localFont
like
const geist = localFont({
src: [
{ path: "../public/fonts/Geist/Geist-Regular.otf", weight: "500" },
{ path: "../public/fonts/Geist/Geist-Medium.otf", weight: "600" },
{ path: "../public/fonts/Geist/Geist-SemiBold.otf", weight: "700" },
{ path: "../public/fonts/Geist/Geist-Bold.otf", weight: "800" },
{ path: "../public/fonts/Geist/Geist-Black.otf", weight: "900" },
],
display: "swap",
variable: "--font-geist-sans",
fallback: ["inter"],
});
Extend the theme
extend: {
fontFamily: {
sans: ['var(--font-geist-sans)'],
},
}
Then use it
<div className={cn(geist.variable, "font-sans")}>
Thank for you trying out the font and reporting this. Closing this issue as this is a dupe of #13. We will fix this!
Font Name (Geist Sans/Geist Mono):
Description of the Issue: A compilation error occurred after installing and importing the Geist font.
Steps to Reproduce:
npm i geist
<main className="GeistSans.className" />
Screenshots:
Error:
My _app.tsx file.
Environment (please complete the following information):
Additional Information