This built-in module is available from the URL sass:meta.
call($function, $args...)
This function is also available as a global function named call().
content-exists()
This function is also available as a global function named content-exists().
feature-exists($feature)
This function is also available as a global function named feature-exists().
function-exists($name, $module: null)
This function is also available as a global function named function-exists().
-
If
$nameis not a string, throw an error. -
If
$moduleis null:- Return whether resolving a function named
$namereturns null.
- Return whether resolving a function named
-
Otherwise, if
$moduleisn't a string, throw an error. -
Otherwise, let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return whether
use's module contains a function named$name.
get-function($name, $css: false, $module: null)
This function is also available as a global function named get-function().
-
If
$nameis not a string, throw an error. -
If
$moduleis null:-
If
$cssis falsey:- Return the result of resolving a function named
$name. If this returns null, throw an error.
- Return the result of resolving a function named
-
Otherwise, return a function object that takes arguments
($args...). When this function is called:-
If
$argshas any keyword arguments, throw an error. -
Return a plain CSS function string with the name
$nameand the arguments$args.
-
-
-
Otherwise:
-
If
$moduleisn't a string, throw an error. -
If
$cssis truthy, throw an error. -
Let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return
use's module's function named$name, or throw an error if no such function exists.
-
global-variable-exists($name, $module: null)
This function is also available as a global function named global-variable-exists().
-
If
$nameis not a string, throw an error. -
If
$moduleis null:- Return whether resolving a variable named
$name, ignoring local scopes, returns null.
- Return whether resolving a variable named
-
Otherwise, if
$moduleisn't a string, throw an error. -
Otherwise, let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return whether
use's module contains a function named$name.
inspect($value)
This function is also available as a global function named inspect().
keywords($args)
This function is also available as a global function named keywords().
mixin-exists($name, $module: null)
This function is also available as a global function named mixin-exists().
-
If
$nameis not a string, throw an error. -
If
$moduleis null:- Return whether resolving a mixin named
$namereturns null.
- Return whether resolving a mixin named
-
Otherwise, if
$moduleisn't a string, throw an error. -
Otherwise, let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return whether
use's module contains a mixin named$name.
module-functions($module)
This function is also available as a global function named module-functions().
-
If
$moduleis not a string, throw an error. -
Let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return a map whose keys are the names of functions in
use's module and whose values are the corresponding functions.
module-variables($module)
This function is also available as a global function named module-variables().
-
If
$moduleis not a string, throw an error. -
Let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return a map whose keys are the names (without
$) of variables inuse's module and whose values are the corresponding values.
type-of($value)
This function is also available as a global function named type-of().
variable-exists($name, $module: null)
This function is also available as a global function named variable-exists().
-
If
$nameis not a string, throw an error. -
If
$moduleis null:- Return whether resolving a variable named
$namereturns null.
- Return whether resolving a variable named
-
Otherwise, if
$moduleisn't a string, throw an error. -
Otherwise, let
usebe the@userule in the current source file whose namespace is equal to$module. If no such rule exists, throw an error. -
Return whether
use's module contains a mixin named$name.
load-css($url, $with: null)
-
If
$urlisn't a string, throw an error. -
Let
configbe a configuration whose variable names and values are given by$withif$withisn't null, or the empty configuration otherwise. -
Let
modulebe the result of loading$urlwithconfig. -
Let
cssbe the result of resolvingmodule's extensions.This means that, if a module loaded by
load-css()shares some dependencies with the entrypoint module, those dependencies' CSS will be included twice. -
Treat
cssas though it were the contents of the mixin.