Install Sass
ApplicationsApplications permalink
There are a good many applications that will get you up and runningwith Sass in a few minutes for Mac, Windows, and Linux. You can downloadmost of the applications for free but a few of them are paid apps(and totally worth it).
LibrariesLibraries permalink
The Sass team maintains two Node.js packages for Sass, both of whichsupportthe standard JavaScriptAPI. Thesass
package is pureJavaScript, which is a little slower but can be installed on all platformsNode.js supports. Thesass-embedded
package wraps aJSAPI around theDartVM, so it’s faster but only supports Windows, MacOS, and Linux.
There are also community-maintained wrappers for the following languages:
- Ruby
- Swift
- Java, including:
- AGradleplugin.
- A lightweightMaven plugin wrapping the SassCLI. It specifiesthe Sass version to use. TheCLI arguments are passed-in with an
<args>
list. - A batteries-includedMaven plugin wrapping DartSass. It bundles a fixed
dart-sass
version. TheCLI arguments are exposed as Maven parameters.
Command LineCommand Line permalink
When you install Sass on the command line, you’ll be able to run thesass
executable to compile.sass
and.scss
files to.css
files.For example:
sass source/stylesheets/index.scss build/stylesheets/index.css
First install Sass using one of the options below, then runsass --version
to be sure it installed correctly. If it did, this willinclude1.86.0
.You can also runsass --help
for more informationabout the command-line interface.
Once it’s all set up,go and play. If you’re brand new toSass we’ve set up some resources to help you learn pretty darn quick.
- Install Anywhere (Standalone)
You can install Sass on Windows, Mac, or Linux by downloading the package foryour operating systemfromGitHub andadding it toyour
PATH
. That’s all—there are noexternal dependencies and nothing else you need to install.- Install Anywhere (npm)
If you use Node.js, you can also install Sass usingnpm by running
npm install -g sass
However, please note that this will install the pure JavaScriptimplementation of Sass, which runs somewhat slower than the other optionslisted here. But it has the same interface, so it’ll be easy to swap inanother implementation later if you need a bit more speed!
- Install on Windows (Chocolatey)
If you use theChocolatey package manager forWindows, you can install Dart Sass by running
choco install sass
- Install on MacOS X or Linux (Homebrew)
If you usethe Homebrew package manager for MacOS X orLinux, you can install Dart Sass by running
brew install sass/sass/sass