{"id":13563766,"url":"https://github.com/csstools/postcss-gap-properties","last_synced_at":"2025-04-03T20:31:40.752Z","repository":{"id":47009471,"uuid":"131669051","full_name":"csstools/postcss-gap-properties","owner":"csstools","description":"Use the gap, column-gap, and row-gap shorthand properties in CSS","archived":true,"fork":false,"pushed_at":"2021-12-16T16:54:17.000Z","size":77,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-20T03:48:32.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-01T02:34:58.000Z","updated_at":"2023-01-28T04:37:02.000Z","dependencies_parsed_at":"2022-09-02T22:41:26.957Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-gap-properties","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-gap-properties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-gap-properties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-gap-properties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-gap-properties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-gap-properties/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245982127,"owners_count":20704440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:01:23.087Z","updated_at":"2025-04-03T20:31:40.492Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e⚠️ PostCSS Gap Properties was moved to \u003ca href=\"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties\"\u003e@csstools/postcss-plugins\u003c/a\u003e. ⚠️ \u003cbr\u003e\n\u003ca href=\"https://github.com/csstools/postcss-plugins/discussions/75\"\u003eRead the announcement\u003c/a\u003e\u003c/div\u003e\n\n# PostCSS Gap Properties [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![CSS Standard Status][css-img]][css-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\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```pcss\n.standard-grid {\n\tgap: 20px;\n}\n\n.spaced-grid {\n\tcolumn-gap: 40px;\n\trow-gap: 20px;\n}\n\n/* becomes */\n\n.standard-grid {\n\tgrid-gap: 20px;\n\tgap: 20px;\n}\n\n.spaced-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 [PostCSS Gap Properties] to process your CSS:\n\n```js\nimport postcssGapProperties from 'postcss-gap-properties';\n\npostcssGapProperties.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nimport postcss from 'postcss';\nimport postcssGapProperties from 'postcss-gap-properties';\n\npostcss([\n  postcssGapProperties(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Gap Properties] runs in all Node environments, with special instructions for:\n\n| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- |\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original `gap` declaration should\nremain in the CSS. By default, the original declaration is preserved.\n\n[css-img]: https://cssdb.org/badge/gap-properties.svg\n[css-url]: https://cssdb.org/#gap-properties\n[cli-img]: https://github.com/csstools/postcss-gap-properties/workflows/test/badge.svg\n[cli-url]: https://github.com/csstools/postcss-gap-properties/actions/workflows/test.yml?query=workflow/test\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/postcss-gap-properties.svg\n[npm-url]: https://www.npmjs.com/package/postcss-gap-properties\n\n[CSS Grid Layout]: https://www.w3.org/TR/css-grid-1/#gutters\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Loader]: https://github.com/postcss/postcss-loader\n[PostCSS Gap Properties]: https://github.com/jonathantneal/postcss-gap-properties\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-gap-properties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-gap-properties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-gap-properties/lists"}