Scroll to navigation

DART-SASS(1) User Commands DART-SASS(1)

NAME

dart-sass, sass - Dart implementation of Sass, a CSS extension language

SYNOPSIS

dart-sass [options] input.scss [output.css]
dart-sass [options] input.scss:output.css [input/:output/]

DESCRIPTION

Sass is a stylesheet language that is compiled to CSS. It allows authors to use variables, nested rules, mixins and functions, all with a fully CSS-compatible syntax.

dart-sass is the reference implementation of the language, and the only one still maintained upstream. It is installed under this name and, under the generic name, sass(1).

With no output.css the compiled CSS is written to standard output. When input.scss and output.css are given as a single input:output argument, several pairs may be compiled in one run, and a directory pair compiles every stylesheet inside it.

OPTIONS

Input and Output

Read the stylesheet from standard input.
Use the indented syntax for input from standard input.
A path to use when resolving imports. May be passed multiple times.
Built-in importer to use for pkg: URLs; the only value is node, which loads files the way Node.js package resolution does.
Output style: expanded (the default) or compressed.
Emit a @charset or BOM for CSS with non-ASCII characters. Defaults to on.
When an error occurs, emit a stylesheet describing it. Defaults to on when compiling to a file.
Only compile out-of-date stylesheets.

Source Maps

Whether to generate source maps. Defaults to on.
How to link from source maps to source files: relative (the default) or absolute.
Embed source file contents in source maps.
Embed source map contents in the CSS.

Warnings

Do not print warnings.
Do not print compiler warnings from dependencies. Stylesheets loaded through load paths count as dependencies.
Print all deprecation warnings, even when they are repetitive.
Deprecations to treat as errors. A Sass version may also be passed, to include every behaviour deprecated in or before it.
Deprecations to ignore.
Opt in to a deprecation early.

Other

Watch stylesheets and recompile them when they change.
Check for changes manually rather than using a native watcher. Only valid together with --watch.
Do not compile more files once an error has been encountered.
Run an interactive SassScript shell.
Whether to use terminal colours for messages.
Whether to use Unicode characters for messages.
Print full Dart stack traces for exceptions.
Print usage information.
Print the version of Dart Sass.

SEE ALSO

The Sass documentation is available at https://sass-lang.com/documentation/.

AUTHOR

Dart Sass is developed by the Sass team at Google LLC. This manual page was written for the Debian project by Emfox Zhou.

2026-09-29 dart-sass 1.105.0