Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuxt/fonts
Plug-and-play web font optimization and configuration for Nuxt apps.
https://github.com/nuxt/fonts
cls css fonts nuxt nuxt-module performance web-vitals
Last synced: about 1 month ago
JSON representation
Plug-and-play web font optimization and configuration for Nuxt apps.
- Host: GitHub
- URL: https://github.com/nuxt/fonts
- Owner: nuxt
- License: mit
- Created: 2024-02-19T19:12:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-01T09:28:27.000Z (7 months ago)
- Last Synced: 2024-05-01T09:41:43.430Z (7 months ago)
- Topics: cls, css, fonts, nuxt, nuxt-module, performance, web-vitals
- Language: TypeScript
- Homepage: https://nuxt.com
- Size: 743 KB
- Stars: 358
- Watchers: 7
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![nuxt-fonts](https://github.com/nuxt/fonts/assets/904724/75121716-05fd-459b-9223-42eb9dc8646f)
# Nuxt Fonts
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
[![Volta][volta-src]][volta-href]Plug-and-play custom web font optimization and configuration for Nuxt apps.
- [📖 Read Documentation](https://fonts.nuxt.com)
- [👾 Playground](https://stackblitz.com/github/nuxt/fonts/tree/main/playground)## Features
- ✨ zero-configuration required
- 🔡 built-in providers (`google`, `bunny`, `fontshare`, `fontsource`, `adobe`, `local` - more welcome!)
- 💪 custom providers for full control
- ⏬ local download support (until `nuxt/assets` lands)
- ⚡️ automatic font metric optimisation powered by [**fontaine**](https://github.com/unjs/fontaine) and [**capsize**](https://github.com/seek-oss/capsize)
- 🔥 build/dev time font caching powered by [**unstorage**](https://github.com/unjs/unstorage)👉 See [Nuxt Fonts RFC](https://github.com/nuxt/nuxt/discussions/22014) for full details and discussion.
### Contributing
- Clone this repository
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run `pnpm dev:prepare` to generate type stubs.
- Use `pnpm dev` to start [playground](./playground) in development mode.## 📑 License
Published under the [MIT License](./LICENSE)
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/fonts/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npm.chart.dev/@nuxt/fonts[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/fonts.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npm.chart.dev/@nuxt/fonts/v/latest[license-src]: https://img.shields.io/npm/l/@nuxt/fonts.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@nuxt/fonts/v/latest[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com[volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg
[volta-href]: https://volta.net/nuxt/fonts?utm_source=nuxt_fonts_readme