Created
September 24, 2018 20:13
-
-
Save scottbw/bdb3fdf16a4394fd343c0ca1681319c4 to your computer and use it in GitHub Desktop.
Adobe Color bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
var palette_name=$('title').text(); | |
var palette=($('.themeBox').children().map(function(){ | |
return '<color>'+$(this).attr("style").replace('background: ','')+'</color>';}).get().join('')); | |
var palette_xml='<color-palette name=\''+palette_name+'\' type=\'regular\'>'+palette+'</color-palette>'; | |
alert(palette_xml)})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment