Jump to content
You must now use your email address to sign in [click for more info] ×

Export Palette to HTML Entities


Recommended Posts

Hey I would love to be able to export a palette from either or both Design and Photo into some sort of HTML entity format. It would be great if it did a text file with CSS in multiple blocks:

 

hex

hsla

rgba

 

And we could just grab as needed for development. 

Link to comment
Share on other sites

  • 2 years later...
  • 2 years later...

Less tedious than the manual option within Photo, this works:

create an image using squares of each color in the swatch panel

export as swatchname.jpg

using the command line tool Imagemagick:

magick identify -verbose swatchname.jpg

will list each color in the image. with more work, a command could be munged together to extract just the color codes from the command line. not elegant, but far less tedious than clicking "edit" for each swatch or item, copy hex code, paste to my list, lather, rinse, repeat.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.