Skip to content

Instantly share code, notes, and snippets.

@danilopolani
Created May 24, 2018 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilopolani/fa836996b17354c260fb7a093a4badd1 to your computer and use it in GitHub Desktop.
Save danilopolani/fa836996b17354c260fb7a093a4badd1 to your computer and use it in GitHub Desktop.
Asana API colors mapping with HEX
func asanaColor(color string) string {
colors := map[string]string{
"none": "#f6f8f9",
"dark-red": "#e8384f",
"dark-orange": "#fd612c",
"light-orange": "#fd9a00",
"dark-brown": "#eec300",
"light-green": "#a4cf30",
"dark-green": "#62d26f",
"light-teal": "#37c5ab",
"dark-teal": "#20aaea",
"light-blue": "#4186e0",
"dark-purple": "#7a6ff0",
"light-purple": "#aa62e3",
"light-pink": "#e362e3",
"dark-pink": "#ea4e9d",
"light-red": "#fc91ad",
"light-warm-gray": "#8da3a6",
"light-yellow": "",
"dark-blue": "",
"dark-warm-gray": "",
}
return colors[color]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment