replaceFunc = function () {
            if (format === css) {
              if (outputReferenceFallbacks) {
                return `var(${prefix}${ref.name}, ${refVal})`;
              } else {
                return `var(${prefix}${ref.name})`;
              }
            } else {
              return `${prefix}${ref.name}`;
            }
          }
A single value can have multiple references either by interpolation:
"value": "{size.border.width} solid {color.border.primary}"
or if the value is an object:
"value": {
   "size": "{size.border.width}",
   "style": "solid",
   "color": "{color.border.primary.value"}
}
This will see if there are references and if there are, replace
the resolved value with the reference's name.