Skip to content

Generate clr file used by Apple's Color Palettes.

License

Notifications You must be signed in to change notification settings

kitoko552/clrpalette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clrpalette

clrpalette generate a clr file used by Apple's Color Palettes from a JSON file.

Usage

$ ./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.

Example

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.

Installation

Copy or move executable file clrpalette/bin/clrpalette to your project.

License

clrpalette is under the MIT License. See LICENSE file in this repository.

About

Generate clr file used by Apple's Color Palettes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages