
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
tailwindcss-safe-area
Advanced tools
Safe area inset utilities using the existing padding/margin syntax
Safe area inset utilities using the existing padding/margin syntax
npm install --dev tailwindcss-safe-area
Then add the plugin to your tailwind.config.js
file:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwindcss-safe-area'),
// ...
],
}
This plugin extends the padding and margin utilities.
Use the *-safe
utilities:
<header class="pt-safe">
<h1>Ciao!</h1>
</header>
<main class="pb-safe">
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Voluptate itaque blanditiis eum
aperiam velit eaque aliquam, ex harum quisquam. Et consequuntur ipsa accusamus provident quae
magni, earum suscipit laboriosam aperiam!
</p>
</main>
Utilities | Styles |
---|---|
m-safe, p-safe | env(safe-area-inset-{top, right, bottom, left}) |
mx-safe, px-safe | env(safe-area-inset-{right, left}) |
my-safe, py-safe | env(safe-area-inset-{top, bottom}) |
mt-safe, pt-safe | env(safe-area-inset-top) |
mr-safe, pr-safe | env(safe-area-inset-right) |
mb-safe, pb-safe | env(safe-area-inset-bottom) |
ml-safe, pl-safe | env(safe-area-inset-left) |
min-h-screen-safe, h-screen-safe | calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom))) |
-webkit-fill-available |
FAQs
Tailwind CSS safe area helpers
The npm package tailwindcss-safe-area receives a total of 22,911 weekly downloads. As such, tailwindcss-safe-area popularity was classified as popular.
We found that tailwindcss-safe-area demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.