To install Sass 1.32.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Deprecate passing non-
%
numbers as lightness and saturation tohsl()
,hsla()
,color.adjust()
, andcolor.change()
. This matches the CSS specification, which also requires%
for all lightness and saturation parameters. See [the Sass website][color-units] for more details. -
Deprecate passing numbers with units other than
deg
as the hue tohsl()
,hsla()
,adjust-hue()
,color.adjust()
, andcolor.change()
. Unitless numbers are still allowed here, since they're allowed by CSS. See [the Sass website][color-units] for more details. -
Improve error messages about incompatible units.
-
Properly mark some warnings emitted by
sass:color
functions as deprecation warnings.
Dart API
-
Rename
SassNumber.valueInUnits()
toSassNumber.coerceValue()
. The old name remains, but is now deprecated. -
Rename
SassNumber.coerceValueToUnit()
, a shorthand forSassNumber.coerceValue()
that takes a single numerator unit. -
Add
SassNumber.coerceToMatch()
andSassNumber.coerceValueToMatch()
, which work likeSassNumber.coerce()
andSassNumber.coerceValue()
but take aSassNumber
whose units should be matched rather than taking the units explicitly. These generate better error messages thanSassNumber.coerce()
andSassNumber.coerceValue()
. -
Add
SassNumber.convertToMatch()
andSassNumber.convertValueToMatch()
, which work likeSassNumber.coerceToMatch()
andSassNumber.coerceValueToMatch()
except they throw exceptions when converting unitless values to or from units. -
Add
SassNumber.compatibleWithUnit()
, which returns whether the number can be coerced to a single numerator unit.
See the full changelog for changes in earlier releases.