# PostCSS

> A tool for transforming CSS with JavaScript

Source: https://talira.ai/catalog/postcss-hhcseckv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [frontend / css / transformers](https://talira.ai/categories/frontend/css/transformers)
- Licence: MIT[^3]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source under MIT; donations through Open Collective and GitHub Sponsors.
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Plugins: yes[^4]
- Backed by: [Evil Martians](https://talira.ai/orgs/evil-martians.md)
- Creator: Andrey Sitnik
- Sponsors: CodeRabbit

PostCSS parses CSS into an abstract syntax tree and runs JavaScript plugins over it, so one pipeline can add vendor prefixes, compile future CSS for today's browsers, scope class names, lint, inline images and minify. It does nothing by itself: its value is its 200-plus plugins, among them Autoprefixer, postcss-preset-env, CSS Modules, postcss-nested and Stylelint, and the plugin API that lets you write your own. Custom parsers let it read SCSS, Less, Sass's indented syntax, CSS in HTML and Markdown, and CSS-in-JS template literals. It runs inside [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md), Parcel, Rollup, Gulp and most other build tools, or from the command line with postcss-cli, and frameworks such as [Tailwind CSS](https://talira.ai/catalog/tailwind-css-wfchsr5n.md) ship as PostCSS plugins. It's MIT-licensed, created by Andrey Sitnik and built by Evil Martians.

## Links

- Website: https://postcss.org/
- GitHub: https://github.com/postcss/postcss
- Docs: https://postcss.org/docs/

## Problems it solves

- add vendor prefixes to my CSS automatically for the browsers we support
- use modern CSS features like nesting and oklch colours and still support older browsers
- write a small build step that rewrites every url() in our stylesheets
- scope class names per component so generic names never clash
- lint our stylesheets for invalid colours and enforce team conventions in CI
- run several CSS transforms in one pass inside our existing webpack or Vite build
- write my own CSS transformation as a plugin instead of regex replacements on stylesheets
- parse SCSS, Less or CSS inside template literals so tools can analyse and rewrite it
- process stylesheets from npm scripts on the command line without a bundler

## Features

- CSS parser and stringifier with an AST API for plugins
- more than 200 plugins, including Autoprefixer, postcss-preset-env, CSS Modules, postcss-nested and Stylelint
- custom syntaxes for SCSS, Sass, Less, SugarSS, HTML, Markdown and CSS-in-JS
- postcss-safe-parser finds and fixes CSS syntax errors
- postcss-cli for the command line and npm scripts
- integrations for webpack, Parcel, Gulp, Rollup, Grunt, Svelte and more
- source maps
- postcss-js applies PostCSS plugins to CSS-in-JS style objects
- documented plugin and runner guidelines for writing your own

## Limitations

- Doesn't compile SCSS, Sass or Less to CSS: its SCSS, Sass and Less syntaxes only parse them for other plugins[^1]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.60 out of 1.
Signals: backing 0.85, extensibility 0.40.

- backed by Evil Martians
- created by Andrey Sitnik
- sponsored by CodeRabbit
- used by Wikipedia, Twitter, Alibaba, JetBrains
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Lightning CSS](https://talira.ai/catalog/lightning-css-n8fjay3q.md): An extremely fast CSS parser, transformer, bundler, and minifier
- [Sass](https://talira.ai/catalog/sass-q2bnr7qw.md): CSS with superpowers

## Sources

[^1]: https://github.com/postcss/postcss/blob/main/README.md (checked 22 Nov 2026)
[^2]: https://postcss.org/ (checked 22 Nov 2026)
[^3]: https://github.com/postcss/postcss/blob/main/LICENSE (checked 22 Nov 2026)
[^4]: https://postcss.org/docs/postcss-plugins (checked 22 Nov 2026)
