code: function generateColorMap(content) {
    return content
      .split("\n")
      .filter(line => line.startsWith("@") && line.indexOf(":") > -1)
      .reduce((prev, next) => {
        try {
          const matches = next.match(
            /(?=\S*['-])([@a-zA-Z0-9'-]+).*:[ ]{1,}(.*);/
          );
          if (!matches) {
            return prev;
          }
          let [, varName, color] = matches;
          // if (color && color.startsWith("@")) {
          //   color = getColor(color, prev);
          //   if (!isValidColor(color)) return prev;
          //   prev[varName] = color;
          // } else if (isValidColor(color)) {
          //   prev[varName] = color;
          // }
            prev[varName] = color;
          return prev;
        } catch (e) {
          console.log("e", e);
          return prev;
        }
      }, {});
  }
docs: /*
  Read following files and generate color variables and color codes mapping
  - Your own variables.less
  It will generate map like this
  {
  '@theme-color': '#00375B',
  '@info-color': '#1890ff',
  '@success-color': '#52c41a',
  '@error-color': '#f5222d',
  '@normal-color': '#d9d9d9',
  '@primary-6': '#1890ff',
  '@heading-color': '#fa8c16',
  '@text-color': '#cccccc',
  ....
  }