aboutsummaryrefslogtreecommitdiffstats
path: root/gosrc/colors.go
blob: 6fdf98af21d0a288b04fb2d364fadb254cc20f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main

// Theme defines the colors used when primitives are initialized.
type Theme struct {
 colorReset   	string // Main background color for primitives.
 colorRed     	string // Background color for contrasting elements.
 colorGreen   	string // Background color for even more contrasting elements.
 colorYellow  	string // Box borders.
 colorBlue    	string // Box titles.
 colorPurple  	string // Graphics.
 colorCyan    	string // Primary text.
 colorWhite   	string // Secondary text (e.g. labels).
}

// Styles defines the theme for applications. The default is for a black
// background and some basic colors: black, white, yellow, green, cyan, and
// blue.
var Styles = Theme{
 colorReset:   	"\033[0m",
 colorRed :    	"\033[31m",
 colorGreen :  	"\033[32m",
 colorYellow : 	"\033[33m",
 colorBlue :   	"\033[34m",
 colorPurple : 	"\033[35m",
 colorCyan :   	"\033[36m",
 colorWhite :  	"\033[37m",
}