You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the Issue:
Should GeistMono variable include fallback fonts (ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace) when GeistSans doesn't? When using with tailwindcss as told in the next/font docs it'll also add fallback fonts and there will be duplicates.
This is intended. Notice the __GeistMono_Fallback_<hash> is missing? It is because adjustFontFallback is being explicitly disabled, as the only possible values are either Arial or Times New Roman, which both act poorly as the fallback font for a monospace font.
With this in mind, that means Geist Mono has no fallback font. That's where the ui-monospace... comes in, which is a common monospace font fallback stack.
I see. Before next/font docs said to put the variable and spread the default fonts after when using with tailwind but seems like they don't now. Seems like it'll be fine to not do that with GeistMono but __GeistSans_Fallback_<hash> seems to be just Arial even though it still has fallback that just never makes it into the end css:
Font Name (Geist Sans/Geist Mono):
Description of the Issue:
Should GeistMono variable include fallback fonts (
ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace
) when GeistSans doesn't? When using with tailwindcss as told in the next/font docs it'll also add fallback fonts and there will be duplicates.Steps to Reproduce:
In
layout.tsx
:In
tailwind.config.ts
:Expected Behavior:
No
ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace
in the GeistMono variable.Screenshots:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: