Skip to content

IORoot/macos__json2clr--convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌈 MacOS .JSON to .CLR Color Palette Converter

Useful for converting a JSON file into an Apple CLR Colour Palette which can then be imported into the Apple Colorpicker panel.

1. Table of Contents

2. About The Project

After wanting to get the Tailwind V2 CSS colours into my ColorSlurp App https://colorslurp.com/ (Pro version - enables imports), I found the process a little more cumbersome than originally thought. So, I wanted to put together a collection of scripts to make life easier for anyone else wanting to put a whole palette of colours into the Apple Color Picker or ColorSlurp.

This little script will ask for an input JSON file, a target output location, and then output a converted CLR file into that folder.

The json2clr app is a compiled version from user eip and this GIST at https://gist.github.com/eip/3837dfdaeb0326d44cf60c65f59e74c2

(back to top)

2.1. Built With

This project was built with the following frameworks, technologies and software.

(back to top)

2.2. Installation

Open terminal and run:

cd $HOME/Downloads && git clone https://github.com/IORoot/macos__json2clr--convert.git

This will download this repo into your home /Downloads folder.

(optional) Drag the Apps into your Application folder. Or just run from wherever you like.

There is a demo palette ,tailwind_v2.json, which you can start off converting to test.

(back to top)

3. Usage

Run JSONtoCLR

3.1. Demo Palettes

3.1.1. tailwind_v2.json

This is an example source colour palette. You can add / remove colours or supply your own JSON file with your own palette.

3.1.2. tailwind_v2.clr

This is the resulting file once the tailwind_v2.json file is put into the json2clr.app program.

4. Customising

None

5. Troubleshooting

None

(back to top)

6. Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

7. License

Distributed under the MIT License.

MIT License

Copyright (c) 2022 Andy Pearson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

(back to top)

8. Contact

Author Link: https://github.com/IORoot

(back to top)

9. Changelog

0.0.1 - Inital bundle of tools.