Created
July 21, 2016 09:55
-
-
Save apaleslimghost/0d25ec801ca4fc43317bcff298af43c3 to your computer and use it in GitHub Desktop.
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
const colours = { | |
normal: '#A8A77A', | |
fire: '#EE8130', | |
water: '#6390F0', | |
electric: '#F7D02C', | |
grass: '#7AC74C', | |
ice: '#96D9D6', | |
fighting: '#C22E28', | |
poison: '#A33EA1', | |
ground: '#E2BF65', | |
flying: '#A98FF3', | |
psychic: '#F95587', | |
bug: '#A6B91A', | |
rock: '#B6A136', | |
ghost: '#735797', | |
dragon: '#6F35FC', | |
dark: '#705746', | |
steel: '#B7B7CE', | |
fairy: '#D685AD', | |
}; | |
module.exports = type => colours[type] || '#777'; | |
module.exports.colors = colours; |
Thanks!
Fantastic! Thanks for this! 🙏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this! Saved me a lot of time for my pokedex app!