{"name":"postcss-gap-properties","description":"Use the gap, column-gap, and row-gap shorthand properties in CSS","version":"7.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=20.19.0"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-gap-properties"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["columns","css","gaps","grids","layouts","postcss","postcss-plugin","prefixes","rows","shorthands"],"gitHead":"3fe5a07576379984b3612ad5daca4c0b14e5225b","_id":"postcss-gap-properties@7.0.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-PSDF2QoZMRUbsINvXObQgxx4HExRP85QTT8qS/YN9fBsCPWCqUuwqAD6E6PNp0BqL/jU1eyWUBORaOK/J/9LDA==","shasum":"dfce0e627461996b1ced7109c8594f28cca342ec","tarball":"http://registry-npm.ywwl.com/postcss-gap-properties/download/postcss-gap-properties-7.0.0.tgz","fileCount":6,"unpackedSize":5529,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHxa4RTGU6UxB7l01WolSVHBloEOA1E4HHLJBVb40o0ZAiBat3GnyX5pBP607xh1mO9hTEUj+lpmJiMRsSis5Jy6YA=="}],"size":2572,"noattachment":false,"key":"/postcss-gap-properties/-/postcss-gap-properties-7.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-gap-properties_7.0.0_1768375367120_0.8216914889152624"},"_hasShrinkwrap":false,"readme":"# PostCSS Gap Properties [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install postcss-gap-properties --save-dev`\n\n[PostCSS Gap Properties] lets you use the `gap`, `column-gap`, and `row-gap`\nshorthand properties in CSS, following the [CSS Grid Layout] specification.\n\n```css\n.standard-grid {\n\tdisplay: grid;\n\tgap: 20px;\n}\n\n.spaced-grid {\n\tdisplay: grid;\n\tcolumn-gap: 40px;\n\trow-gap: 20px;\n}\n\n/* becomes */\n\n.standard-grid {\n\tdisplay: grid;\n\tgrid-gap: 20px;\n\tgap: 20px;\n}\n\n.spaced-grid {\n\tdisplay: grid;\n\tgrid-column-gap: 40px;\n\tcolumn-gap: 40px;\n\tgrid-row-gap: 20px;\n\trow-gap: 20px;\n}\n```\n\n## Usage\n\nAdd [PostCSS Gap Properties] to your project:\n\n```bash\nnpm install postcss postcss-gap-properties --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssGapProperties = require('postcss-gap-properties');\n\npostcss([\n\tpostcssGapProperties(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original notation\nis preserved. By default, it is preserved.\n\n```js\npostcssGapProperties({ preserve: false })\n```\n\n```css\n.standard-grid {\n\tdisplay: grid;\n\tgap: 20px;\n}\n\n.spaced-grid {\n\tdisplay: grid;\n\tcolumn-gap: 40px;\n\trow-gap: 20px;\n}\n\n/* becomes */\n\n.standard-grid {\n\tdisplay: grid;\n\tgrid-gap: 20px;\n}\n\n.spaced-grid {\n\tdisplay: grid;\n\tgrid-column-gap: 40px;\n\tgrid-row-gap: 20px;\n}\n```\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#gap-properties\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-gap-properties\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Gap Properties]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties\n[CSS Grid Layout]: https://www.w3.org/TR/css-grid-1/#gutters\n","publish_time":1768375367248,"_cnpm_publish_time":1768375367248,"dist-tags":{"latest":"7.0.0"}}