Skip to content
PluginStats

tailwindcss-safe-area-capacitor weekly downloads statistics

By mahyarmirrashed · npm · Tailwind plugins

Tailwind CSS safe area helpers for capacitor-plugin-safe-area.

View on npm Fresh · Oct 18, 2026

tailwindcss-safe-area-capacitor has 3,178 recorded weekly downloads on npm, a decrease of 70.8% over the past 30 days, ranking #1232 of 2,322 tracked listings.

Weekly downloads
3,178
Official API · Oct 18, 2026
7-day growth
-73.0%
-8.6K weekly downloads
30-day growth
-70.8%
-7.7K weekly downloads
90-day growth
-77.4%
-10.9K weekly downloads
Rank
#1232
Among tracked npm listings

About tailwindcss-safe-area-capacitor

tailwindcss-safe-area-capacitor

Safe area inset utilities extending margin, padding, and height. The plugin provides base, offset, and or utilities for better adaptability across various scenarios. This is an adaptation of the tailwindcss-safe-area project that is intended to pair with the AlwaysLoveme/capacitor-plugin-safe-area plugin for Capacitor.

Getting started

npm install --dev tailwindcss-safe-area-capacitor

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
	theme: {},
	plugins: [require('tailwindcss-safe-area-capacitor')],
}

Usage

This plugin extends the padding and margin utilities with three types:

  1. Base Utilities: The base safe area inset utilities. These include the initial padding and margin utilities with the safe area in consideration. They can be used where you want the element to respect the safe area insets.

  2. Offset Utilities: These utilities allow you to extend the base safe area inset by a given offset. This can be particularly useful when you want a bit more spacing than the safe area provides, for example in situations where you have a translucent UI over a background image or video and want to ensure important visual content isn't covered.

  3. Or Utilities: These utilities let you specify a minimum value to use if it's greater than the safe area inset. This can be used when you have certain layout elements that should respect the safe area but should never be smaller than a certain size.

Here are some examples:

Base utilities
<header class="pt-safe">...</header>

<main class="px-safe">
	<p>ciao</p>
</main>

<footer class="pb-safe">...</footer>
Offset utilities

The offset utilities can be used by appending -offset-{value} to the base utility. This applies an additional margin or padding equal to the specified value. For example, if you want to apply a right padding that is equal to the safe area inset plus 4 units of your spacing scale, you can use:

<div class="pr-safe-offset-4">...</div>
Or utilities

The or utilities can be used by appending -or-{value} to the base utility. This applies a margin or padding that is the larger of the safe area inset and the specified value. For example, if you want to apply a bottom padding that is the larger of the safe area inset and 8 units of your spacing scale, you can use:

<div class="pb-safe-or-8">...</div>

Provided utilities

UtilitiesStyles
m-safe, p-safevar(--safe-area-inset-{top, right, bottom, left})
mx-safe, px-safevar(--safe-area-inset-{right, left})
my-safe, py-safevar(--safe-area-inset-{top, bottom})
mt-safe, pt-safevar(--safe-area-inset-top)
mr-safe, pr-safevar(--safe-area-inset-right)
mb-safe, pb-safevar(--safe-area-inset-bottom)
ml-safe, pl-safevar(--safe-area-inset-left)
min-h-screen-safe, h-screen-safecalc(100vh - (var(--safe-area-inset-top) + var(--safe-area-inset-bottom)))<br>-webkit-fill-available
*-safe-offset-{value}calc(var(--safe-area-inset-*) + {value})
*-safe-or-{value}max(var(--safe-area-inset-*), {value})

Tip: To extend html content behind the safe area, set viewport-fit=cover

<meta
	name="viewport"
	content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<details><summary><h4> Examples with generated output</h4></summary>
Base Utility Example
<header class="pt-safe">...</header>

This applies a top padding to the header that is equal to the safe area inset at the top. The generated CSS would be:

.pt-safe {
	padding-top: var(--safe-area-inset-top);
}
Offset Utility Example
<div class="pr-safe-offset-4">...</div>

This applies a right padding to the div that is equal to the safe area inset on the right plus 4 units of your spacing scale. Assuming your spacing scale unit is 8px (default in Tailwind CSS), the generated CSS would be:

.pr-safe-offset-4 {
	padding-right: calc(var(--safe-area-inset-right) + 1rem);
}
Or Utility Example
<div class="pb-safe-or-8">...</div>

This applies a bottom padding to the div that is the larger of the safe area inset at the bottom and 8 units of your spacing scale. Assuming your spacing scale unit is 8px (default in Tailwind CSS), the generated CSS would be:

.pb-safe-or-8 {
	padding-bottom: max(var(--safe-area-inset-bottom), 2rem);
}
</details>

Troubleshooting

The h-screen-safe and min-h-screen-safe utilities may not work as expected on Google Chrome. Add height: -webkit-fill-available on parent nodes:

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
	html {
		height: -webkit-fill-available;
	}…

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • tailwindcss-safe-area-capacitor
  • safe-area-inset
  • pwa
  • margin
  • padding

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-safe-area-capacitor weekly downloads on npm, last 90 days: 3,178 weekly downloads as of Oct 18, 2026, -77.4% over 90 days.tailwindcss-safe-area-capacitorWeekly downloads on npm · Last 90 days3,178downloads / week-77.4% over 90 days05K10K15K20K25KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
tailwindcss-safe-area-capacitor weekly downloads on npm, last 90 days: 3,178 weekly downloads as of Oct 18, 2026, -77.4% over 90 days.

7/30/90-day growth

tailwindcss-safe-area-capacitor weekly downloads growth on npm: -73.0% over 7 days, -70.8% over 30 days, -77.4% over 90 days.tailwindcss-safe-area-capacitorWeekly downloads growth on npm3,178downloads / week now7-day growth-8,587 weekly downloads-73.0%30-day growth-7,696 weekly downloads-70.8%90-day growth-10,865 weekly downloads-77.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
tailwindcss-safe-area-capacitor weekly downloads growth on npm: -73.0% over 7 days, -70.8% over 30 days, -77.4% over 90 days.

Ranking history

tailwindcss-safe-area-capacitor npm ranking history: currently #1232 (by weekly downloads).tailwindcss-safe-area-capacitornpm ranking · by weekly downloads · Last 90 days#1232current rank#400#600#800#1000#1200#1400Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
tailwindcss-safe-area-capacitor npm ranking history: currently #1232 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 62, #15 (overall #1,235)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins252 listings · 13 pages · page 1, #13 (overall #13)
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-safe-area-capacitor
Date (UTC)Weekly downloadsChange vs. previous
3,178-3
3,181-497
3,678+205
3,473-2.5K
5,943-3.3K
9,2540
9,254-2.5K
11,765-1.6K
13,318-759
14,077-79
14,156+617
13,539+412
13,127-1.7K
14,812—

Similar npm Tailwind plugins plugins

All 20 tailwindcss-safe-area-capacitor 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-safe-area-capacitor. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.