Plug-and-play web font optimization and configuration for Nuxt apps.
Nuxt Fonts is a tool for custom web font optimization and configuration for Nuxt apps. It offers zero-configuration setup, support for various font providers, custom font provider options, automatic font metric optimization, and build/dev time font caching.
To install Nuxt Fonts, follow these steps:
Add Nuxt Fonts to your project:
npm install nuxt-fonts
Add .data directory to your .gitignore file:
echo ".data" >> .gitignore
Add a font-family declaration in your CSS file:
body {
font-family: 'Roboto', sans-serif;
}
Nuxt Fonts simplifies the process of optimizing and configuring web fonts for Nuxt applications. With features like automatic font metric optimization, built-in and custom font providers, and build-time font caching, it offers a convenient solution for managing web fonts efficiently in Nuxt projects.