Plug-and-play custom web font optimization and configuration for Nuxt apps.
- β¨ zero-configuration required
- π‘ built-in providers (
google,bunny,fontshare,fontsource,adobe,local- more welcome!) - πͺ custom providers for full control
- β¬ local download support (until
nuxt/assetslands) - β‘οΈ automatic font metric optimisation powered by fontaine and capsize
- π₯ build/dev time font caching powered by unstorage
π See Nuxt Fonts RFC for full details and discussion.
Install @nuxt/fonts dependency to your project:
npx nuxt module add fonts- Clone this repository
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run
pnpm dev:prepareto generate type stubs. - Use
pnpm devto start the basic playground in development mode.
Published under the MIT License
