# stylelint-config-outside-in-order

> Stylelint config that sorts related properties together thinking outside and outstanding first.

Latest version **0.3.0** (published 2026-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylelint-config-outside-in-order
pnpm add stylelint-config-outside-in-order
yarn add stylelint-config-outside-in-order
bun add stylelint-config-outside-in-order
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2026-05-30 |
| First published | 2019-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Marten Schälicke |
| Maintainers | emm-ess |
| Keywords | stylelint, stylelint-config, stylelint-order, stylelint-plugin, css, property, order |

## Links

- npm: https://www.npmjs.com/package/stylelint-config-outside-in-order
- Repository: https://github.com/emm-ess/stylelint-config-outside-in-order
- Homepage: https://github.com/emm-ess/stylelint-config-outside-in-order#readme
- Issues: https://github.com/emm-ess/stylelint-config-outside-in-order/issues
- npm.io page: https://npm.io/package/stylelint-config-outside-in-order

## Dependencies (1)

- [stylelint-order](https://npm.io/package/stylelint-order.md) ^8.1.1

## 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.3.0 (latest) — 2026-05-30
- 0.2.0 — 2025-10-28
- 0.1.1 — 2025-04-01
- 0.1.0 — 2021-12-23
- 0.0.2 — 2020-11-07
- 0.0.1 — 2019-02-14

## README

# stylelint-config-outside-in-order

Stylelint config that sorts related properties together thinking outside and outstanding first. Of course that's highly opinionated.

Properties are grouped as follows:

1. Positioning & layout
2. Box Model
3. Visual (including borders)
4. Typography
5. Animation
6. Misc

```css
.declaration-order {
  /* Positioning */
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;

  /* Layout */
  display: block;
  flex-direction: column;

  /* Box Model */
  width: 100px;
  height: 100px;
  margin: 10px;
  padding: 10px;

  /* Visual */
  color: #888;
  background-color: #eee;
  border: 1px solid #888;
  border-radius: 4px;
  opacity: 1;

  /* Typography */
  font: normal 16px Helvetica, sans-serif;
  line-height: 1.3;
  text-align: center;

  /* Animation */
  transition: all 1s;

  /* Misc */
  user-select: none;
}
```

## Usage

1.  Add Stylelint and this package to your project:

```bash
npm install --save-dev stylelint stylelint-config-outside-in-order
```

2.  Add this package to the end of the extends array inside your Stylelint configuration:

```javascript
{
  "extends": [
    // "stylelint-config-standard",
    "stylelint-config-outside-in-order"
  ]
}
```

## Credits

inspired by [stylelint-config-rational-order](https://github.com/constverum/stylelint-config-rational-order) and several discussions around the web & with colleagues

---
_Source: https://npm.io/package/stylelint-config-outside-in-order · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
