dart-sass
Advanced tools
Changelog
1.25.0
Add functions to the built-in "sass:math" module.
clamp($min, $number, $max)
. Clamps $number
in between $min
and $max
.
hypot($numbers...)
. Given n numbers, outputs the length of the
n-dimensional vector that has components equal to each of the inputs.
Exponential. All inputs must be unitless.
log($number)
or log($number, $base)
. If no base is provided, performs
a natural log.pow($base, $exponent)
sqrt($number)
Trigonometric. The input must be an angle. If no unit is given, the input is
assumed to be in rad
.
cos($number)
sin($number)
tan($number)
Inverse trigonometric. The output is in deg
.
acos($number)
. Input must be unitless.asin($number)
. Input must be unitless.atan($number)
. Input must be unitless.atan2($y, $x)
. $y
and $x
must have compatible units or be unitless.Add the variables $pi
and $e
to the built-in "sass:math" module.
constructor.value
fields on value objects now match their Node Sass
equivalents.Changelog
1.24.5
Changelog
1.24.4
Changelog
1.24.3
sass --version
would crash for certain executable
distributions.Changelog
1.24.2
Changelog
1.24.1
@use
rule and an @import
rule.Changelog
1.24.0
Add an optional with
clause to the @forward
rule. This works like the
@use
rule's with
clause, except that @forward ... with
can declare
variables as !default
to allow downstream modules to reconfigure their
values.
Support configuring modules through @import
rules.
Changelog
1.23.5
Support inline comments in the indented syntax.
When an overloaded function receives the wrong number of arguments, guess which overload the user actually meant to invoke, and display the invalid argument error for that overload.
When @error
is used in a function or mixin, print the call site rather than
the location of the @error
itself to better match the behavior of calling a
built-in function that throws an error.