Font class not working
Answered
Atlantic mackerel posted this in #help-forum
Original message was deleted.
Answered by Rafael Almeida
because you didn't define it as a CSS variable, you need to do it explicitly with the
variable property:const inter = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-inter',
})1 Reply
Original message was deleted
because you didn't define it as a CSS variable, you need to do it explicitly with the
variable property:const inter = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-inter',
})Answer