I'm looking for a way to generate a swatch library from a JSON file in Adobe Photoshop CS6. Unfortunately, I can't seem to find anything on the web about this, and I don't know how to write my own plugin/script that will do this for me.

If there is a free script/plugin out there that will do this can you please send me the link. If nothing exists can you direct me to a place where I can find a template for a Photoshop CS6 script and to some sample code that can make a swatch from a given name and RGB values?

  • 1
    What's the JSON look like? – Cai Mar 31 '17 at 9:55

the simplest method to import a swatch from an external file is to have an HTML with all the colors - HEX or RGB format.

  1. Click the Menu on the Swatches panel.
  2. Select in the menu "Load swatches".
  3. Find your HTML file with all the colors and import it.

<!doctype html>
<meta charset="UTF-8">
<title>Untitled Document</title>


#112233, rgb(1,2,3)

In your swatches you will have the new colors - #112233 and #010203.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.