src/js/extensions/colorSyntax.js
function changeDecColorsToHex(color) {
  return color.replace(decimalColorRx, (colorValue, r, g, b) => {
    const hr = changeDecColorToHex(r);
    const hg = changeDecColorToHex(g);
    const hb = changeDecColorToHex(b);

    return `#${hr}${hg}${hb}`;
  });
}
function changeDecColorsToHex(color) {
  return color.replace(decimalColorRx, (colorValue, r, g, b) => {
    const hr = changeDecColorToHex(r);
    const hg = changeDecColorToHex(g);
    const hb = changeDecColorToHex(b);

    return `#${hr}${hg}${hb}`;
  });
}
function changeDecColorsToHex ( color ) { return color . replace ( decimalColorRx , ( colorValue , r , g , b ) => { const hr = changeDecColorToHex ( r ) ; const hg = changeDecColorToHex ( g ) ; const hb = changeDecColorToHex ( b ) ; return ` ${ hr } ${ hg } ${ hb } ` ; } ) ; }
Change decimal color values to hexadecimal color value
@param {string} color Color value string
@returns {string}
@ignore
Change decimal color values to hexadecimal color value