-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,204 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Providers | ||
- [ ] bunny | ||
- [ ] fontshare | ||
- [ ] font-source? | ||
- [ ] custom | ||
- [ ] (public) | ||
|
||
## Features | ||
|
||
- zero-configuration required | ||
- automatic font metric optimisation powered by https://github.com/unjs/fontaine | ||
- built-in providers (`google`, `bunny`, `local` and more) | ||
- custom providers for full control |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
export default defineBuildConfig({ | ||
externals: ['css-tree', '#types'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:root { | ||
font-family: 'Roboto', sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
export default defineNuxtConfig({ | ||
devtools: { enabled: true }, | ||
modules: ['@nuxt/fonts'], | ||
fonts: {}, | ||
modules: [ | ||
'@nuxt/fonts', | ||
// '@nuxtjs/tailwindcss' | ||
], | ||
fonts: { | ||
providers: { | ||
google: false | ||
} | ||
// provider: 'google', // sets default provider | ||
// families: [ | ||
// { | ||
// name: 'Roboto', // the 'canonical' name of the font used to look it up in a provider database | ||
// as: 'custom-roboto-family', // allow registering a font family with a different name | ||
// provider: 'local', // you can override the provider on a per-family basis | ||
// // provider specific options can be provided | ||
// src: '~/public/roboto.woff2', // you can specify a source within your project | ||
// // specific configuration will be used to generate `@font-face` definitions | ||
// subsets: ['latin', 'greek'], | ||
// display: 'swap', // or 'block'7 | ||
// weight: ['400', '700'], | ||
// style: ['normal', 'italic'], | ||
// // and produce CSS overrides to reduce layout shift (using fontaine) | ||
// fallbacks: ['Arial'], | ||
// } | ||
// ] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.