🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

nuxt-fonts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

nuxt-fonts

Nuxt Fonts Module

unpublished
latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

nuxt-fonts

npm version npm downloads Github Actions CI Codecov License

Fonts module for Nuxt

đź“– Release Notes

Setup

  • Add nuxt-fonts dependency to your project

With pnpm

pnpm add nuxt-fonts

Or, with yarn

yarn add nuxt-fonts

Or, with npm

npm install nuxt-fonts
  • Add nuxt-fonts to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    // Simple usage
    "nuxt-fonts",

    // With options
    [
      "nuxt-fonts",
      {
        /* module options */
      },
    ],
  ],
});

Using top level options

export default defineNuxtConfig({
  modules: ["nuxt-fonts"],
  fonts: {
    /* module options */
  },
});

Options

inline

  • Type: Boolean
  • Default: nuxt.options.ssr

provider

  • Type: google|local|bunny
  • Default: 'google'

families

  • Type: Array
export default {
  fonts: {
    families: [
      name: string
      as?: string
      provider?: Providers
      subsets?: string | string[]
      display?: FontDisplay
      normal?: number | number[] | string | string[]
      italic?: number | number[] | string | string[]
      fallbacks?: string[]
      text?: string
    ]
  }
}

fallbacks

  • Type: String[]
  • Default: ['BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans']

Contributing

You can contribute to this module online with CodeSandBox:

Edit nuxt-fonts

Or locally:

  • Clone this repository
  • Install dependencies using pnpm install
  • Prepare development server using pnpm dev:prepare
  • Build module using pnpm build
  • Launch playground using pnpm dev

License

MIT License

Copyright (c) Nuxt

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts