# postcss-js

> PostCSS for CSS-in-JS and styles in JS objects

Latest version **5.1.0** (published 2026-02-13) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2026-02-13 |
| First published | 2015-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20 \|\| ^22 \|\| >= 24 |
| Dependencies | 0 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 668 |
| Author | Andrey Sitnik |
| Maintainers | ai |
| Keywords | postcss, postcss-runner, js, inline, react, css, cssinjs |

## Links

- npm: https://www.npmjs.com/package/postcss-js
- Repository: https://github.com/postcss/postcss-js
- Homepage: https://github.com/postcss/postcss-js#readme
- Issues: https://github.com/postcss/postcss-js/issues
- Funding: https://opencollective.com/postcss/
- npm.io page: https://npm.io/package/postcss-js

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 5.1.0 (latest) — 2026-02-13
- 5.0.3 — 2025-12-21
- 5.0.2 — 2025-12-08
- 5.0.1 — 2025-09-29
- 5.0.0 — 2025-09-16
- 4.1.0 — 2025-09-16
- 4.0.1 — 2023-02-08
- 4.0.0 — 2022-01-05
- 3.0.3 — 2020-11-05
- 3.0.2 — 2020-11-05
- 3.0.1 — 2020-09-27
- 3.0.0 — 2020-09-15
- 2.0.3 — 2019-09-08
- 2.0.2 — 2019-07-05
- 2.0.1 — 2019-04-05
- … 9 more at https://npm.io/package/postcss-js/versions

## README

# PostCSS JS

<img align="right" width="135" height="95"
     title="Philosopher’s stone, logo of PostCSS"
     src="https://postcss.org/logo-leftp.svg">

[PostCSS] for CSS-in-JS and styles in JS objects.

For example, to use [Stylelint] or [RTLCSS] plugins in your workflow.

<a href="https://evilmartians.com/?utm_source=postcss-js">
  <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
       alt="Sponsored by Evil Martians" width="236" height="54">
</a>

[Stylelint]: https://github.com/stylelint/stylelint
[PostCSS]:   https://github.com/postcss/postcss
[RTLCSS]:    https://github.com/MohammadYounes/rtlcss


## Docs
Read full docs **[here](https://github.com/postcss/postcss-js#readme)**.

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