Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

Google Fonts module for NuxtJS

Awesome Lists containing this project

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)

- [✨  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:

[![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

[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