Skip to content

Instantly share code, notes, and snippets.

@scottbw
Created September 24, 2018 20:13
Show Gist options
  • Save scottbw/bdb3fdf16a4394fd343c0ca1681319c4 to your computer and use it in GitHub Desktop.
Save scottbw/bdb3fdf16a4394fd343c0ca1681319c4 to your computer and use it in GitHub Desktop.
Adobe Color bookmarklet
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