Skip to content
PluginStats

extra-tailwindcss-safe-area weekly downloads statistics

By 47vigen · npm · Tailwind plugins

Tailwind CSS safe area helpers

View on npm Fresh · Dec 6, 2026

extra-tailwindcss-safe-area has 107 recorded weekly downloads on npm, an increase of 138% over the past 30 days, ranking #2615 of 3,247 tracked listings.

Weekly downloads
107
Official API · Dec 5, 2026
7-day growth
-2.7%
-3 weekly downloads
30-day growth
+138%
+62 weekly downloads
90-day growth
+128%
+60 weekly downloads
Rank
#2615
▼ 126 in 7 days

About extra-tailwindcss-safe-area

extra-tailwindcss-safe-area

Tailwind CSS utilities for safe areas.

Features

  • Responsive safe area utilities tailored for margin, padding, height, width and position
  • Flexible spacing helpers to extend safe areas or ensure content remains unobstructed with offset, maximum and minimum value variants
  • Modern CSS support, including height, width, inline-start, inline-end, scroll-margin, scroll-padding and more to handle modern layouts

Getting started

npm install --dev extra-tailwindcss-safe-area

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

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

Usage

To extend content behind the safe area, add or append viewport-fit=cover to your viewport meta tag:

<meta
	name="viewport"
	content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
Base utilities

Handle safe area margin, padding, height and position.

<header class="pt-safe">...</header>
<main class="px-safe">...</main>
<footer class="pb-safe">...</footer>
Offset utilities

Extend base utilities with an additional offset.

<div class="pr-safe-offset-4">...</div>
<div class="h-safe-bottom-offset-4">...</div>

This adds right padding equal to the safe area plus 4.

Max utilities

Apply a maximum value while respecting the safe area.

<div class="pb-safe-max-8">...</div>
<div class="h-safe-bottom-max-8">...</div>

This adds bottom padding equal to the larger of the safe area or 8.

Min utilities

Apply a minimum value while respecting the safe area.

<div class="pb-safe-min-8">...</div>
<div class="h-safe-bottom-min-8">...</div>

This adds bottom padding equal to the smaller of the safe area or 8.

Generated styles

Margin
.m-safe {
	margin-top: env(safe-area-inset-top);
	margin-right: env(safe-area-inset-right);
	margin-bottom: env(safe-area-inset-bottom);
	margin-left: env(safe-area-inset-left);
}
.mx-safe {
	margin-right: env(safe-area-inset-right);
	margin-left: env(safe-area-inset-left);
}
.my-safe {
	margin-top: env(safe-area-inset-top);
	margin-bottom: env(safe-area-inset-bottom);
}
.ms-safe {
	margin-inline-start: env(safe-area-inset-left);
}
.me-safe {
	margin-inline-end: env(safe-area-inset-left);
}
.mt-safe {
	margin-top: env(safe-area-inset-top);
}
.mr-safe {
	margin-right: env(safe-area-inset-right);
}
.mb-safe {
	margin-bottom: env(safe-area-inset-bottom);
}
.ml-safe {
	margin-left: env(safe-area-inset-left);
}
Scroll margin

Same as margin, prefixed with scroll-.

Padding
.p-safe {
	padding-top: env(safe-area-inset-top);
	padding-right: env(safe-area-inset-right);
	padding-bottom: env(safe-area-inset-bottom);
	padding-left: env(safe-area-inset-left);
}
.px-safe {
	padding-right: env(safe-area-inset-right);
	padding-left: env(safe-area-inset-left);
}
.py-safe {
	padding-top: env(safe-area-inset-top);
	padding-bottom: env(safe-area-inset-bottom);
}
.ps-safe {
	padding-inline-start: env(safe-area-inset-left);
}
.pe-safe {
	padding-inline-end: env(safe-area-inset-left);
}
.pt-safe {
	padding-top: env(safe-area-inset-top);
}
.pr-safe {
	padding-right: env(safe-area-inset-right);
}
.pb-safe {
	padding-bottom: env(safe-area-inset-bottom);
}
.pl-safe {
	padding-left: env(safe-area-inset-left);
}
Scroll padding

Same as padding, prefixed with scroll-.

Height
.min-h-screen-safe {
	min-height: calc(
		100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom))
	);
	min-height: -webkit-fill-available;
}
.max-h-screen-safe {
	max-height: calc(
		100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom))
	);
	max-height: -webkit-fill-available;
}
.h-screen-safe {
	height: calc(
		100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom))
	);
	height: -webkit-fill-available;
}
.h-safe-top {
	height: env(safe-area-inset-top);
}
.h-safe-bottom {
	height: env(safe-area-inset-bottom);
}
Width
.min-w-screen-safe {
	min-width: calc(
		100vw - (env(safe-area-inset-left) + env(safe-area-inset-right))
	);
	min-width: -webkit-fill-available;
}
.max-w-screen-safe {
	max-width: calc(
		100vw - (env(safe-area-inset-left) + env(safe-area-inset-right))
	);
	max-width: -webkit-fill-available;
}
.w-screen-safe {
	width: calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)));
	width: -webkit-fill-available;
}
.w-safe-left {
	height: env(safe-area-inset-left);
}
.w-safe-right {
	height: env(safe-area-inset-right);
}
Position
.inset-safe: {
	top: env(safe-area-inset-top);
	right: env(safe-area-inset-right);
	bottom: env(safe-area-inset-bottom);
	left: env(safe-area-inset-left);
}
.inset-x-safe: {
	right: env(safe-area-inset-right);
	left: env(safe-area-inset-left);
}
.inset-y-safe: {
	top: env(safe-area-inset-top);
	bottom: env(safe-area-inset-bottom);
}
.start-safe: {
	inset-inline-start: env(safe-area-inset-left);
}
.end-safe: {
	inset-inline-end: env(safe-area-inset-left);
}
.top-safe: {
	top: env(safe-area-inset-top);
}
.right-safe: {
	right: env(safe-area-inset-right);
}
.bottom-safe: {
	bottom: env(safe-area-inset-bottom);
}
.left-safe: {
	left: env(safe-area-inset-left);
}
Variants

Spacing-based utiltiies can be augmented with either -offset-{value} or -or-{value} suffixes.

For example, using Tailwind's default spacing scale:

.mr-safe-offset-8 {
	margin-right: calc(env(safe-area-inset-right) + 2rem);
}
.pb-safe-or-20 {
	padding-bottom: max(env(safe-area-inset-right), 5rem);
}

Troubleshooting

The height utilities may not always work as expected. Add the following global CSS for the correct behaviour:

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

@layer base {
	html,
	body,
	#root {
		height: -webkit-fill-available;
	}
}

Special Thanks…

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • safe-area-inset
  • pwa
  • height
  • width
  • 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

extra-tailwindcss-safe-area weekly downloads on npm, last 90 days: 107 weekly downloads as of Dec 5, 2026, +128% over 90 days.extra-tailwindcss-safe-areaWeekly downloads on npm · Last 90 days107downloads / week+128% over 90 days020406080100120140Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
extra-tailwindcss-safe-area weekly downloads on npm, last 90 days: 107 weekly downloads as of Dec 5, 2026, +128% over 90 days.

7/30/90-day growth

extra-tailwindcss-safe-area weekly downloads growth on npm: -2.7% over 7 days, +138% over 30 days, +128% over 90 days.extra-tailwindcss-safe-areaWeekly downloads growth on npm107downloads / week now7-day growth-3 weekly downloads-2.7%30-day growth+62 weekly downloads+138%90-day growth+60 weekly downloads+128%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
extra-tailwindcss-safe-area weekly downloads growth on npm: -2.7% over 7 days, +138% over 30 days, +128% over 90 days.

Ranking history

extra-tailwindcss-safe-area npm ranking history: currently #2615 (by weekly downloads).extra-tailwindcss-safe-areanpm ranking · by weekly downloads · Last 90 days#2615current rank#1600#1800#2000#2200#2400#2600#2800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
extra-tailwindcss-safe-area npm ranking history: currently #2615 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 131, #15 (overall #2,615)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 6, #11 (overall #111)
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 (170)
Recent weekly downloads observations for extra-tailwindcss-safe-area
Date (UTC)Weekly downloadsChange vs. previous
107-9
116-13
129-5
134+32
102+7
95-14
109-1
110+2
108+3
105+17
88-5
93-13
106+15
91—

Similar npm Tailwind plugins plugins

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