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

node-sass

88
130
+ 1
0
Stylus

379
390
+ 1
331
Add tool

node-sass vs Stylus: What are the differences?

What is 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..

What is Stylus? Expressive, robust, feature-rich CSS language built for nodejs. Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.

node-sass and Stylus can be primarily classified as "CSS Pre-processors / Extensions" tools.

node-sass is an open source tool with 6.49K GitHub stars and 949 GitHub forks. Here's a link to node-sass's open source repository on GitHub.

Advice on node-sass and Stylus
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 Stylus
    Be the first to leave a pro
    • 69
      Simple
    • 54
      Indented syntax
    • 38
      Efficient
    • 33
      Built for node.js
    • 32
      Open source
    • 24
      Expressive
    • 21
      Maintainable
    • 17
      Feature-rich
    • 13
      Better than CS
    • 6
      Variables
    • 5
      Functions
    • 3
      @extend directive
    • 2
      Contempt for curly brackets
    • 2
      Very clean
    • 2
      Mixins
    • 2
      Is Easy
    • 2
      No colons, semi-colons or even curly braces
    • 1
      Its unique
    • 1
      Dynamic selectors
    • 1
      Scriptable
    • 1
      Easy Efficiently
    • 1
      Transparent
    • 1
      Supports orthogonal architecture

    Sign up to add or upvote prosMake informed product decisions

    Cons of node-sass
    Cons of Stylus
    • 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 Stylus?

      Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.

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

      What companies use node-sass?
      What companies use Stylus?
      See which teams inside your own company are using node-sass or Stylus.
      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 Stylus?

      Blog Posts

      JavaScriptGitHubGit+33
      20
      1831
      Jun 19 2015 at 6:37AM

      ReadMe.io

      JavaScriptGitHubNode.js+25
      11
      1918
      What are some alternatives to node-sass and Stylus?
      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.
      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.
      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.
      See all alternatives