I use this expression to set the line-color of a layer.
map.addLayer({ ... \'paint\': { \'line-color\': [\'get\', \'color\'], }, ... })