Skip to content

Font Icons

This module supports the following font icons libraries:

By default, the module uses the mdi font icon library. You can change this by setting the defaultSet option to:

To configure a font icon, specify the default set:

ts
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
  modules: ['vuetify-nuxt-module'],
  vuetify: {
    vuetifyOptions: {
      icons: {
        defaultSet: 'mdi'
      }
    }
  }
})

The module uses the CDN version of the font icon by default. If you prefer to use the local version, install the corresponding dependency; the module will automatically detect it and switch to registering the font using the local version.

You can use the cdn option to change the CDN used for each font icon library:

To change the CDN for a font icon library, specify the cdn option:

ts
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
  modules: ['vuetify-nuxt-module'],
  vuetify: {
    vuetifyOptions: {
      icons: {
        defaultSet: 'mdi',
        sets: [{
          name: 'mdi',
          cdn: 'https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css'
        }]
      }
    }
  }
})

Released under the MIT License.