polished - parseToRGB bug with color-mix
const { parseToRgb } = require('polished');
const rgbString = 'rgb(0, 48, 86)';
const colorMixString = 'color-mix(in srgb, rgb(0, 48, 86) calc(100%), rgb(255, 255, 255))';
console.log(parseToRgb(rgbString));
console.log(parseToRgb(colorMixString));
no comments