sass
1.108.2 · 11 Nov 2026MIT44.5M / weekRepositorynpmAtom feed
Upgrading sass From 1.78.0 to 1.79.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 7
- changes to make
- 0
- advisories fixed
- 26
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.79.0
- Deprecated1.79.0
- Deprecated1.79.0
- Deprecated1.79.0
- Deprecated1.79.0
- Deprecated1.79.0
- Deprecated1.79.0
Release by release
- Breaking
Passing a number with unit
%to the$alphaparameter ofcolor.change(),color.adjust(),change-color(), andadjust-color()is now interpreted as a percentage, instead of ignoring the unit. For example,color.change(red, $alpha: 50%)now returnsrgb(255 0 0 / 0.5). - Deprecated
The
color.red(),color.green(),color.blue(),color.hue(),color.saturation(),color.lightness(),color.whiteness(), andcolor.blackness()functions, as well as their global counterparts, should be replaced with calls tocolor.channel(). - Deprecated
The global
adjust-hue(),saturate(),desaturate(),lighten(),darken(),transaprentize(),fade-out(),opacify(), andfade-in()functions should be replaced bycolor.adjust()orcolor.scale(). - Deprecated
Deprecated
SassColor.red,.green,.blue,.hue,.saturation,.lightness,.whiteness, and.blacknessin favor ofSassColor.channel().
- Breaking
13 other lines we could not sort, mostly version bumps
- 1.79.0
Potentially breaking compatibility fix: Sass no longer rounds RGB channels to the nearest integer. This means that, for example,
rgb(0 0 1) != rgb(0 0 0.6). This matches the latest version of the CSS spec and browser behavior. - 1.79.0
Potentially breaking compatibility fix: Passing large positive or negative values to
color.adjust()can now cause a color's channels to go outside that color's gamut. In most cases this will currently be clipped by the browser and end up showing the same color as before, but once browsers implement gamut mapping it may produce a different result. - 1.79.0
rgbcolors can now have non-integer channels and channels outside the normal gamut of 0-255. These colors are always emitted using thergb()syntax so that modern browsers that are being displayed on wide-gamut devices can display the most accurate color possible. - 1.79.0
hsl()andcolor.hwb()no longer forbid out-of-bounds values. Instead, they follow the CSS spec by clamping them to within the allowed range. - 1.79.0
color.change(),color.adjust(), andcolor.scale()now support all channels of all color spaces. However, if you want to modify a channel that's not in$color's own color space, you have to explicitly specify the space with the$spaceparameter. (For backwards-compatibility, this doesn't apply to legacy channels of legacy colors—for example, you can still adjust anrgbcolor's saturation without passing$space: hsl). - 1.79.0
color.mix()andcolor.invert()now support the standard CSS algorithm for interpolating between two colors (the same one that's used for gradients and animations). To use this, pass the color space to use for interpolation to the$methodparameter. For polar color spaces likehslandoklch, this parameter also allows you to specify how hue interpolation is handled. - 1.79.0
color.complement()now supports a$spaceparameter that indicates which color space should be used to take the complement. - 1.79.0
color.grayscale()now operates in theoklchspace for non-legacy colors. - 1.79.0
color.ie-hex-str()now automatically converts its color to thergbspace and gamut-maps it so that it can continue to take colors from any color space. - 1.79.0
SassColor.rgb()now allows out-of-bounds and non-integer arguments.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.