# postcss-flexbox-gap

> PostCSS plugin for single line flexbox gap

Latest version **0.0.9** (published 2022-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-flexbox-gap
pnpm add postcss-flexbox-gap
yarn add postcss-flexbox-gap
bun add postcss-flexbox-gap
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2022-02-08 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lukas Koeller |
| Maintainers | lukas.koeller |
| Keywords | postcss, css, postcss-plugin, postcss-flexbox-gap |

## Links

- npm: https://www.npmjs.com/package/postcss-flexbox-gap
- Repository: https://github.com/lukaskoeller/postcss-flexbox-gap
- Homepage: https://github.com/lukaskoeller/postcss-flexbox-gap#readme
- Issues: https://github.com/lukaskoeller/postcss-flexbox-gap/issues
- npm.io page: https://npm.io/package/postcss-flexbox-gap

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2022-02-08
- 0.0.8 — 2022-02-08
- 0.0.7 — 2022-02-08
- 0.0.6 — 2022-02-08
- 0.0.5 — 2022-02-08
- 0.0.4 — 2022-02-08
- 0.0.3 — 2022-02-08
- 0.0.2 — 2022-02-08
- 0.0.1 — 2022-02-08

## README

# postcss-flexbox-gap

[PostCSS] plugin for single line flexbox gap.

[PostCSS]: https://github.com/postcss/postcss

```css
.foo {
  --gap: 24px;
  display: flex;
  gap: var(--gap);
}
```

```css
.foo {
  --gap: 24px;
  display: flex;
  gap: var(--gap);
  --pfg-gap: var(--gap);
}

.foo > * + * {
  margin-left: var(--pfg-gap);
}
```

## Usage

**Step 1:** Install plugin:

```sh
npm install --save-dev postcss postcss-flexbox-gap
```

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.

If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.

**Step 3:** Add the plugin to plugins list:

```diff
module.exports = {
  plugins: [
+   require('postcss-flexbox-gap'),
    require('autoprefixer')
  ]
}
```

[official docs]: https://github.com/postcss/postcss#usage

---
_Source: https://npm.io/package/postcss-flexbox-gap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
