...

Source file src/github.com/jedib0t/go-pretty/v6/text/color_html.go

Documentation: github.com/jedib0t/go-pretty/v6/text

     1  package text
     2  
     3  var (
     4  	// colorCSSClassMap contains the equivalent CSS-class for all colors
     5  	colorCSSClassMap = map[Color]string{
     6  		Bold:         "bold",
     7  		Faint:        "faint",
     8  		Italic:       "italic",
     9  		Underline:    "underline",
    10  		BlinkSlow:    "blink-slow",
    11  		BlinkRapid:   "blink-rapid",
    12  		ReverseVideo: "reverse-video",
    13  		Concealed:    "concealed",
    14  		CrossedOut:   "crossed-out",
    15  		FgBlack:      "fg-black",
    16  		FgRed:        "fg-red",
    17  		FgGreen:      "fg-green",
    18  		FgYellow:     "fg-yellow",
    19  		FgBlue:       "fg-blue",
    20  		FgMagenta:    "fg-magenta",
    21  		FgCyan:       "fg-cyan",
    22  		FgWhite:      "fg-white",
    23  		FgHiBlack:    "fg-hi-black",
    24  		FgHiRed:      "fg-hi-red",
    25  		FgHiGreen:    "fg-hi-green",
    26  		FgHiYellow:   "fg-hi-yellow",
    27  		FgHiBlue:     "fg-hi-blue",
    28  		FgHiMagenta:  "fg-hi-magenta",
    29  		FgHiCyan:     "fg-hi-cyan",
    30  		FgHiWhite:    "fg-hi-white",
    31  		BgBlack:      "bg-black",
    32  		BgRed:        "bg-red",
    33  		BgGreen:      "bg-green",
    34  		BgYellow:     "bg-yellow",
    35  		BgBlue:       "bg-blue",
    36  		BgMagenta:    "bg-magenta",
    37  		BgCyan:       "bg-cyan",
    38  		BgWhite:      "bg-white",
    39  		BgHiBlack:    "bg-hi-black",
    40  		BgHiRed:      "bg-hi-red",
    41  		BgHiGreen:    "bg-hi-green",
    42  		BgHiYellow:   "bg-hi-yellow",
    43  		BgHiBlue:     "bg-hi-blue",
    44  		BgHiMagenta:  "bg-hi-magenta",
    45  		BgHiCyan:     "bg-hi-cyan",
    46  		BgHiWhite:    "bg-hi-white",
    47  	}
    48  )
    49  

View as plain text