# postcss-axis

> PostCSS plugin which adds shorthands for opposite properties

Latest version **0.1.2** (published 2016-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-axis
pnpm add postcss-axis
yarn add postcss-axis
bun add postcss-axis
```

## 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.1.2 |
| Published | 2016-01-03 |
| First published | 2015-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Leonard Kinday |
| Maintainers | kinday |
| Keywords | postcss, css, postcss-plugin, shorthand, margin, padding |

## Links

- npm: https://www.npmjs.com/package/postcss-axis
- Repository: https://github.com/kinday/postcss-axis
- Issues: https://github.com/kinday/postcss-axis/issues
- npm.io page: https://npm.io/package/postcss-axis

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^5.0.2

## 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.1.2 (latest) — 2016-01-03
- 0.1.1 — 2015-11-12
- 0.1.0 — 2015-11-10
- 0.0.3 — 2015-11-10
- 0.0.2 — 2015-09-10

## README

# PostCSS Axis [![Build Status](https://travis-ci.org/kinday/postcss-axis.svg)](https://travis-ci.org/kinday/postcss-axis)

[PostCSS] plugin which adds shorthands for opposite properties.

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

```css
/* Input example */
.foo {
  margin-x: 10px;
  padding-y: 10px 20px;
  border-x: 1px solid #f00;
  border-y-color: #fff;
}
```

```css
/* Output example */
.foo {
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 10px;
  padding-bottom: 20px;
  border-left: 1px solid #f00;
  border-right: 1px solid #f00;
  border-top-color: #fff;
  border-bottom-color: #fff;
}
```

## Installation

```bash
npm install postcss-axis
```

## Usage

```js
postcss([ require('postcss-axis') ])
```

### Options

#### `trbl`
Type: `Boolean`
Default: `false`

Swaps `left` and `right` values in shorthands according to [TRBL] model.

[TRBL]: https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties

---

See [PostCSS] docs for examples for your environment.

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