Install Dart Sass, then use the sass executable to compile .scss / .sass files to CSS. Browsers do not run Sass—you compile first, then link the CSS.
Official idea.
After install, run sass --version to confirm, then compile with sass source.scss dest.css.
Beginner path.
If you already use Node.js: npm install -g sass (or a project devDependency), then compile one small file.
Skip old compilers.
LibSass and Ruby Sass are retired. Start new work on Dart Sass only.
Syntax
First Commands
terminal
# Install (pick one path from the table below), then:
sass --version
sass --help
# Compile one file
sass styles.scss styles.css
# Official-style path example
sass source/stylesheets/index.scss build/stylesheets/index.css
# Watch and recompile on save
sass --watch styles.scss:styles.css
Pattern: install Dart Sass → verify the CLI → compile (and optionally watch) your stylesheet.
Reference
Choose an Install
Pick the path that matches your toolchain:
If you…
Try
Use Node.js / npm
npm install -g sass or a project devDependency
Want more speed on desktop OS
sass-embedded (Node) or standalone / Homebrew / Chocolatey
Prefer no Node
Standalone ZIP / .tar.gz from GitHub releases + PATH
Use Homebrew (macOS / Linux)
brew install sass/sass/sass
Use Chocolatey (Windows)
choco install sass
Want a GUI
Apps such as CodeKit (Mac) or Prepros (Mac / Windows / Linux)
Node packages: sass is pure JavaScript (widest platforms, a bit slower). sass-embedded wraps the Dart VM (faster; Windows, macOS, Linux). Both share the same JS API.
Dart Sass—the primary implementation. Install the CLI (standalone, npm, Homebrew, or Chocolatey) or a Node package (sass or sass-embedded). Avoid starting new work on LibSass or Ruby Sass.
Global CLI: npm install -g sass. Project-local: npm install --save-dev sass. Then run sass --version (or npx sass --version for a local install).
The npm sass package is pure JavaScript and a bit slower. sass-embedded wraps the Dart VM and is faster on Windows, macOS, and Linux. The CLI interface is the same.
After installing, run: sass source.scss dest.css. Example: sass styles.scss styles.css. Use sass --watch styles.scss:styles.css to recompile on save.
No. Browsers load CSS. You compile .scss or .sass to .css in development or CI, then link the CSS from HTML.
Both are maintained by the Sass team and share the JS API. sass is pure JS (widest platform support). sass-embedded is faster but targets Windows, macOS, and Linux via the Dart VM.