mykhaylotymofyeyev
nuxt/fonts + tailwind 4 + google fonts Error: Unknown font format
hello, i am trying to use a google font in my project.
the font is declared using the new tailwind config in css token
this is wha the nuxt/fonts documentation say about how to setup it in this case
fonts: {
provider: 'google',
experimental: {
processCSSVariables: true,
},
},
without it I get only the default browser font rendered, but whit it i get the following error:
ERROR Pre-transform error: Unknown font format
Plugin: nuxt:fonts:font-family-injection File: /Users/..../assets/css/main.css
Plugin: nuxt:fonts:font-family-injection File: /Users/..../assets/css/main.css
5 replies