I’d like to fall back to the system-ui font if for whatever reason the primary font cannot be loaded from my web application.
Here is a snippet of my TailwindCSS config…
<code>fontFamily: {
'sans': ['Poppins', 'sans-serif'],
},
</code>
<code>fontFamily: {
'sans': ['Poppins', 'sans-serif'],
},
</code>
fontFamily: {
'sans': ['Poppins', 'sans-serif'],
},
Currently it falls back to sans-serif, but I would prefer if it would fall back to the user’s font choice set by their system.
New contributor
SkipTripAhead is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.