sass library

We strongly recommend importing this library with the prefix sass.

Classes

AsyncCallable
An interface functions and mixins that can be invoked from Sass by passing in arguments. [...]
AsyncImporter
An interface for importers that resolves URLs in @imports to the contents of Sass files. [...]
Callable
An interface functions and mixins that can be invoked from Sass by passing in arguments. [...]
FilesystemImporter
An importer that loads files from a load path on the filesystem.
Importer
An interface for importers that resolves URLs in @imports to the contents of Sass files. [...]
ImporterResult
The result of importing a Sass stylesheet, as returned by Importer.load.
ListSeparator
An enum of list separator types.
Logger
An interface for loggers that print messages produced by Sass stylesheets. [...]
OutputStyle
An enum of generated CSS styles.
PackageImporter
An importer that loads stylesheets from package: imports.
SassArgumentList
A SassScript argument list. [...]
SassBoolean
A SassScript boolean value.
SassColor
A SassScript color.
SassFunction
A SassScript function reference. [...]
SassList
A SassScript list.
SassMap
A SassScript map.
SassNumber
A SassScript number. [...]
SassString
A SassScript string. [...]
Syntax
An enum of syntaxes that Sass can parse.
Value
A SassScript value. [...]

Properties

sassFalse SassBoolean
The SassScript false value.
read-only
sassNull Value
The SassScript null value.
read-only
sassTrue SassBoolean
The SassScript true value.
read-only

Functions

compile(String path, { bool color: false, Logger logger, Iterable<Importer> importers, Iterable<String> loadPaths, SyncPackageResolver packageResolver, Iterable<Callable> functions, OutputStyle style, void sourceMap(SingleMapping map) }) String
Loads the Sass file at path, compiles it to CSS, and returns the result. [...]
compileAsync(String path, { bool color: false, Logger logger, Iterable<AsyncImporter> importers, SyncPackageResolver packageResolver, Iterable<String> loadPaths, Iterable<AsyncCallable> functions, OutputStyle style, void sourceMap(SingleMapping map) }) Future<String>
Like compile, except it runs asynchronously. [...]
compileString(String source, { Syntax syntax, bool color: false, Logger logger, Iterable<Importer> importers, SyncPackageResolver packageResolver, Iterable<String> loadPaths, Iterable<Callable> functions, OutputStyle style, Importer importer, dynamic url, void sourceMap(SingleMapping map), bool indented: false }) String
Compiles source to CSS and returns the result. [...]
compileStringAsync(String source, { Syntax syntax, bool color: false, Logger logger, Iterable<AsyncImporter> importers, SyncPackageResolver packageResolver, Iterable<String> loadPaths, Iterable<AsyncCallable> functions, OutputStyle style, AsyncImporter importer, dynamic url, void sourceMap(SingleMapping map), bool indented: false }) Future<String>
Like compileString, except it runs asynchronously. [...]

Exceptions / Errors

SassException
An exception thrown by Sass.