Created
October 18, 2014 21:21
-
-
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)
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
[].filter.call(document.querySelectorAll('.color-group .color'), function(el) { | |
return el.querySelector('.shade').textContent === 'A400'; | |
}).map(function (el) { | |
return el.querySelector('.hex').textContent; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is awesome! Thank you :)