code: function toMaterialStyle(text, shade = 500) {
    let shadeStr = `${shade}`; // convert shade to string
    if (!availableShades.includes(shadeStr)) {
      shadeStr = '500';
    }
  
    const colorObj = getColorObj(text);
  
    return {
      backgroundColor: colorObj.shades[shadeStr],
      color: parseInt(shadeStr, 10) >= colorObj.whiteBreakpoint ? materialWhite : materialBlack,
      materialColorName: colorObj.name
    };
  }
docs: /* Get a ready-to-use Style object of the Material color of a string