Store custom macOS ~/Library/Colors/*.clr
files used in System Color Picker.
To create your own, fork this repo and run:
./update.sh
Convert your custom .clr
files to .json
format.
Usage:
clr2json <input.clr> <output.json> Convert a single .clr file to JSON.
clr2json Convert all .clr files in ~/Library/Colors to a single JSON file named 'palettes.json' in the current directory.
clr2json -h, --help Display this help message.
To build the clr2json
executable, run:
swiftc clr2json.swift -o clr2json
This README.md
file and the .svg
palette files were generated using
julia readme.jl palettes.json
with the .json
generated from clr2json
(but all you have to do is run ./update.sh
)