#@next/font with Tailwind without wrapper

7 messages · Page 1 of 1 (latest)

steel cedar
#

Is there a way to apply a @next/font with a variable without wrapping my entire application in a div for example? I'm using Tailwind, and I don't think there's another way to use @next/font with it. I'm using the /pages directory, so I don't have a root layout.

dense orbit
steel cedar
dense orbit
#

You can use stylesheets and tailwind together.

steel cedar
# dense orbit Sure, add a global CSS

The issue is that I don't know what to put in that stylesheet. @next/font's font name is dynamically generated, so it's not as simple as just telling it to use "Inter."