Closed psiaux closed 5 months ago
Can you provide a repo or a codepen? It's very helpful to have the exact versions of everything when debugging these issues.
I was making a repo for you, but I think I got it working. There were 2 taildwind config files, one .ts and one .js. I don't know why this .js was created. I deleted it and it started working.
Font Name (Geist Sans/Geist Mono):
Description of the Issue: Geist font is not being applied to the elements. The inspection inside browser's debug tools shows
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
.Steps to Reproduce:
import { GeistSans } from 'geist/font/sans'
<html className={``${GeistSans.variable} ${GeistMono.variable} font-sans}``>
module.exports = { theme: { extend: { fontFamily: { sans: ['var(--font-geist-sans)'] } } } }
Expected Behavior: It should appear something like
font-family: var(--font-geist-sans);
on the inspection.Environment (please complete the following information):