Vue Nuxt
Tips & Tricks

A collection of Vue, Nuxt and Vite tips, tricks and good practices.

In Nuxt, you can reduce CLS by using local font fallbacks thanks to the awesome Fontaine library.

install the package

npm install -D @nuxtjs/fontaine

and set the module inside nuxt.config

export default defineNuxtConfig({
  modules: ['@nuxtjs/fontaine'],
})

And that's it!