Created
May 24, 2018 08:10
-
-
Save danilopolani/fa836996b17354c260fb7a093a4badd1 to your computer and use it in GitHub Desktop.
Asana API colors mapping with HEX
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
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