code: function transformMemberExpressions(identifier, j, root) {
    // replace all expressions using `identifier` to access color palettes
    root.find(j.MemberExpression).forEach(path => {
      if (path.node.object.name !== identifier) {
        return;
      }
  
      const colorProperty = path.node.property.name;
      const { palette, hue } = colorAccent(colorProperty);
      const colorModuleName = colorImportPath(palette);
      const property = hue || palette;
  
      path.node.property =
        hue || colorModuleName === 'common'
          ? j.memberExpression(
              j.identifier(colorModuleName),
              /^[_|a-z]/i.test(property) ? j.identifier(property) : j.literal(property),
            )
          : j.identifier(colorModuleName);
    });
  }
docs: Replace all expressions that use identifier to access color palettes.
  e.g. colors.amber100 -> colors.amber['100']
  @param {sting} identifier
  @param {jscodeshift_api_object} j
  @param {jscodeshift_ast_object} root