Skip to content
PluginStats

tailwindcss-plugin-aspect-ratio weekly downloads statistics

By wahlemedia (2 listings) · npm · Tailwind plugins

A Tailwind CSS plugin to preserve the aspect ratio on images

View on npm Fresh · Oct 28, 2026

tailwindcss-plugin-aspect-ratio has 0 recorded weekly downloads on npm, ranking #2193 of 2,644 tracked listings.

Weekly downloads
0
Official API · Oct 26, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#2193
Among tracked npm listings

About tailwindcss-plugin-aspect-ratio

Tailwindcss Plugin: aspect ratio

Actions Status

This plugin add helper classes to keep the aspect ratio of an image.

Inspired by Adams Wathan's Fixed Aspect Ratio TailwindCSS tutorial

Installation

Add this plugin to your project

  npm install tailwindcss-plugin-aspect-ratio --save-dev

Usage

Here is an exampl one how to add this plugin to your project

// tailwind.config.js
const aspectRatioPlugin = require('tailwindcss-plugin-aspect-ratio');

module.exports = {
  theme: {
    extend: {}
  },
  variants: {},
  plugins: [
    aspectRatioPlugin()
  ]
};

Options

You can pass additional options to this plugin

NamedefaultDescription
fullfalseGenerates a helper component. (see the section below)
classNameratioThe default name of the generated classes
ratioValues{...}It generates all percent base padding bottoms. See all the values and examples at the Tailwindcss documentation for width

Classic approach

The classic css approach is as follow

<div class="relative" style="padding-bottom: 66.66%">
    <img class="absolute h-full w-full object-cover" src="#" alt="#" />
</div>

Plugin Example

The default configuration genearats the apsect-* helper classes

<div class="relative aspect-2/3">
    <img class="absolute h-full w-full object-cover" src="#" alt="#" />
</div>

add additional css helper component

If you set the full property of the configuration to true, it gives your an extra aspect property that you can apply to your html tag.

.aspect {
    position: relative;
    
    .img {
        position: absolute;
        height: 100%;
        width: 100%
    }
}
<div class="aspect aspect-2/3">
    <img class="object-cover" src="#" alt="#" />
</div>

Testing

To run the tests

npm run test

Licence

MIT

Description from the npm listing.

  • tailwind
  • tailwindcss
  • tailwind-css
  • tailwindcss-plugin
  • aspect
  • ratio

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-plugin-aspect-ratio weekly downloads on npm, last 90 days: 0 weekly downloads as of Oct 26, 2026.tailwindcss-plugin-aspect-ratioWeekly downloads on npm · Last 90 days0downloads / week-1-0.500.51Jul 28Aug 12Aug 27Sep 11Sep 26Oct 11Oct 26downloads / weekOct 26, 2026 – Oct 26, 2026 · 1 observations · Updated Oct 26, 2026pluginstats.com
tailwindcss-plugin-aspect-ratio weekly downloads on npm, last 90 days: 0 weekly downloads as of Oct 26, 2026.

7/30/90-day growth

tailwindcss-plugin-aspect-ratio weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.tailwindcss-plugin-aspect-ratioWeekly downloads growth on npm0downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 26, 2026pluginstats.com
tailwindcss-plugin-aspect-ratio weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

tailwindcss-plugin-aspect-ratio npm ranking history: currently #2193 (by weekly downloads).tailwindcss-plugin-aspect-rationpm ranking · by weekly downloads · Last 90 days#2193current rank#2191#2192#2193#2194#2195Jul 30Aug 14Aug 29Sep 13Sep 28Oct 13Oct 28rankOct 28, 2026 – Oct 28, 2026 · 1 observations · Updated Oct 26, 2026pluginstats.com
tailwindcss-plugin-aspect-ratio npm ranking history: currently #2193 (by weekly downloads).

Listing placement

All npm2,642 listings · 133 pages · 1,323 shown · page 132, #16 (overall #2,636)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins268 listings · 14 pages · page 14, #7 (overall #267)
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 (1)
Recent weekly downloads observations for tailwindcss-plugin-aspect-ratio
Date (UTC)Weekly downloadsChange vs. previous
0—

Similar npm Tailwind plugins plugins

All 20 tailwindcss-plugin-aspect-ratio 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-plugin-aspect-ratio. First seen Oct 28, 2026; last successful collection Oct 28, 2026. See the methodology.