tailwindcss-safe-area-capacitor weekly downloads statistics
By mahyarmirrashed · npm · Tailwind plugins
Tailwind CSS safe area helpers for capacitor-plugin-safe-area.
tailwindcss-safe-area-capacitor has 3,181 recorded weekly downloads on npm, a decrease of 71.1% over the past 30 days.
It ranks #1195 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -74.8%.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
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
Then add the plugin to your tailwind.config.js file:
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
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:
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:
Provided utilities
| Utilities | Styles |
| m-safe, p-safe | var(--safe-area-inset-{top, right, bottom, left}) | | mx-safe, px-safe | var(--safe-area-inset-{right, left}) | | my-safe, py-safe | var(--safe-area-inset-{top, bottom}) | | mt-safe, pt-safe | var(--safe-area-inset-top) | | mr-safe, pr-safe | var(--safe-area-inset-right) | | mb-safe, pb-safe | var(--safe-area-inset-bottom) | | ml-safe, pl-safe | var(--safe-area-inset-left) | | min-h-screen-safe, h-screen-safe | calc(100vh - (var(--safe-area-inset-top) + var(--safe-area-inset-bottom))) -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
Examples with generated output
Base Utility Example
This applies a top padding to the header that is equal to the safe area inset at the top. The generated CSS would be:
Offset Utility Example
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:
Or Utility Example
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:
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:
Description from the npm listing.
- tailwindcss
- tailwindcss-plugin
- tailwindcss-safe-area-capacitor
- safe-area-inset
- pwa
- margin
- padding
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
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 log 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 (543)Similar npm Tailwind plugins plugins
All 20 tailwindcss-safe-area-capacitor alternativesData 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 19, 2026. See the methodology.