Skip to content

Commit

Permalink
docs: mention tailwind/uno support and deep scan of directories
Browse files Browse the repository at this point in the history
resolves #12
  • Loading branch information
danielroe committed Feb 24, 2024
1 parent fa04aca commit a27900d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ div {

That's it! Nuxt Fonts will detect this and you should immediately see the web font loaded in your browser. [Read more about how it works](#how-it-works).

> [!TIP]
> Even if you're using a preprocessor like TailwindCSS or UnoCSS, Nuxt Fonts should be able to detect and optimize your fonts with no configuration.
## Configuration

You do not need to configure Nuxt Fonts but you can do so for finer-grained control.
Expand Down Expand Up @@ -160,7 +163,7 @@ We ship with four built-in providers.

### `local`

The local provider scans your `public/` directories (including of your layers) for font files (supporting ttf, woff, woff2, eot or otf extensions).
The local provider deeply scans your `public/` directories (including of your layers) for font files (supporting ttf, woff, woff2, eot or otf extensions).

Then, when you use a `font-family` in your CSS, we check to see whether it matches one of these files. We also expect font weight, font style and subset to be in the file name, unless they are 'default' values (`400` weight, `normal` style and `latin` subset).

Expand Down

0 comments on commit a27900d

Please sign in to comment.