Skip to content

t-osawa-009/ColorAssetGen

Repository files navigation

ColorAssetGen

Tools for defining colors in asset catalogs

Installation

Makefile

$ git clone git@github.com:t-osawa-009/ColorAssetGen.git
$ cd ColorAssetGen
$ make install
$ brew install mint
$ mint install t-osawa-009/ColorAssetGen

Usage

  1. Prepare the original data, Localizable.strings.
[
    {
      "colorName": "test",
      "hex": "#33a1de",
      "hex_dark_color": "#9d5c7f",
      "hex_light_color": "#9d5c7f",
    },
]
  1. Execute the command.
$ ColorAssetGen --output_path Assets.xcassets --json_path Color.json 
  1. The Assets.xcassets file is generated.

CONTRIBUTING

  • 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.

License

ColorAssetGen is released under the MIT license. See LICENSE for details.

Releases

No releases published

Packages

No packages published