Tools for defining colors in asset catalogs
$ git clone git@github.com:t-osawa-009/ColorAssetGen.git
$ cd ColorAssetGen
$ make install
$ brew install mint
$ mint install t-osawa-009/ColorAssetGen
- Prepare the original data, Localizable.strings.
[
{
"colorName": "test",
"hex": "#33a1de",
"hex_dark_color": "#9d5c7f",
"hex_light_color": "#9d5c7f",
},
]
- Execute the command.
$ ColorAssetGen --output_path Assets.xcassets --json_path Color.json
- The Assets.xcassets file is generated.
- There's still a lot of work to do here. We would love to see you involved. You can find all the details on how to get started in the Contributing Guide.
ColorAssetGen is released under the MIT license. See LICENSE for details.