[Vuejs]-How to setup Vuetify 3 for Nuxt 3?

0👍

I think the missing font (Roboto) is typically loaded in using a webfont loader lib but in Nuxt I think you can just add the font in nuxt.config.ts

export default defineNuxtConfig({
  app: {
    head: {
      link: [
        {
          rel: 'preconnect',
          href: 'https://fonts.googleapis.com'
        },
        {
          rel: 'preconnect',
          href: 'https://fonts.gstatic.com',
          crossorigin: ''
        },
        {
          rel: 'stylesheet',
          href: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'
        },
      ],
    }
  },
})

Leave a comment