| Features | - parses every CSS rule, property and value as a browser would, on Mozilla's cssparser and selectors crates
- syntax lowering for nesting, custom media queries, high-gamut colours, logical properties and new selectors by browser targets
- automatic vendor prefixing and removal of unneeded prefixes
- minifier that merges shorthands and rules, removes default values, reduces calc() and shortens colours
- CSS modules with locally scoped classes, ids, keyframes and variables
- bundle API that inlines @import rules
- source maps
- JavaScript (Node) and Rust libraries, a standalone CLI and a WebAssembly build
- All 10 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
- All 9 features
| - extreme speed without a cache
- JavaScript, CSS, TypeScript and JSX built in
- CLI, JavaScript and Go APIs
- bundles ESM and CommonJS modules
- bundles CSS including CSS modules
- tree shaking, minification and source maps
- local server and watch mode
- plugin API with resolve and load callbacks
- All 9 features
| - SCSS and indented syntaxes
- variables, nesting, mixins and functions
- module system with @use and @forward
- built-in modules: sass:color, sass:list, sass:map, sass:math, sass:meta, sass:selector, sass:string
- flow control with @if, @each, @for and @while
- pure JavaScript npm package (sass)
- sass-embedded npm package that runs the Dart VM
- standalone command line compiler for Windows, macOS and Linux
- All 10 features
|
| Limitations | - Doesn't replace every PostCSS plugin: custom plugins may still need PostCSS alongside it
| - Doesn't compile SCSS, Sass or Less to CSS: its SCSS, Sass and Less syntaxes only parse them for other plugins
| - No TypeScript type checking: run tsc separately.
- Code splitting is still primitive.
- No support for other frontend languages such as Svelte, Vue or Angular in the core; use plugins.
- Not doing active feature development; the author makes maintenance releases.
| |