#Best way to style all `h1` tags with a custom font?

3 messages · Page 1 of 1 (latest)

rugged token
#

I want to define all the default styles for the h[n] tags inside a global typography.css file, where I will be using a different font for header elements than the body.

What is the best way to go about this? I have tried using the next/font package but not sure how I can access a font I load via that into my css file. Am I better off going for the traditional @font-face approach?

quartz frost
#

apply a variable property when importing from next/font