Sass Built-In Modules
Sass provides many built-in modules which contain useful functions (and the occasional mixin). These modules can be loaded with the @use rule like any user-defined stylesheet, and their functions can be called.
All built-in module URLs begin with sass: to indicate that they're part of Sass itself.
Sass provides the following built-in modules:
-
The
sass:colormodule generates new colors based on existing ones, making it easy to build color themes. -
The
sass:listmodule lets you access and modify values in lists. -
The
sass:mapmodule makes it possible to look up the value associated with a key in a map, and much more. -
The
sass:mathmodule provides functions that operate on numbers. -
The
sass:metamodule exposes the details of Sass’s inner workings. -
The
sass:selectormodule provides access to Sass’s powerful selector engine. -
The
sass:stringmodule makes it easy to combine, search, or split apart strings.
See official Sass documentation for more details.