Changes to CSS Color Parser
May 13, 2026 ยท View on GitHub
4.1.1
May 13, 2026
- Fix analogous components and sets for
hwb() - Align precision of powerless components with the specification
- Updated
@csstools/css-calcto3.2.1(patch)
4.1.0
April 12, 2026
- Add support for analogous set in color interpolations
- Updated
@csstools/css-calcto3.2.0(minor)
4.0.2
February 21, 2026
- Updated
@csstools/css-calcto3.1.1(minor) - Updated
@csstools/color-helpersto6.0.2(patch)
4.0.1
January 25, 2026
- Updated
@csstools/color-helpersto6.0.1(patch)
4.0.0
January 14, 2026
- Updated: Support for Node
20.19.0or later (major). - Removed:
commonjsAPI. In supported Node versionsrequire(esm)will work without needing to make code changes. - Updated
@csstools/color-helpersto6.0.0(major) - Updated
@csstools/css-tokenizerto4.0.0(major) - Updated
@csstools/css-parser-algorithmsto4.0.0(major) - Updated
@csstools/css-calcto3.0.0(major)
3.1.0
August 22, 2025
- Add support for
display-p3-linearincolor(display-p3-linear 0.3081 0.014 0.0567) - Add support for
display-p3-linearincolor-mix(in display-p3-linear, red, blue) - Add support for omitting the color space in
color-mix(red, blue) - Add support for
alpha(from red / 0.5) - Updated
@csstools/color-helpersto5.1.0(minor)
3.0.10
May 27, 2025
- Updated
@csstools/css-tokenizerto3.0.4(patch) - Updated
@csstools/css-parser-algorithmsto3.0.5(patch) - Updated
@csstools/css-calcto2.1.4(patch)
3.0.9
April 19, 2025
- Drop the
maxkeyword forcontrast-color( <color> ) - Updated
@csstools/css-calcto2.1.3(patch)
3.0.8
February 23, 2025
- Use
Number.isNaNinstead ofNaNfor consistency. - Updated
@csstools/color-helpersto5.0.2(patch) - Updated
@csstools/css-calcto2.1.2(patch)
3.0.7
December 27, 2024
- Fix precision of negative numbers.
- Updated
@csstools/css-calcto2.1.1(patch)
3.0.6
November 11, 2024
- Updated
@csstools/css-calcto2.1.0(minor)
3.0.5
November 1, 2024
- Updated
@csstools/css-tokenizerto3.0.3(patch) - Updated
@csstools/css-parser-algorithmsto3.0.4(patch) - Updated
@csstools/css-calcto2.0.4(patch)
3.0.4
October 23, 2024
- Updated
@csstools/css-parser-algorithmsto3.0.3(patch) - Updated
@csstools/css-calcto2.0.3(patch)
3.0.3
October 10, 2024
- Updated
@csstools/css-tokenizerto3.0.2(patch) - Updated
@csstools/css-parser-algorithmsto3.0.2(patch) - Updated
@csstools/css-calcto2.0.2(patch)
3.0.2
August 18, 2024
- Updated
@csstools/css-tokenizerto3.0.1(patch) - Updated
@csstools/css-parser-algorithmsto3.0.1(patch) - Updated
@csstools/css-calcto2.0.1(patch)
3.0.1
August 14, 2024
- Updated
@csstools/color-helpersto5.0.1(patch)
3.0.0
August 3, 2024
- Updated: Support for Node v18+ (major).
- Updated
@csstools/css-tokenizerto3.0.0(major) - Updated
@csstools/css-parser-algorithmsto3.0.0(major) - Updated
@csstools/css-calcto2.0.0(major)
2.0.5
July 13, 2024
- fix
serializeP3whengamutMappingisfalse
2.0.4
July 6, 2024
- Updated
@csstools/css-tokenizerto2.4.1(patch) - Updated
@csstools/css-parser-algorithmsto2.7.1(patch) - Updated
@csstools/css-calcto1.2.4(patch)
2.0.3
June 29, 2024
- Updated
@csstools/color-helpersto4.2.1(patch) - Updated
@csstools/css-tokenizerto2.3.2(patch) - Updated
@csstools/css-parser-algorithmsto2.7.0(minor) - Updated
@csstools/css-calcto1.2.3(patch)
2.0.2
May 4, 2024
- Updated
@csstools/css-tokenizerto2.3.1(patch) - Updated
@csstools/css-parser-algorithmsto2.6.3(patch) - Updated
@csstools/css-calcto1.2.2(patch)
2.0.1
May 4, 2024
- Improve handling of
NaNandInfinityin color functions. - Updated
@csstools/css-tokenizerto2.3.0(minor) - Updated
@csstools/css-parser-algorithmsto2.6.2(patch) - Updated
@csstools/css-calcto1.2.1(patch)
2.0.0
April 21, 2024
- Switch to the ray-tracing gamut mapping algorithm. This is a minimally invasive change when generating fallback colors for CSS but breaking if you relied on the exact output of the previous gamut mapping algorithm.
- Fix
nonekeyword conversion in relative color syntax origin values. (again) - Updated
@csstools/color-helpersto4.2.0(minor)
1.6.3
March 31, 2024
- Fix missing rectangular color spaces for interpolation in
color-mix(). - Fix
nonekeyword conversion in relative color syntax origin values. - Updated
@csstools/color-helpersto4.1.0(minor)
1.6.2
March 16, 2024
- Fix powerless components for
lchandoklchwithnonechroma.
1.6.1
March 16, 2024
- Fix powerless components for
hslwithnonesaturation.
1.6.0
March 13, 2024
- Add support for
contrast-color( <color> max ) - Allow relative color syntax in
rgbaandhslacolor notations. - Updated
@csstools/css-tokenizerto2.2.4(patch) - Updated
@csstools/css-parser-algorithmsto2.6.1(patch) - Updated
@csstools/css-calcto1.2.0(minor)
1.5.2
February 19, 2024
- Clamp negative saturation to zero in modern
hsl - Updated
@csstools/css-parser-algorithmsto2.6.0(minor) - Updated
@csstools/css-calcto1.1.7(patch)
1.5.1
December 31, 2023
- Updated
@csstools/css-tokenizerto2.2.3(patch) - Updated
@csstools/css-parser-algorithmsto2.5.0(minor) - Updated
@csstools/css-calcto1.1.6(patch)
1.5.0
December 15, 2023
- Add the
Experimentalsyntax flag, to be used in future features. - Add a
serializeHSLfunction. - Fix type definitions
- Improve JS Doc comments
- Updated
@csstools/color-helpersto4.0.0(major) - Updated
@csstools/css-tokenizerto2.2.2(patch) - Updated
@csstools/css-parser-algorithmsto2.4.0(minor) - Updated
@csstools/css-calcto1.1.5(patch)
1.4.0
October 9, 2023
- Add utility to determine if a color is in the Display P3 gamut.
1.3.3
October 2, 2023
- Fix interpolation of
huewhen either or both components arenoneandlongeris the interpolation method.
1.3.2
September 24, 2023
- Small performance improvements
- Updated
@csstools/css-tokenizerto2.2.1(patch) - Updated
@csstools/css-parser-algorithmsto2.3.2(patch) - Updated
@csstools/css-calcto1.1.4(patch)
1.3.1
September 2, 2023
- Fix clipping of values in
hsl,hwbandrgbcolor notations. - Updated
@csstools/color-helpersto3.0.2(patch)
1.3.0
August 28, 2023
- Add a
serializeOKLCHfunction. - Always convert to the target color space, even when the input color is already in that specific color space.
- Correctly apply the hue interpolation method when either angle is missing.
- Updated
@csstools/color-helpersto3.0.1(patch)
1.2.3
July 24, 2023
- Allow number values in
hwb. - Fix value calculation for
s,l(hsl) andw,b(hwb) components in relative color syntax. aandbcomponents inlabandoklabare analogous.- Powerless components are limited to achromatic colors and only affect
hueunless otherwise specified. - Fix value normalization.
- Updated
@csstools/css-tokenizerto2.2.0(minor) - Updated
@csstools/css-parser-algorithmsto2.3.1(patch) - Updated
@csstools/css-calcto1.1.3(patch)
1.2.2
July 3, 2023
- Updated
@csstools/color-helpersto3.0.0(major) - Updated
@csstools/css-parser-algorithmsto2.3.0(minor) - Updated
@csstools/css-calcto1.1.2(patch)
1.2.1
June 14, 2023
- Fix value calculation for
huecomponents in relative color syntax.
1.2.0
May 19, 2023
- Add support for relative color syntax.
- Updated
@csstools/color-helpersto2.1.0(minor)
1.1.2
April 10, 2023
- Updated
@csstools/css-tokenizerto2.1.1(patch) - Updated
@csstools/css-parser-algorithmsto2.1.1(patch) - Updated
@csstools/css-calcto1.1.1(patch)
1.1.1
April 10, 2023
- Improve the detection of math function in color notations.
1.1.0
March 28, 2023
- Add a flag to
serializeP3andserializeRGBto skip gamut mapping.
1.0.0
March 25, 2023
- Initial version