N
Nuxt6mo ago
IamSebastn

Nuxt/Font with Variable typeface

Does somebody know, how to use a local variable typeface with the Nuxt/Font module? Right now my config looks like this:
[…]
fonts: {
assets: {
prefix: 'public/fonts/',
},
families: [
{
name: 'Geist Sans',
provider: 'local',
weight: [100, 900],
preload: true,
display: 'swap',
fallbacks: ['Arial', 'Helvatica'],
},
],
},
[…]
fonts: {
assets: {
prefix: 'public/fonts/',
},
families: [
{
name: 'Geist Sans',
provider: 'local',
weight: [100, 900],
preload: true,
display: 'swap',
fallbacks: ['Arial', 'Helvatica'],
},
],
},
But any font-weight I‘m using within my css don’t work.. right now I‘m kinda frustrated haha. Hopefully somebody could give me an answer
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server