Documentation ¶
Index ¶
Constants ¶
View Source
const ( N1 = "N1" // foreground color N2 = "N2" N3 = "N3" N4 = "N4" N5 = "N5" N6 = "N6" N7 = "N7" // background color // Base Colors: used for containers B1 = "B1" B2 = "B2" B3 = "B3" B4 = "B4" B5 = "B5" B6 = "B6" // Alternative colors A AA2 = "AA2" AA4 = "AA4" AA5 = "AA5" // Alternative colors B AB4 = "AB4" AB5 = "AB5" // Special Empty = "" None = "none" )
Variables ¶
View Source
var ColorHexRegex = regexp.MustCompile(`^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$`)
View Source
var NamedColors = []string{}/* 150 elements not displayed */
Functions ¶
func IsThemeColor ¶ added in v0.2.1
func LuminanceCategory ¶ added in v0.2.1
Types ¶
type RGB ¶ added in v0.2.2
func Hex2RGB ¶ added in v0.2.2
https://gist.github.com/CraigChilds94/6514edbc6a2db5e434a245487c525c75
func (*RGB) IsLight ¶ added in v0.2.2
https://github.com/go-playground/colors/blob/main/rgb.go#L89
Click to show internal directories.
Click to hide internal directories.