- drop support for eyeglass
- drop support for bower
- drop support for libsass
- drop clearfix module because it is no longer relevant
- drop grid module because it is no longer relevant
- drop math module because it can be replaced by the builtin
sass:math
- remove prefixes from most functions because they can be replaced with
namespaces (
@use
) - fix deprecation warnings with dart sass (thanks to Jonas Hvid)
- math: rename
ln()
tolog()
andlog()
tolog10()
- color: interpret unitless angles (hues) as
deg
instead ofrad
- contrast:
contrast-check()
return second argument instead ofnull
- contrast: avoid cases with too little contrast in
contrast-stretch()
- color: add support for HSLab and HSLuv color spaces
- color: change behavior of chroma/saturation in HSL color space
- contrast: refine
pow()
approximation that was introduced in 0.4.0 - contrast: add new function
contrast-stretch()
- limit the files that go into npm package
- change license from GPL-2+ to MIT
- color: reduce chroma to avoid clipping
- contrast: no longer requires a
pow()
function - contrast: WCAG compliance levels can be used as thresholds
- fix a typo in clearfix mixin
- add feature: grid
- add feature: clearfix
- contrast:
luma()
is deprecated. Usepf-lightness($color, 'lab')
from the color module instead. - contrast:
alpha-blend()
is deprecated. - add eyeglass support
- math: Fix angles as input to
cos()
andtan()
- color: make default colorspace configurable
- color: add YUV colorspace
$pi
has been converted to a functionpi()
for better compass compatibility.- Add inverse trigonometric functions, including
atan2()
. - Allow angles as input to trig functions.
- Add a generic bezier interpolation.
- Add CIELAB/CIELUV based color functions.
- Improved test coverage for math module.
- Fix
pow(0, $exp)
if$exp
is a float. - Fix
sin($x)
for negativ$x
. - Fix
cos()
. - Fix syntax error in
tan()
.
- Fix an undefined variable in
contrast-check()
contrast-check()
could not be called because it did not return a value. It now always returnsnull
.
The algorithm for calculating contrasts of transparent colors has been overhauled completely:
- The old algorithm ignored the fact that gamma correction is non-linear.
- In order to simplify the API,
contrast()
now uses an approximation that does not care about the order of inputs. The exact algorithm is available ascontrast-min()
. Another effect of this change is that the$bg
parameter ofcontrast-color()
has been removed.
initial release