Next.js Discord

Discord Forum

Font class not working

Answered
Atlantic mackerel posted this in #help-forum
Open in Discord
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',
})
View full answer

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