Replies: 3 comments 5 replies
-
you can also define a variable within the font itself, like so
And use it in css: font-family: var(--font-ibm-plex-sans); Maybe this works? |
Beta Was this translation helpful? Give feedback.
-
@dextermb if you're still trying to figure this out -- see if this works for you: #41872 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
const IBMPlex = IBM_Plex_Sans({ i hve a problem with the variable: Type 'string' is not assignable to type 'undefined'.ts(2322) |
Beta Was this translation helpful? Give feedback.
-
Hey gang,
I'm looking at moving the loading of the fonts we use to
@next/fonts
. I'm attempting to load:IBM_Plex_Sans
andIBM_Plex_Mono
within_app.tsx
but it seems like only the first font actually loads.Here's my set up (to work with Tailwind):
When I then attempt to wrap
Component
inmain
with the classNamesfont-sans
orfont-mono
I see that onlyIBM_Plex_Sans
is loaded, but when commenting it out I can then see thatIBM_Plex_Mono
is loaded.Any ideas how I can load both fonts easily?
Beta Was this translation helpful? Give feedback.
All reactions