github.com/franciscocpg/up@v0.1.10/internal/colors/colors.go (about) 1 // Package colors provides colors used by the CLI. 2 package colors 3 4 import ( 5 color "github.com/aybabtme/rgbterm" 6 ) 7 8 // Gray string. 9 func Gray(s string) string { 10 return color.FgString(s, 150, 150, 150) 11 } 12 13 // Blue string. 14 func Blue(s string) string { 15 return color.FgString(s, 77, 173, 247) 16 } 17 18 // Cyan string. 19 func Cyan(s string) string { 20 return color.FgString(s, 34, 184, 207) 21 } 22 23 // Green string. 24 func Green(s string) string { 25 return color.FgString(s, 0, 200, 255) 26 } 27 28 // Red string. 29 func Red(s string) string { 30 return color.FgString(s, 194, 37, 92) 31 } 32 33 // Yellow string. 34 func Yellow(s string) string { 35 return color.FgString(s, 252, 196, 25) 36 } 37 38 // Purple string. 39 func Purple(s string) string { 40 return color.FgString(s, 96, 97, 190) 41 }