Skip to content

How to Import custom font families from a local or external source without postcss #473

Answered by ben-rogerson
lanelps asked this question in Q&A
Discussion options

You must be logged in to vote

I've tried importing the font-family in the GlobalStyles component and extending a fontFamily class in my tailwind.config.js but this doesn't seem to work either.

This sounds about right, twin has a fonts doc that shows how to setup the first half. You'll then need to import the global styles into a layout component you're using throughout the site.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lanelps
Comment options

@ben-rogerson
Comment options

Answer selected by lanelps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants