NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #4591 most downloaded on pub.dev
Additional APIs for Dart Sass.
Latest stable
18.5.0
Last release 11 days ago
11 Nov 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 56 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
177 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
The Interpolation() constructor now takes an additional List spans argument which cover the #{} for expression elements.
The Interpolation() constructor now takes an additional List<FileSpan?>
spans argument which cover the #{} for expression elements.
Added a new Interpolation.plain() constructor for interpolations that only
contain a single plain-text string.
Added Interpolation.spanForElement() which returns the span that covers a
single element of contents.
InterpolationBuffer.add() now takes a FileSpan that covers the #{}
around the expression.
* No user-visible changes.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
* No user-visible changes.
* No user-visible changes.
Breaking change: Remove the SassApiColor.hasCalculatedRgb and .hasCalculatedHsl extension methods. These can now be determined by checking if SassColo…
Breaking change: Remove the SassApiColor.hasCalculatedRgb and
.hasCalculatedHsl extension methods. These can now be determined by checking
if SassColor.space is KnownColorSpace.rgb or KnownColorSpace.hsl,
respectively.
Added a ColorSpace class which represents the various color spaces defined
in the CSS spec.
Added SassColor.space which returns a color's color space.
Added SassColor.channels and .channelsOrNull which returns a list
of channel values, with missing channels converted to 0 or exposed as null,
respectively.
Added SassColor.isLegacy, .isInGamut, .channel(), .isChannelMissing(),
.isChannelPowerless(), .toSpace(), .toGamut(), .changeChannels(), and
.interpolate() which do the same thing as the Sass functions of the
corresponding names.
SassColor.rgb() now allows out-of-bounds and non-integer arguments.
SassColor.hsl() and .hwb() now allow out-of-bounds arguments.
Added SassColor.hwb(), .srgb(), .srgbLinear(), .displayP3(),
.a98Rgb(), .prophotoRgb(), .rec2020(), .xyzD50(), .xyzD65(),
.lab(), .lch(), .oklab(), .oklch(), and .forSpace() constructors.
Deprecated SassColor.red, .green, .blue, .hue, .saturation,
.lightness, .whiteness, and .blackness in favor of
SassColor.channel().
Deprecated SassColor.changeRgb(), .changeHsl(), and .changeHwb() in
favor of SassColor.changeChannels().
Added SassNumber.convertValueToUnit() as a shorthand for
SassNumber.convertValue() with a single numerator.
Added InterpolationMethod and HueInterpolationMethod which collectively
represent the method to use to interpolate two colors.
Added the SassApiColorSpace extension to expose additional members of
ColorSpace.
Added the ColorChannel class to represent information about a single channel
of a color space.
Added SassNumber.convertValueToUnit() as a shorthand for
SassNumber.convertValue() with a single numerator.
Remove the CallableDeclaration() constructor.
CallableDeclaration() constructor.* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
Remove the CalculationExpression class and the associated visitor methods.
Remove the CalculationExpression class and the associated visitor methods.
Add an AstSearchVisitor helper class.
Add an Interpolation.isPlain getter.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
Silent comments in SCSS that are separated by blank lines are now parsed as separate SilentComment nodes rather than a single conjoined node.
SilentComment nodes rather than a single conjoined node.* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
Breaking change: All selector AST node constructors now require a FileSpan and expose a span field.
Breaking change: All selector AST node constructors now require a
FileSpan and expose a span field.
Breaking change: The CssStyleRule.selector field is now a plain
SelectorList rather than a CssValue<SelectorList>.
Breaking change: The ModifiableCssValue class has been removed.
Add an InterpolationMap class which represents a mapping from an
interpolation's source to the string it generated.
Add an interpolationMap parameter to CssMediaQuery.parseList(),
AtRootQuery.parse(), ComplexSelector.parse, CompoundSelector.parse,
ListSelector.parse, and SimpleSelector.parse.
Add a SelectorSearchVisitor mixin, which can be used to return the first
instance of a selector in an AST matching a certain criterion.
* No user-visible changes.
Add BinaryOperation.isAssociative.
Add BinaryOperation.isAssociative.
Add a ReplaceExpressionVisitor, which recursively visits all expressions in
an AST and rebuilds them with replacement components.
* No user-visible changes.
Breaking change: Instead of a Tuple, findDependencies() now returns a DependencyReport object with named fields. This provides finer-grained access to…
Tuple, findDependencies() now returns a
DependencyReport object with named fields. This provides finer-grained
access to import URLs, as well as information about meta.load-css() calls
with non-interpolated string literal arguments.* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
* No user-visible changes.
Bump pub_api_client from 3.2.0 to 4.0.0
Bump pub_api_client from 3.2.0 to 4.0.0
Breaking change: The first argument to NumberExpression() is now a
double rather than a num.
Add an optional argumentName parameter to SassScriptException() to make it
easier to throw exceptions associated with particular argument names.
Most APIs that previously returned num now return double. All APIs
continue to accept num, although in Dart 2.0.0 most of these APIs will be
changed to accept only double.
One column per quarter.