Skip to content

Dart Sass 1.15.0

Compare
Choose a tag to compare
@sassbot sassbot released this 14 Nov 22:10
· 1461 commits to main since this release
0aca829

To install Dart Sass 1.15.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Add support for passing arguments to @content blocks. See [the proposal][content-args] for details.

  • Add support for the new rgb() and hsl() syntax introduced in CSS Colors Level 4, such as rgb(0% 100% 0% / 0.5). See [the proposal][color-4-rgb-hsl] for more details.

  • Add support for interpolation in at-rule names. See [the proposal][at-rule-interpolation] for details.

  • Add paths from the SASS_PATH environment variable to the load paths in the command-line interface, Dart API, and JS API. These load paths are checked just after the load paths explicitly passed by the user.

  • Allow saturation and lightness values outside of the 0% to 100% range in the hsl() and hsla() functions. They're now clamped to be within that range rather than producing an error if they're outside it.

  • Properly compile selectors that end in escaped whitespace.

[content-args]: https://github.com/sass/language/blob/master/accepted/content-args.md [color-4-rgb-hsl]: https://github.com/sass/language/blob/master/accepted/color-4-rgb-hsl.md [at-rule-interpolation]: https://github.com/sass/language/blob/master/accepted/at-rule-interpolation.md

JavaScript API

  • Always include the error location in error messages.

See the full changelog for changes in earlier releases.