https://github.com/nuxt-modules/google-fonts
Google Fonts module for NuxtJS
https://github.com/nuxt-modules/google-fonts
css fonts google-fonts nuxt nuxt-module
Last synced: 5 months ago
JSON representation
Google Fonts module for NuxtJS
- Host: GitHub
- URL: https://github.com/nuxt-modules/google-fonts
- Owner: nuxt-modules
- License: mit
- Created: 2020-07-09T16:38:35.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T14:13:16.000Z (5 months ago)
- Last Synced: 2025-05-12T15:32:17.739Z (5 months ago)
- Topics: css, fonts, google-fonts, nuxt, nuxt-module
- Language: TypeScript
- Homepage: https://google-fonts.nuxtjs.org
- Size: 2.3 MB
- Stars: 551
- Watchers: 6
- Forks: 41
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://google-fonts.nuxtjs.org)
# @nuxtjs/google-fonts
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]> [Google Fonts](https://developers.google.com/fonts) module for [Nuxt](https://nuxtjs.org)
- [✨ Release Notes](https://google-fonts.nuxtjs.org/releases)
- [📖 Documentation](https://google-fonts.nuxtjs.org)## Features
- Nuxt 3 and Nuxt Bridge support
- Specify fonts by name/variant
- Parse head links to Google Fonts
- Creates only an external link to Google Fonts
- [Support CSS API v2](https://developers.google.com/fonts/docs/css2)
- [Add dns-prefetch](https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch)
- [Add preconnect](https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch#Best_practices)
- [Add preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/preload)
- Download css/fonts to local project (No need external resources)
- Encode fonts to base64[📖 Read more](https://google-fonts.nuxtjs.org)
## Contributing
You can contribute to this module online with CodeSandBox:
[](https://codesandbox.io/s/github/nuxt-modules/google-fonts/?fontsize=14&hidenavigation=1&theme=dark)
Or locally:
1. Clone this repository
2. Install dependencies using `pnpm install`
3. Prepare development server using `pnpm dev:prepare`
4. Build module using `pnpm build`
5. Launch playground using `pnpm dev`## License
[MIT License](./LICENSE)
Copyright (c) Nuxt Modules
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/google-fonts/latest.svg
[npm-version-href]: https://npmjs.com/package/@nuxtjs/google-fonts
[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxtjs/google-fonts.svg
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/google-fonts
[github-actions-ci-src]: https://github.com/nuxt-modules/google-fonts/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/nuxt-modules/google-fonts/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-modules/google-fonts.svg
[codecov-href]: https://codecov.io/gh/nuxt-modules/google-fonts
[license-src]: https://img.shields.io/npm/l/@nuxtjs/google-fonts.svg
[license-href]: https://npmjs.com/package/@nuxtjs/google-fonts