# @csstools/postcss-fit-tolerance-property

> Use the fit tolerance property in css

Latest version **1.0.1** (published 2026-09-06) · MIT-0 license · 0 weekly downloads

## Install

```sh
npm install @csstools/postcss-fit-tolerance-property
pnpm add @csstools/postcss-fit-tolerance-property
yarn add @csstools/postcss-fit-tolerance-property
bun add @csstools/postcss-fit-tolerance-property
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-09-06 |
| First published | 2026-08-15 |
| Weekly downloads | 0 |
| License | MIT-0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1053 |
| Maintainers | jonathantneal, alaguna, romainmenke |
| Keywords | fallback, fit-tolerance, flow-tolerance, postcss-plugin |

## Links

- npm: https://www.npmjs.com/package/@csstools/postcss-fit-tolerance-property
- Repository: https://github.com/csstools/postcss-plugins
- Homepage: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-fit-tolerance-property#readme
- Issues: https://github.com/csstools/postcss-plugins/issues
- Funding: https://github.com/sponsors/csstools
- npm.io page: https://npm.io/package/@csstools/postcss-fit-tolerance-property

## Recent versions

- 1.0.1 (latest) — 2026-09-06
- 1.0.0 — 2026-08-15

## README

# PostCSS Fit Tolerance Property [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]

`npm install @csstools/postcss-fit-tolerance-property --save-dev`

[PostCSS Fit Tolerance Property] lets you use the `fit-tolerance` property following the [CSS Grid Specification].  
This initially shipped in some browser versions as `flow-tolerance`.

```css
.foo {
	fit-tolerance: 2em;
}

/* becomes */

.foo {
	flow-tolerance: 2em;
	fit-tolerance: 2em;
}
```

## Usage

Add [PostCSS Fit Tolerance Property] to your project:

```bash
npm install postcss @csstools/postcss-fit-tolerance-property --save-dev
```

Use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssFitToleranceProperty = require('@csstools/postcss-fit-tolerance-property');

postcss([
	postcssFitToleranceProperty(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
```



## Options

### preserve

The `preserve` option determines whether the original notation
is preserved. By default, it is preserved.

```js
postcssFitToleranceProperty({ preserve: false })
```

```css
.foo {
	fit-tolerance: 2em;
}

/* becomes */

.foo {
	flow-tolerance: 2em;
}
```

[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[css-url]: https://cssdb.org/#fit-tolerance-property
[discord]: https://discord.gg/bUadyRwkJS
[npm-url]: https://www.npmjs.com/package/@csstools/postcss-fit-tolerance-property

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Fit Tolerance Property]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-fit-tolerance-property
[CSS Grid Specification]: https://drafts.csswg.org/css-grid-3/#placement-tolerance

---
_Source: https://npm.io/package/@csstools/postcss-fit-tolerance-property · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
