Versions in this module Expand all Collapse all v0 v0.1.0 May 21, 2022 Changes in this version + const AttrBlink + const AttrBold + const AttrDim + const AttrHidden + const AttrItalic + const AttrNone + const AttrReverse + const AttrStrikethrough + const AttrUnderline + func AddTheme(name string, loader func() ([]byte, error)) + type AttrMask int + func Attr(s string) (AttrMask, error) + func (a *AttrMask) UnmarshalYAML(unmarshal func(interface{}) error) error + type Color struct + B uint8 + G uint8 + R uint8 + func HexColor(s string) (c Color, err error) + func MustHexColor(s string) Color + func (c *Color) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c Color) Hex() string + type Style struct + Attr AttrMask + Bg *Color + Fg *Color + type Theme map[string]Style + func LoadTheme(name string) (Theme, error) + func NewTheme(rules map[string]Style) (Theme, error) + func NewThemeFromYaml(data []byte) (Theme, error) + func (t Theme) Style(group string) Style