Skip to content

Instantly share code, notes, and snippets.

@rileyjshaw
Created October 18, 2014 21:21
Show Gist options
  • Save rileyjshaw/a32faaaba43199ab20d0 to your computer and use it in GitHub Desktop.
Save rileyjshaw/a32faaaba43199ab20d0 to your computer and use it in GitHub Desktop.
Return an array of accent colors from Google's [Material Design guide](http://www.google.com/design/spec/style/color.html)
[].filter.call(document.querySelectorAll('.color-group .color'), function(el) {
return el.querySelector('.shade').textContent === 'A400';
}).map(function (el) {
return el.querySelector('.hex').textContent;
});
@Lokua
Copy link

Lokua commented Jul 6, 2015

This is awesome! Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment