Skip to content
PluginStats

tailwindcss-capsize weekly downloads statistics

By stormwarning (3 listings) · npm · Tailwind plugins

TailwindCSS leading-trim utility classes.

View on npm Fresh · Oct 17, 2026

tailwindcss-capsize has 3,247 recorded weekly downloads on npm, a decrease of 32.0% over the past 30 days.

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

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

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

Weekly downloads
3,247
Official API · Oct 17, 2026
7-day growth
-55.6%
-4.1K weekly downloads
30-day growth
-32.0%
-1.5K weekly downloads
90-day growth
-87.3%
-22.2K weekly downloads
Rank
#1187
Among tracked npm listings

About tailwindcss-capsize

tailwindcss-capsize

[![npm version][npm-img]][npm-url]

A TailwindCSS plugin that generates text-box-trim utility classes using [Capsize].

text-box-trim?

Formerly known as leading-trim, a [proposed CSS property] to remove the extra space from text bounding boxes, which affects optical alignment. This [article from Microsoft Design] outlines the problem and how the proposed solution works.

Configuration

A JavaScript config file is required due to the values needed by the plugin.

Other Tailwind settings can be configured through CSS directives or included in the config file.

This plugin requires a fontMetrics key added to your Tailwind theme. It should be an object with keys matching those in your fontFamily definitions, and each key should have an object of the following shape:

These values can be determined by using the [Capsize website], [fontkit], [FontDrop!], or some other means.

A full example

Usage

The new .capsize utility class should be applied to the _direct parent_ element surrounding a text node. This class requires font-family, font-size, and line-height utilities to be applied at some point above it in the cascade in order for the required custom properties to be available.

Options

rootSize

type: number (optional, default: 16)

The plugin assumes a root font-size of 16px when converting from rem values. To use a different value, pass it in (without units) to the plugin options.

className

type: string (optional, default: 'capsize')

The default .capsize utility class can be replaced with a custom class name if preferred.

Tips and tricks

Text truncation and line clamping

Sometimes an interface calls for truncating text to a single line or clamping text to a specified number of lines. Applying these methods to the same element that the default .capsize class is applied to will cause issues since the class assigns pseudo ::before and ::after elements to that element.

To solve this, a child element to the element with the .capsize class should wrap the text. This element should receive the styling to truncate or line clamp.

Related

[🔡 tailwindcss-opentype] — Utility classes for advanced typographic features.

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • capsize
  • leading-trim
  • text-box
  • text-box-trim
  • typography
  • whitespace

Where tailwindcss-capsize 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 60, #7 (overall #1187)
All npm: every listing in weekly downloads order
PNG SVG
Tailwind plugins251 listings · 13 pages · page 1, #12 (overall #12)
Tailwind plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

tailwindcss-capsize weekly downloads on npm, last 90 days: 3,247 weekly downloads as of Oct 17, 2026, -87.3% over 90 days.tailwindcss-capsizeWeekly downloads on npm · Last 90 days3,247downloads / week-87.3% over 90 days010K20K30K40K50K60KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
tailwindcss-capsize weekly downloads on npm, last 90 days: 3,247 weekly downloads as of Oct 17, 2026, -87.3% over 90 days.
PNG SVG

7/30/90-day growth

tailwindcss-capsize weekly downloads growth on npm: -55.6% over 7 days, -32.0% over 30 days, -87.3% over 90 days.tailwindcss-capsizeWeekly downloads growth on npm3,247downloads / week now7-day growth-4,073 weekly downloads-55.6%30-day growth-1,531 weekly downloads-32.0%90-day growth-22,243 weekly downloads-87.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
tailwindcss-capsize weekly downloads growth on npm: -55.6% over 7 days, -32.0% over 30 days, -87.3% over 90 days.
PNG SVG

Ranking history

tailwindcss-capsize npm ranking history: currently #1187 (by weekly downloads).tailwindcss-capsizenpm ranking · by weekly downloads · Last 90 days#1187current rank#1185#1186#1187#1188#1189Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
tailwindcss-capsize npm ranking history: currently #1187 (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 tailwindcss-capsize
Date (UTC)Weekly downloadsChange vs. previous
3,247-486
3,733-297
4,030-1.6K
5,634-1.8K
7,3890
7,389-33
7,422+102
7,320+310
7,010+305
6,705-480
7,185-94
7,279-1.2K
8,495+823
7,672—

Similar npm Tailwind 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/tailwindcss-capsize. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.