Need advice about which tool to choose?Ask the StackShare community!

node-sass

86
119
+ 1
0
PostCSS

517
455
+ 1
50
Add tool

node-sass vs PostCSS: What are the differences?

node-sass: Node.js bindings to libsass *. It is a library that provides binding for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass It allows you to natively compile .scss files to css at incredible speed and automatically via a connect middleware.; *PostCSS:** Transform CSS with JS plugins. PostCSS is a tool for transforming CSS with JS plugins. These plugins can support variables and mixins, transpile future CSS syntax, inline images, and more.

node-sass and PostCSS belong to "CSS Pre-processors / Extensions" category of the tech stack.

node-sass and PostCSS are both open source tools. It seems that PostCSS with 21.2K GitHub stars and 1.16K forks on GitHub has more adoption than node-sass with 6.49K GitHub stars and 949 GitHub forks.

Advice on node-sass and PostCSS
awesomebanana2018
Needs advice
on
StylusStylusSassSass
and
PostCSSPostCSS

Originally, I was going to start using Sass with Parcel, but then I learned about Stylus, which looked interesting because it can get the property values of something directly instead of through variables, and PostCSS, which looked interesting because you can customize your Pre/Post-processing. Which tool would you recommend?

See more
Replies (1)
Recommends
PostCSSPostCSS

You're not correct with saying "vs Postcss". You're using Less/Sass/Stylus/... to produce "CSS" (maybe extended means it has some future features) and then in any case PostCSS will play (it is shipped with Parcel/NextJS/CRA/...)

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of node-sass
Pros of PostCSS
    Be the first to leave a pro
    • 21
      The "babel" of CSS
    • 15
      Customizable
    • 8
      Autoprefixer
    • 2
      Variables
    • 1
      PostCSS Flexbugs Fixes
    • 1
      0
    • 1
      Mixins
    • 1
      CSS MQPacker

    Sign up to add or upvote prosMake informed product decisions

    Cons of node-sass
    Cons of PostCSS
    • 1
      Needs Microsoft BuildTools and Python 2.7 to install
      Be the first to leave a con

      Sign up to add or upvote consMake informed product decisions

      What is node-sass?

      It is a library that provides binding for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass. It allows you to natively compile .scss files to css at incredible speed and automatically via a connect middleware.

      What is PostCSS?

      PostCSS is a tool for transforming CSS with JS plugins. These plugins can support variables and mixins, transpile future CSS syntax, inline images, and more.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use node-sass?
      What companies use PostCSS?
      See which teams inside your own company are using node-sass or PostCSS.
      Sign up for Private StackShareLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with node-sass?
      What tools integrate with PostCSS?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to node-sass and PostCSS?
      Sass
      Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.
      Webpack
      A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
      Compass
      The compass core framework is a design-agnostic framework that provides common code that would otherwise be duplicated across other frameworks and extensions.
      Animate.css
      It is a bunch of cool, fun, and cross-browser animations for you to use in your projects. Great for emphasis, home pages, sliders, and general just-add-water-awesomeness.
      Less
      Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.
      See all alternatives