Skip to content

Error building tailwind.css when trying to install custom typeface font #3114

Answered by simonswiss
geistmate asked this question in Help
Discussion options

You must be logged in to vote

Hey!

Are you able to share your code project?

Where are you requiring the typeface-roboto package?

require("typeface-roboto");

I have just made a test project with NextJS and create-next-app. I added the font via the typeface-roboto npm package, required it in my _app.js layout (so it's available on all pages).

I extended the fontFamily object with a logo font, just like you mentioned, and it all works 👍

Here's the repo:

https://github.com/simonswiss/tailwind-roboto-font-example

If you can share your code setup, I'll take a look for you.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@geistmate
Comment options

Answer selected by geistmate
Comment options

You must be logged in to vote
1 reply
@simonswiss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants