Skip to content
PluginStats

fontless weekly downloads statistics

By unjs · npm · Vite plugins

Magical plug-and-play font optimization for modern web applications

View on npm Fresh · Oct 17, 2026

fontless has 382,590 recorded weekly downloads on npm, a decrease of 31.7% over the past 30 days.

It ranks #276 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -23.4%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
382,590
Official API · Oct 17, 2026
7-day growth
-50.7%
-393.9K weekly downloads
30-day growth
-31.7%
-177.3K weekly downloads
90-day growth
-23.4%
-116.7K weekly downloads
Rank
#276
Among tracked npm listings

About fontless

fontless

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]

Magical plug-and-play font optimization for modern web applications

Features

• 🚀 Optimized font loading: Automatically loads and configures fonts with proper fallbacks and preload links. • 🔤 Multiple provider support: Google Fonts, Bunny Fonts, FontShare, FontSource, and more using unifont • 📦 Zero runtime overhead: Pure CSS solution with no JavaScript required at runtime • 📏 Metric-based fallbacks: Reduces Cumulative Layout Shift (CLS) by using font metrics from fontaine • 🔄 CSS transformation: Detects font-family usage in your CSS and injects optimized @font-face declarations • 🎯 Framework agnostic: Works with all modern frameworks (Vue, React, Solid, Svelte, Qwik, etc.)

Installation

Usage

Add the fontless plugin to your Vite configuration:

Using fonts in your CSS

Simply use fonts in your CSS as you normally would, and fontless will handle optimization:

Configuration

You can customize fontless with various options:

Entries in families that share a name configure one family. Every entry with src contributes its own @font-face. Family-level options such as preload, fallbacks, and glyphs are taken from the first entry that sets them, and the family is global if any entry sets global. If a family has both src entries and provider entries, only the src entries are used.

Category-Aware Fallbacks

Fontless uses category-aware fallback presets shared with the fontaine package. These presets provide optimized system fonts for different generic font families:

• sans-serif: Segoe UI, Helvetica Neue, Arial, Noto Sans • serif: Times New Roman, Georgia, Noto Serif • monospace: Courier New, Roboto Mono, Noto Sans Mono • cursive: Uses handwriting category fallbacks • fantasy: Uses display category fallbacks • system-ui, ui-serif, ui-sans-serif, ui-monospace: Mapped to corresponding category presets

You can override fallbacks for specific generic families in the defaults.fallbacks configuration while keeping the shared defaults for others. This ensures consistent font fallback behavior across your application and reduces cumulative layout shift (CLS).

Minification

Generated @font-face rules are minified with lightningcss, which is an optional peer dependency. Install it alongside fontless to enable minification:

Without it, the generated CSS is emitted unminified and left to the bundler's own minifier.

Glyph Subsetting

If you know a family only ever renders a fixed set of characters — a logotype, a specimen, a set of headings — set glyphs on it and fontless will reduce every file it emits for that family to those glyphs, whichever provider served it.

The subsetter is an optional peer dependency, so install it alongside fontless if you use this option:

Subsetting happens on the font file itself with harfbuzz (via subset-font), so it works for fonts from every provider as well as local files, keeps the original format and keeps a variable font's axes. Where the provider can subset server-side (Google Fonts' text= API) the glyph list is passed through to it as well, so the full file is never downloaded.

The glyph list is part of the emitted file's name, so two families sharing a source font with different glyph lists get their own file, and changing the list invalidates the cache. Fallback metrics are still read from the original font, so size-adjust and friends are unaffected. Files are emitted unchanged for families without glyphs.

[!IMPORTANT] Subsetting modifies the font file you ship. Some licences (particularly commercial and free-with-conditions ones) restrict modifying, converting or self-hosting a font, so check the licence or terms of the font you are subsetting before enabling this.

Variable Font Axes

Variable fonts expose axes beyond weight and italic, such as Recursive's casual (CASL) and monospace (MONO) axes. Set variableAxis on a family (or on defaults, for every family) to choose the values you ship. A number or string pins an axis to a single value, and a { min, max } object (or a [min, max] pair) narrows it to an inclusive range:

The request is passed to the provider first. Google Fonts serves an already-instanced file, so nothing further happens locally. For every other provider, unifont returns the variable file with a font-variation-settings descriptor, and fontless applies the axis to the file itself with subset-font, then drops the descriptor for that axis, since the axis no longer exists in the file to be varied. Values that unifont reports it left to the consumer, such as a range, are applied to the file without touching the CSS.

Applying an axis locally means subsetting the file, so it needs a glyph list: either the family's glyphs, or the characters the face's unicode-range declares. Without either, the file is emitted untouched and the font-variation-settings descriptor is kept, so the font still renders at the requested values. An axis a font file does not have is skipped, keeping any glyph subset. Because it is a subsetting pass, the licence caveat under Glyph Subsetting applies to the file you ship.

The axis values are part of the emitted file's name, so two families sharing a source font with different values get their own file, and changing a value invalidates the cache. wght and ital are left alone: they are expressed by @font-face descriptors, and pinning them would lose the other faces of the family.

[!NOTE] This option is experimental. Provider support and the option shape may change.

Preloading Fonts

Preloading is opt-in: no font is preloaded unless you ask for it. Enable it for every family with defaults.preload, or for individual families with families[].preload:…

Description from the npm listing.

  • font
  • optimization
  • vite-plugin
  • css
  • javascript

Where fontless sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 14, #16 (overall #276)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 2, #11 (overall #31)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

fontless weekly downloads on npm, last 90 days: 382,590 weekly downloads as of Oct 17, 2026, -23.4% over 90 days.fontlessWeekly downloads on npm · Last 90 days382,590downloads / week-23.4% over 90 days300K400K500K600K700K800K900K1MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
fontless weekly downloads on npm, last 90 days: 382,590 weekly downloads as of Oct 17, 2026, -23.4% over 90 days.
PNG SVG

7/30/90-day growth

fontless weekly downloads growth on npm: -50.7% over 7 days, -31.7% over 30 days, -23.4% over 90 days.fontlessWeekly downloads growth on npm382,590downloads / week now7-day growth-393,854 weekly downloads-50.7%30-day growth-177,340 weekly downloads-31.7%90-day growth-116,707 weekly downloads-23.4%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
fontless weekly downloads growth on npm: -50.7% over 7 days, -31.7% over 30 days, -23.4% over 90 days.
PNG SVG

Ranking history

fontless npm ranking history: currently #276 (by weekly downloads).fontlessnpm ranking · by weekly downloads · Last 90 days#276current rank#274#275#276#277#278Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
fontless npm ranking history: currently #276 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for fontless
Date (UTC)Weekly downloadsChange vs. previous
382,590-85.5K
468,065-1.6K
469,709-158.2K
627,915-153.6K
781,4920
781,492+708
780,784+4.3K
776,444+778
775,666+4.3K
771,318+3.4K
767,967+7.1K
760,913-141.9K
902,827+4.1K
898,724—

Similar npm Vite plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/fontless. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.