Skip to content
PluginStats

tailwindcss-viewport-spacing weekly downloads statistics

By gunubin · npm · Tailwind plugins

Tailwind CSS Viewport Spacing is a plugin that allows you to adjust the following utility classes based on viewport width (vw) and viewport height (vh):

View on npm Fresh · Oct 18, 2026

tailwindcss-viewport-spacing has 6 recorded weekly downloads on npm, a decrease of 62.5% over the past 30 days, ranking #2150 of 2,322 tracked listings.

Weekly downloads
6
Official API · Oct 18, 2026
7-day growth
+50.0%
+2 weekly downloads
30-day growth
-62.5%
-10 weekly downloads
90-day growth
+200%
+4 weekly downloads
Rank
#2150
Among tracked npm listings

About tailwindcss-viewport-spacing

Tailwind CSS Viewport Spacing

Tailwind CSS Viewport Spacing is a plugin that allows you to adjust the following utility classes based on viewport width (vw) and viewport height (vh):

  • Padding (e.g., p, px, py, pt, pr, pb, pl)
  • Margin (e.g., m, mx, my, mt, mr, mb, ml)
  • Position (e.g., top, right, bottom, left)
  • Width (e.g., w)
  • Height (e.g., h)
  • Max-width (e.g., max-w)
  • Max-height (e.g., max-h)
  • Min-width (e.g., min-w)
  • Min-height (e.g., min-h)
  • Font-size (e.g., text)
  • Inset-inline-start (e.g., start)
  • Inset-inline-end (e.g., end)
  • Inset (e.g., inset)

Installation

Install the package using npm:

npm install tailwindcss-viewport-spacing

or using yarn:

yarn add tailwindcss-viewport-spacing

Usage

  1. Import the plugin in your tailwind.config.js file:
const viewportSpacing = require('tailwindcss-viewport-spacing');
  1. Add the plugin to your tailwind.config.js plugins section and configure the options:
viewportSpacing({
  vw: {
    phone: 375, // This configuration means that when the viewport width is 375px, the multiplier will be 100%
    desktop: 1280,
  },
  vh: {
    phone: 667, // This configuration means that when the viewport height is 667px, the multiplier will be 100%
  },
}),
  1. Use the generated utility classes in your HTML:
<div class="p-vw-phone-[100]">Content with padding equal to 100px when the viewport width is 375px</div>
<div class="h-vh-phone-[100]">Content with height equal to 100px when the viewport height is 667px</div>

In this example, the p-vw-phone-[100] class will apply a padding of 100px when the viewport width is 375px, and the h-vh-phone-[100] class will apply a height of 100px when the viewport height is 667px.

Supported CSS Properties

  • Padding: Apply viewport-based padding to elements.
  • Margin: Apply viewport-based margin to elements.
  • Position: Adjust the position of elements based on viewport width.
  • Width: Control the width of elements based on viewport width.
  • Height: Control the height of elements based on viewport width.
  • Max-width: Set the maximum width of elements based on viewport width.
  • Max-height: Set the maximum height of elements based on viewport width.
  • Min-width: Set the minimum width of elements based on viewport width.
  • Min-height: Set the minimum height of elements based on viewport width.
  • Font-size: Adjust the font size of text elements based on viewport width.
  • Inset-inline-start: Control the start inset of positioned elements based on viewport width.
  • Inset-inline-end: Control the end inset of positioned elements based on viewport width.
  • Inset: Control the inset of positioned elements based on viewport width.

License

MIT License

Description from the npm listing.

  • tailwind
  • tailwindcss
  • tailwindcss-plugin
  • tailwindcss-utilities
  • plugin
  • utilities
  • viewport
  • spacing

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

tailwindcss-viewport-spacing weekly downloads on npm, last 90 days: 6 weekly downloads as of Oct 18, 2026, +200% over 90 days.tailwindcss-viewport-spacingWeekly downloads on npm · Last 90 days6downloads / week+200% over 90 days0510152025303540Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
tailwindcss-viewport-spacing weekly downloads on npm, last 90 days: 6 weekly downloads as of Oct 18, 2026, +200% over 90 days.

7/30/90-day growth

tailwindcss-viewport-spacing weekly downloads growth on npm: +50.0% over 7 days, -62.5% over 30 days, +200% over 90 days.tailwindcss-viewport-spacingWeekly downloads growth on npm6downloads / week now7-day growth+2 weekly downloads+50.0%30-day growth-10 weekly downloads-62.5%90-day growth+4 weekly downloads+200%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
tailwindcss-viewport-spacing weekly downloads growth on npm: +50.0% over 7 days, -62.5% over 30 days, +200% over 90 days.

Ranking history

tailwindcss-viewport-spacing npm ranking history: currently #2150 (by weekly downloads).tailwindcss-viewport-spacingnpm ranking · by weekly downloads · Last 90 days#2150current rank#600#800#1000#1200#1400#1600#1800#2000#2200Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
tailwindcss-viewport-spacing npm ranking history: currently #2150 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 108, #14 (overall #2,154)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins252 listings · 13 pages · page 11, #4 (overall #204)
Tailwind plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (544)
Recent weekly downloads observations for tailwindcss-viewport-spacing
Date (UTC)Weekly downloadsChange vs. previous
6+1
50
5+1
40
40
40
40
4+2
20
2-2
4-1
50
50
5—

Similar npm Tailwind plugins plugins

All 20 tailwindcss-viewport-spacing alternatives

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-viewport-spacing. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.