clrpalette generate a clr file used by Apple's Color Palettes from a JSON file.
$ ./clrpalette COLOR_PALETTE_NAME /path/to/file.json
This will generate $HOME/Library/Colors/COLOR_PALETTE_NAME.clr
.
And you will use this on Color Palettes in various Mac apps including Xcode.
If you create JSON file for colors, you can use these colors on Color Palettes like below.
{
"Black" : "454545",
"Blue" : "4290c6",
"LineGray" : "e3e5e4",
"Placeholder" : "c7c7cd"
}
So you can manage clr file indirectly across the project team if you put on the JSON file under Git.
If you use AliSoftware/SwiftGen in your project, you also manage same colors as UIColor in code.
Copy or move executable file clrpalette/bin/clrpalette
to your project.
clrpalette is under the MIT License. See LICENSE
file in this repository.