# @nuxtjs/google-fonts

> Google Fonts module for Nuxt

Latest version **3.2.0** (published 2024-03-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nuxtjs/google-fonts
pnpm add @nuxtjs/google-fonts
yarn add @nuxtjs/google-fonts
bun add @nuxtjs/google-fonts
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2024-03-14 |
| First published | 2020-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 583 |
| Maintainers | antfu, danielroe, clarkdo, pi0, atinux, alexchopin, ricardogobbosouza |

## Links

- npm: https://www.npmjs.com/package/@nuxtjs/google-fonts
- Repository: https://github.com/nuxt-modules/google-fonts
- Homepage: https://github.com/nuxt-modules/google-fonts#readme
- Issues: https://github.com/nuxt-modules/google-fonts/issues
- npm.io page: https://npm.io/package/@nuxtjs/google-fonts

## Dependencies (3)

- [pathe](https://npm.io/package/pathe.md) ^1.1.2
- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^3.10.3
- [google-fonts-helper](https://npm.io/package/google-fonts-helper.md) ^3.5.0

## Recent versions

- 3.2.0 (latest) — 2024-03-14
- 3.0.0-1 (prerelease) — 2022-10-25
- 3.1.3 — 2023-12-13
- 3.1.2 — 2023-12-13
- 3.1.1 — 2023-12-08
- 3.1.0 — 2023-11-23
- 3.0.2 — 2023-07-21
- 3.0.1 — 2023-05-18
- 3.0.0 — 2023-03-10
- 3.0.0-0 — 2022-07-22
- 2.0.0 — 2022-06-09
- 1.3.0 — 2021-03-08
- 1.2.0 — 2020-11-10
- 1.1.6 — 2020-11-10
- 1.1.5 — 2020-11-09
- … 10 more at https://npm.io/package/@nuxtjs/google-fonts/versions

## README

[![@nuxtjs/google-fonts](https://google-fonts.nuxtjs.org/social-card.png)](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)

- [✨ &nbsp;Release Notes](https://google-fonts.nuxtjs.org/releases)
- [📖 &nbsp;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

[📖 &nbsp;Read more](https://google-fonts.nuxtjs.org)

## Contributing

You can contribute to this module online with CodeSandBox:

[![Edit @nuxtjs/google-fonts](https://codesandbox.io/static/img/play-codesandbox.svg)](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

<!-- Badges -->

[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

---
_Source: https://npm.io/package/@nuxtjs/google-fonts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
