Getting Started
Nuxt UI integrates with @nuxt/fonts to provide plug-and-play font optimization.

Usage

Nuxt UI automatically registers the @nuxt/fonts module for you, so there's no additional setup required. To use a font in your Nuxt UI application, you can simply declare it in your CSS:

<style>
@import "tailwindcss";
@import "@nuxt/ui";

@theme {
  --font-family-sans: 'Public Sans', sans-serif;
}
</style>

That's it! Nuxt Fonts will detect this and you should immediately see the web font loaded in your browser.

Read more about how @nuxt/fonts work behind the scenes to optimize your fonts.