I'm trying to import a fontFace using vanilla-extract/css but I'm having trouble figuring out how to do it. The code provided in the documentation is as follows:
import { fontFace, style } from '@vanilla-extract/css';
const myFont = fontFace({
src: 'local("Comic Sans MS")'
});
export const text = style({
fontFamily: myFont
});
However, I want to use a different font called Jungle Fever Nf. How can I import this font by changing the source to
src:'local("Jungle Fever Nf")
? I have tried installing the font on my local machine, but it's not working. Maybe pointing the src to the downloaded font file or importing it in the CSS will solve the issue. I just don't know how to do this with vanilla-extract/css.