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 · Dec 6, 2026

tailwindcss-viewport-spacing has 31 recorded weekly downloads on npm, an increase of 63.2% over the past 30 days, ranking #2891 of 3,247 tracked listings.

Weekly downloads
31
Official API · Dec 5, 2026
7-day growth
+210%
+21 weekly downloads
30-day growth
+63.2%
+12 weekly downloads
90-day growth
+3000%
+30 weekly downloads
Rank
#2891
▲ 70 in 7 days

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: 31 weekly downloads as of Dec 5, 2026, +3000% over 90 days.tailwindcss-viewport-spacingWeekly downloads on npm · Last 90 days31downloads / week+3000% over 90 days05101520253035Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tailwindcss-viewport-spacing weekly downloads on npm, last 90 days: 31 weekly downloads as of Dec 5, 2026, +3000% over 90 days.

7/30/90-day growth

tailwindcss-viewport-spacing weekly downloads growth on npm: +210% over 7 days, +63.2% over 30 days, +3000% over 90 days.tailwindcss-viewport-spacingWeekly downloads growth on npm31downloads / week now7-day growth+21 weekly downloads+210%30-day growth+12 weekly downloads+63.2%90-day growth+30 weekly downloads+3000%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tailwindcss-viewport-spacing weekly downloads growth on npm: +210% over 7 days, +63.2% over 30 days, +3000% over 90 days.

Ranking history

tailwindcss-viewport-spacing npm ranking history: currently #2891 (by weekly downloads).tailwindcss-viewport-spacingnpm ranking · by weekly downloads · Last 90 days#2891current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
tailwindcss-viewport-spacing npm ranking history: currently #2891 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 145, #13 (overall #2,893)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 8, #14 (overall #154)
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 (592)
Recent weekly downloads observations for tailwindcss-viewport-spacing
Date (UTC)Weekly downloadsChange vs. previous
31+1
30+6
240
24+18
6-2
8+1
7-3
100
10-9
19-2
21+1
20+3
170
17—

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 Dec 6, 2026. See the methodology.