# @csstools/postcss-logical-overflow

> Use logical overflow properties and values in CSS

Latest version **3.0.0** (published 2026-01-14) · MIT-0 license · 0 weekly downloads

## Install

```sh
npm install @csstools/postcss-logical-overflow
pnpm add @csstools/postcss-logical-overflow
yarn add @csstools/postcss-logical-overflow
bun add @csstools/postcss-logical-overflow
```

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-01-14 |
| First published | 2023-10-31 |
| Weekly downloads | 0 |
| License | MIT-0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1052 |
| Maintainers | jonathantneal, alaguna, romainmenke |
| Keywords | css, logical, overflow, postcss-plugin |

## Links

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

## 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

- 3.0.0 (latest) — 2026-01-14
- 2.0.0 — 2024-08-03
- 1.0.1 — 2023-12-15
- 1.0.0 — 2023-10-31

## README

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

`npm install @csstools/postcss-logical-overflow --save-dev`

[PostCSS Logical Overflow] lets you use `overflow-inline` and `overflow-block` properties following the [CSS Overflow Specification].

```css
.inline {
	overflow-inline: clip;
}

.block {
	overflow-block: scroll;
}

/* becomes */

.inline {
	overflow-x: clip;
}

.block {
	overflow-y: scroll;
}
```

## Usage

Add [PostCSS Logical Overflow] to your project:

```bash
npm install postcss @csstools/postcss-logical-overflow --save-dev
```

Use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssLogicalOverflow = require('@csstools/postcss-logical-overflow');

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



## Options

### inlineDirection

The `inlineDirection` option allows you to specify the direction of the inline axe. The default value is `left-to-right`, which would match any latin language.

**You should tweak this value so that it is specific to your language and writing mode.**

```js
postcssLogicalOverflow({
	inlineDirection: 'top-to-bottom'
})
```

```css
.inline {
	overflow-inline: clip;
}

.block {
	overflow-block: scroll;
}

/* becomes */

.inline {
	overflow-y: clip;
}

.block {
	overflow-x: scroll;
}
```

Each direction must be one of the following:

- `top-to-bottom`
- `bottom-to-top`
- `left-to-right`
- `right-to-left`

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

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Logical Overflow]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-overflow
[CSS Overflow Specification]: https://www.w3.org/TR/css-overflow-3/#overflow-control

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