Script for generating .clr (macOS Color List) file
generate-clr < color-definitions
where color-definition is a JSON with keys: "name" and "colors" in following format:
{
"name": "Name of the color list",
"colors": [
{ "name": "Color1", rgb": "#RRGGBB" },
{ "name": "Color2", rgb": "#RRGGBB" },
:
{ "name": "ColorN", rgb": "#RRGGBB" }
]
}
There are some samples in samples/ directory.
Generated .clr file will be placed in your ~/Library/Colors.