Depending on the locale the string.Format function in GetYAMLForColor will use a comma as decimal separator and not a dot which will break the importer.
And the name is missing from the .colors file. So swatch.name has to be entered into the COLORS_TEMPLATE. And a newline is missing at the end of the file.
Depending on the locale the string.Format function in GetYAMLForColor will use a comma as decimal separator and not a dot which will break the importer.
Fix:
return string.Format(System.Globalization.CultureInfo.GetCultureInfo("en"), "\n - m_Name: \n m_Color: {{r: {0}, g: {1}, b: {2}, a: {3}}}", c.r, c.g, c.b, c.a);
And the name is missing from the .colors file. So swatch.name has to be entered into the COLORS_TEMPLATE. And a newline is missing at the end of the file.