{"_id":"vite-plugin-google-fonts","_rev":"28-2fc45f76bbfa8b951a648efdfebf0a0c","name":"vite-plugin-google-fonts","dist-tags":{"latest":"0.5.1"},"versions":{"0.1.0":{"name":"vite-plugin-google-fonts","version":"0.1.0","author":{"url":"https://github.com/thisismert","name":"Mert"},"license":"MIT","_id":"vite-plugin-google-fonts@0.1.0","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","bugs":{"url":"https://github.com/thisismert/vite-plugin-google-fonts/issues"},"dist":{"shasum":"0b3140318de0b5fbbf59909ad5f072621ad3229d","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.1.0.tgz","fileCount":5,"integrity":"sha512-qUF5zbyuZaggkpd3xvohDhFRe1vH7v7z0etJgszVsZELhgd0rhfBnY6xpL3tVlUFwSnaIV9QIRNQIZCq7AkILg==","signatures":[{"sig":"MEUCIQD0qPHqNhWTfAqAesi7jHkCdMCVccgQN0y0wG13Gwwo2gIgIYHqY5HOVyRWb2zL2tZ2CI/VjpmwRo7jNy2cw3DCgbU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":999227},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"gitHead":"49df00a07f7ad073b35fab49a5d6eaab7f8a72ea","scripts":{"dev":"tsdown --watch","lint":"oxlint","test":"vitest run","build":"tsdown","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_npmUser":{"name":"thisismert","email":"thisismert4@gmail.com"},"repository":{"url":"git+https://github.com/thisismert/vite-plugin-google-fonts.git","type":"git"},"_npmVersion":"12.0.2","description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxlint":"^1.79.0","tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-google-fonts_0.1.0_1787500111118_0.28291800536446443","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"vite-plugin-google-fonts","version":"0.2.0","author":{"url":"https://github.com/thisismert","name":"Mert"},"license":"MIT","_id":"vite-plugin-google-fonts@0.2.0","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","dist":{"shasum":"5d3635129eddd9ecf67c2327436aae04c52d6d6b","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.2.0.tgz","fileCount":5,"integrity":"sha512-KdB1LkWgrbhkMQXQmKEP4eH7UG70v8jeFzTJbd4xyz+lBEMTiVxqOxXZsDzX7+zHbUSF12gsHmcCP1gWv/rClg==","signatures":[{"sig":"MEYCIQDBSU3NyhBbZMKQxfScywbJbcbK8jrjsViFc2SCUoHbkgIhAM06u8dZAcGwi8dvRTTN9Djc30AKgbs5ZGU2hEASmAND","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-google-fonts@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":999203},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"dev":"tsdown --watch","lint":"oxlint","test":"vitest run","build":"tsdown","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9e70ccb8-3413-4d1a-a013-ed20dac1106a"}},"repository":{"url":"https://github.com/thisismert/vite-plugin-google-fonts.git","type":"git"},"description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxlint":"^1.79.0","tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-google-fonts_0.2.0_1787587069656_0.5201494593250531","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"vite-plugin-google-fonts","version":"0.2.1","author":{"url":"https://github.com/thisismert","name":"Mert"},"license":"MIT","_id":"vite-plugin-google-fonts@0.2.1","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","dist":{"shasum":"a247f2443816952b109168fd2d006ec22bba1330","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.2.1.tgz","fileCount":5,"integrity":"sha512-MeWde7OyRqLrrEItC1tgWltnxnYHBOJoRb9B8vCThrp0OHVatsuYiYjDD4fIkybJeMcnamRt+9IDGA+1ZAPpQw==","signatures":[{"sig":"MEYCIQCWruJbS2Va0VvqpQ6A6WVnEGNhrYZfOQXa1lvnHBJzpgIhAPNjl2Hb70D4avYlulWZ7S/qaN8728x/WY4x114SewiJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-google-fonts@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":999203},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"dev":"tsdown --watch","lint":"oxlint","test":"vitest run","build":"tsdown","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:60b7660e-b62f-4007-8c44-5e6b80f468f9"}},"repository":{"url":"https://github.com/thisismert/vite-plugin-google-fonts.git","type":"git"},"description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxlint":"^1.79.0","tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-google-fonts_0.2.1_1787587654468_0.1896306602997726","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"vite-plugin-google-fonts","version":"0.3.0","author":{"url":"https://github.com/thisismert","name":"Mert"},"license":"MIT","_id":"vite-plugin-google-fonts@0.3.0","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","dist":{"shasum":"5bddd408bd2bd94afff6ea1946a0046c050d3108","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.3.0.tgz","fileCount":5,"integrity":"sha512-Qi7i0UOmK45oNTS4GsKWV9KE9meU2C+vaH5UPLJQNP+qyFfVT/GvzHvrKEmrVC9gA+Kn8Z+vs5K2TnFcZ58sXQ==","signatures":[{"sig":"MEUCIQDB8Y02xaYEwYXJVADuV7OdT3i+43/Twgn29z7pQpdKjgIgGLX41O4QMHLuKo1B0Yh0LcI5sHTpbSaEL+J9HZqYnhU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-google-fonts@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":999196},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"dev":"tsdown --watch","lint":"oxlint","test":"vitest run","build":"tsdown","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:60b7660e-b62f-4007-8c44-5e6b80f468f9"}},"repository":{"url":"https://github.com/thisismert/vite-plugin-google-fonts.git","type":"git"},"description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxlint":"^1.79.0","tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-google-fonts_0.3.0_1787589197398_0.23158997117913893","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"vite-plugin-google-fonts","version":"0.4.0","author":{"url":"https://github.com/thisismert","name":"Mert"},"license":"MIT","_id":"vite-plugin-google-fonts@0.4.0","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","dist":{"shasum":"8f97348ddc6ec44f791615cf0e047e6d48cf2c6b","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.4.0.tgz","fileCount":6,"integrity":"sha512-hcwzh1FxZOGjuL5XURdCtJ6qGvT3tX8SLHL16TTMN1b8GshKttwciZ//o2xC/3ApIQhfaHb8j+zA+7ON1p12YA==","signatures":[{"sig":"MEYCIQDu13v371bWXxBRvjlh1PjjUwivOF8KimoQKWiYJnnBSgIhAModBDUxXY2NRMzrpZ2P0YjtsHuvcZ/HWHykkF4wBBHk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-google-fonts@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1003192},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./fonts.css":"./fonts.css"},"scripts":{"dev":"tsdown --watch","lint":"oxlint","test":"vitest run","build":"tsdown","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:60b7660e-b62f-4007-8c44-5e6b80f468f9"}},"repository":{"url":"https://github.com/thisismert/vite-plugin-google-fonts.git","type":"git"},"description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxlint":"^1.79.0","tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-google-fonts_0.4.0_1787600455484_0.6832970360882951","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"vite-plugin-google-fonts","version":"0.5.0","author":{"url":"https://github.com/thisismert","name":"Mert"},"license":"MIT","_id":"vite-plugin-google-fonts@0.5.0","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","dist":{"shasum":"55d0f80170b7d45d23be1692a8a23f717578bdd2","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.5.0.tgz","fileCount":6,"integrity":"sha512-MYp/xVgAmZaT076H8954mb1VKw2IjmLh/ndK+sNVUTVPbCOJV0AulI9bzkR9AruKuAlqglIJzKrgrvIbtAZT6w==","signatures":[{"sig":"MEUCIA9nrub+tDHRhyjqKTyrJ4gQOuoHNVOom6v7m+WlGKjVAiEA8iWLa5w9G38iwRZRDO9Bj1L0JdcCV9ekZjEYB+fbK9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-google-fonts@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1000924},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./fonts.css":"./fonts.css"},"scripts":{"dev":"tsdown --watch","lint":"oxlint","test":"vitest run","build":"tsdown","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:60b7660e-b62f-4007-8c44-5e6b80f468f9"}},"repository":{"url":"https://github.com/thisismert/vite-plugin-google-fonts.git","type":"git"},"description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxlint":"^1.79.0","tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-google-fonts_0.5.0_1787603545886_0.9388126636527427","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"vite-plugin-google-fonts","version":"0.5.1","description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","type":"module","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./fonts.css":"./fonts.css"},"engines":{"node":">=18"},"repository":{"type":"git","url":"https://github.com/thisismert/vite-plugin-google-fonts.git"},"homepage":"https://github.com/thisismert/vite-plugin-google-fonts","author":{"name":"Mert","url":"https://github.com/thisismert"},"license":"MIT","peerDependencies":{"vite":">=4.0.0"},"devDependencies":{"@types/node":"^24.13.3","oxlint":"^1.79.0","tsdown":"^0.22.14","typescript":"^7.0.2","vite":"^8.2.2","vitest":"^4.1.11"},"scripts":{"build":"tsdown","dev":"tsdown --watch","lint":"oxlint","test":"vitest run","typecheck":"tsc --noEmit","generate:catalog":"node scripts/generate-font-catalog.mjs"},"_nodeVersion":"26.0.0","_id":"vite-plugin-google-fonts@0.5.1","dist":{"integrity":"sha512-maMMPk/4G0rthLyK7wLiingjzafvraaQJpsEljFT4sy2YveYQNJ1V0houEYoelyzCf6CzNAqLNZvP/j8YVJtQg==","shasum":"13c0c799b1d281a2d5e0b77ff69d6045ef5341f6","tarball":"https://registry.npmjs.org/vite-plugin-google-fonts/-/vite-plugin-google-fonts-0.5.1.tgz","fileCount":6,"unpackedSize":1000927,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-google-fonts@0.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD7yy+X0A6LIsZRE6U1C79OpvSFcfCUH/Lz/FbfTtAfHQIgQV+DfUktEZx5soe5wIke6uc6DMym9FaY1Y3bxK3KnuY="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:60b7660e-b62f-4007-8c44-5e6b80f468f9"}},"directories":{},"maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-google-fonts_0.5.1_1787904613580_0.37524227963528256"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T15:48:31.079Z","modified":"2026-08-28T08:10:14.044Z","1.0.0":"2026-03-07T11:04:11.838Z","1.0.1":"2026-03-07T11:07:16.419Z","1.0.2":"2026-03-07T11:13:08.855Z","1.0.3":"2026-03-07T11:15:10.673Z","2.0.0":"2026-03-08T09:57:40.380Z","2.1.0":"2026-03-08T13:40:07.617Z","2.1.1":"2026-03-18T14:13:33.017Z","2.2.0":"2026-03-18T20:38:37.800Z","2.3.0":"2026-03-22T16:33:02.450Z","2.4.0":"2026-03-28T12:12:38.727Z","2.5.0":"2026-03-28T16:46:53.274Z","3.0.0":"2026-08-22T13:31:14.280Z","3.1.0":"2026-08-22T13:46:37.019Z","3.2.0":"2026-08-22T13:53:42.107Z","4.0.0":"2026-08-22T13:58:35.333Z","0.1.0":"2026-08-23T15:48:31.258Z","0.2.0":"2026-08-24T15:57:49.815Z","0.2.1":"2026-08-24T16:07:34.692Z","0.3.0":"2026-08-24T16:33:17.533Z","0.4.0":"2026-08-24T19:40:55.636Z","0.5.0":"2026-08-24T20:32:26.101Z","0.5.1":"2026-08-28T08:10:13.736Z"},"author":{"name":"Mert","url":"https://github.com/thisismert"},"license":"MIT","homepage":"https://github.com/thisismert/vite-plugin-google-fonts","repository":{"type":"git","url":"https://github.com/thisismert/vite-plugin-google-fonts.git"},"description":"Self-host Google Fonts in Vite with local CSS, cached font assets, CSS variables, and Tailwind theme mappings.","maintainers":[{"name":"thisismert","email":"thisismert4@gmail.com"}],"readme":"# vite-plugin-google-fonts\n\nA Vite plugin that downloads Google Fonts at startup, stores the font files in a package-local cache, and generates a package stylesheet with local `@font-face` rules, CSS variables, and Tailwind theme mappings.\n\nThis was something I vibecoded to use in a project, but then I decided to release it as a seperate project.\n\nI am still working on docs, for now you can check below for basic usage and options. If you have any questions, feel free to open an issue.\n\n## Installation\n\n```bash\npn i vite-plugin-google-fonts\n```\n\n## Usage\n\nThe plugin generates `node_modules/vite-plugin-google-fonts/fonts.css`. Import the package stylesheet from the application's CSS entry after configuring the plugin.\n\n```ts\n// vite.config.ts\nimport { defineConfig } from 'vite'\nimport googleFonts from 'vite-plugin-google-fonts'\n\nexport default defineConfig({\n  plugins: [\n    googleFonts({\n      fonts: {\n        Inter: {\n          variable: '--font-sans',\n        },\n        JetBrains_Mono: {\n          variable: '--font-mono',\n        },\n      },\n    }),\n  ],\n})\n```\n\n```css\n/* src/index.css */\n@import \"tailwindcss\";\n@import \"vite-plugin-google-fonts/fonts.css\";\n```\n\n```ts\n// src/main.tsx\nimport './index.css'\n```\n\n## Features\n\n- Downloads and self hosts fonts so you don't have to rely on Google Fonts CDN.\n- Supports variable and static families, including custom weights, styles, and subsets.\n- Generates the stylesheet inside the installed package, so no generated files are added to your project source tree.\n- Auto-generates Tailwind theme mappings for variable families so you can use them with Tailwind.\n- Typesafe configuration with autocomplete and validation in IDEs. \n- Optimizes static families by scanning source files for used weights and only including those in the generated stylesheet to reduce build times and bundle sizes.\n\n## Generated files\n\nThe generated stylesheet and cache live in the installed plugin package:\n\n```text\nnode_modules/vite-plugin-google-fonts/\n├── fonts.css\n└── .cache/\n    ├── meta.json\n    ├── <family>.css\n    └── fonts/\n```\n\nBy default, the `.cache` directory contains downloaded font files, one stylesheet per family, and a manifest used for cache validation. It is safe to delete; the plugin recreates it on the next Vite start. Since these files are inside `node_modules`, they do not add generated files to the application source tree.\n\nThis output strategy requires a physical, writable `node_modules` installation. Plug'n'Play package setups do not provide a package directory for the generated file and are not supported.\n\nDuring `vite dev`, the plugin scans stylesheet source files for `vite-plugin-google-fonts/fonts.css` and warns if it cannot find an import.\n\n## Options\n\n### `optimizeWeights`\n\nDefault: `true`\n\nFor non-variable families, the plugin scans supported source files for CSS declarations, inline styles, and utility classes such as `font-bold` or `font-700`, then only includes matching catalog weights to reduce build times and bundle sizes.\n\nVariable families are downloaded as one variable font and are not scanned.\n\nSet `optimizeWeights: false` to choose static weights manually (not recommended):\n\n```ts\ngoogleFonts({\n  optimizeWeights: false,\n  fonts: {\n    Poppins: {\n      weights: [400, 500, 700],\n      styles: ['normal', 'italic'],\n      subsets: ['latin', 'latin-ext'],\n      variable: '--font-sans',\n    },\n    Playfair_Display: {\n      weights: 'variable',\n      variable: '--font-display',\n    },\n  },\n})\n```\n\nWithout an explicit `weights` value, a variable family uses its variable range and a static family uses all catalog-supported weights.\n\n### Per-family options\n\n- `variable`: Add a custom CSS variable for the family.\n- `styles`: Choose font styles You want to include. (defaults to `['normal']`)\n- `subsets`: Choose font subsets you want to include. (defaults to `['latin']`)\n- `display`: Choose the font display method you want to use. (defaults to `swap`)\n- `fallback`: Choose a fallback font stack. (defaults to a category-appropriate system stack: `system-ui, sans-serif` for sans-serif families, `system-ui, monospace` for monospace families)\n- `weights`: Choose the custom weights you want to include. Only available when `optimizeWeights: false`. (defaults to all catalog-supported weights)\n","readmeFilename":""}