GitHub - nuxt/fonts: Plug-and-play web font optimization and configuration for Nuxt apps.

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

/ fonts Public

Plug-and-play web font optimization and configuration for Nuxt apps.

License

MIT license

583 stars 30 forks Branches Tags Activity

Notifications You must be signed in to change notification settings

nuxt-fonts

Nuxt Fonts

npm version npm downloads License Nuxt Volta nuxt.care health

Plug-and-play custom web font optimization and configuration for Nuxt apps.

Features

  • ✨ zero-configuration required
  • 🔡 built-in providers (google, bunny, fontshare, fontsource, adobe, npm, local - more welcome!)
  • 💪 custom providers for full control
  • ⏬ local download support (until nuxt/assets lands)
  • ⚡️ 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.

Installation

Install @nuxt/fonts dependency to your project:

npx nuxt module add fonts

Contributing

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run pnpm dev:prepare to generate type stubs.
  • Use pnpm dev to start the basic playground in development mode.

📑 License

Published under the MIT License