Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-safe-area

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-safe-area - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

index.js

70

package.json
{
"name": "tailwindcss-safe-area",
"version": "0.2.1",
"main": "src/index.js",
"license": "MIT",
"repository": "https://github.com/mvllow/tailwindcss-safe-area",
"keywords": [
"tailwindcss",
"safe-area-inset",
"margin",
"padding"
],
"prettier": {
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"scripts": {
"prepublishOnly": "node scripts/build.js"
},
"devDependencies": {
"autoprefixer": "^10.2.0",
"clean-css": "^4.2.1",
"postcss": "^8.2.2",
"tailwindcss": "^2.0.2"
}
"name": "tailwindcss-safe-area",
"version": "0.2.2",
"description": "Tailwind CSS safe area helpers",
"license": "MIT",
"repository": "mvllow/tailwindcss-safe-area",
"funding": "https://github.com/sponsors/mvllow",
"author": {
"name": "mvllow",
"email": "mvllow@icloud.com"
},
"main": "index.js",
"scripts": {
"test": "xo",
"release": "np"
},
"keywords": [
"tailwindcss",
"tailwindcss-plugin",
"safe-area-inset",
"pwa",
"margin",
"padding"
],
"devDependencies": {
"autoprefixer": "^10.4.1",
"np": "^7.6.0",
"postcss": "^8.4.5",
"prettier": "^2.5.1",
"tailwindcss": "^3.0.8",
"xo": "^0.47.0"
},
"prettier": {
"bracketSpacing": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"useTabs": true
},
"xo": {
"prettier": true,
"ignores": [
"demo"
]
}
}
# tailwindcss-safe-area
Safe area inset utilities using the existing padding/margin syntax
Safe area inset utilities extending margin, padding, and height

@@ -16,9 +16,4 @@ ## Getting started

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

@@ -34,13 +29,9 @@ ```

```html
<header class="pt-safe">
<h1>Ciao!</h1>
</header>
<header class="pt-safe">...</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 class="px-safe">
<p>ciao</p>
</main>
<footer class="pb-safe">...</footer>
```

@@ -61,1 +52,10 @@

| | `-webkit-fill-available` |
_Tip: To extend html content behind the safe area, set `viewport-fit=cover`_
```html
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc