Skip to content

Instantly share code, notes, and snippets.

@DavidDudson
Created December 9, 2015 01:19
Show Gist options
  • Save DavidDudson/7d30a18415db8b1ab9be to your computer and use it in GitHub Desktop.
Save DavidDudson/7d30a18415db8b1ab9be to your computer and use it in GitHub Desktop.
var colors = {
"black" : "#000",
"white" : "#fff",
}
function color_hex(color) {
return {color : colors[color]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment