Next.js Discord

Discord Forum

Next js(issue font)

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Next js (issue font)
I'm trying to change the font of the css using radix-ui which seems rare to me, and I followed the explanation of exactly how to change and I read and did exactly the same, and it doesn't change the font for me and I have no idea exactly why it is never mind or something like that
import '@radix-ui/themes/styles.css';
import './theme-config.css';

const inter = Inter({
  subsets: ['latin'],
  variable: '--font-inter'
});

// <body className={inter.variable}> <-- I did too

.radix-themes {
  --default-font-family: var(--font-inter);
}

3 Replies

American black bearOP
Still trying..
American black bearOP
Nvm
Fixed