Skip to content

Instantly share code, notes, and snippets.

@luissquall
Last active August 28, 2015 18:08
Show Gist options
  • Save luissquall/2d5f8e63e5b5aff0e41f to your computer and use it in GitHub Desktop.
Save luissquall/2d5f8e63e5b5aff0e41f to your computer and use it in GitHub Desktop.
Extract main colors from Google's Material design color palette
  1. Go to Material design Color page: https://www.google.com/design/spec/style/color.html#
  2. Open the JavaScript Console
  3. Execute this script:
var colors=[];$('.color.main-color').each(function(index, el) {colors.push($(el).find('.hex').text())});copy(colors);
  1. The colors are in your clipboard's buffer!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment