Versions in this module Expand all Collapse all v0 v0.2.0 Jun 28, 2026 Changes in this version + func EnvMap(env []string) map[string]string + func EnvNoColor(app string, env []string, optNoColor bool) bool + func EnvTruthy(value string) bool + func ExpandPath(path string) string + func ResolveThemeFile(app, file string, env []string, skipDefault bool) (string, bool) v0.1.0 Jun 22, 2026 Changes in this version + const FormatVersion + func Apply(noColor bool, code string, value string) string + func FormatThemeConfig(cfg ThemeConfig, opts ConfigOptions) []byte + func Marshal(cfg ThemeConfig, base Theme, opts MarshalOptions) []byte + func PadRight(value string, width int) string + func ParseStyleSpec(value string) (string, error) + func Sanitize(value string) string + func Strip(value string) string + func Truncate(value string, width int) string + func TruncateWith(value string, width int, marker string) string + func Unmarshal(data []byte) (ThemeConfig, Meta, error) + func VisibleWidth(value string) int + type ConfigOptions struct + Header []string + Roles []Role + type MarshalOptions struct + App string + AppVersion string + Roles []Role + type Meta struct + App string + AppVersion string + Format int + Warnings []string + type Role string + const RoleAccent + const RoleBorder + const RoleDanger + const RoleForeground + const RoleInfo + const RoleMuted + const RolePill + const RolePrimary + const RoleSearch + const RoleSecondary + const RoleSelected + const RoleSelectedBar + const RoleSubtle + const RoleSuccess + const RoleTitle + const RoleWarning + func RoleForKey(key string) (Role, bool) + func Roles() []Role + type Theme struct + Codes map[Role]string + Name string + NoColor bool + func (t Theme) Clone() Theme + func (t Theme) IsZero() bool + func (t Theme) Style(role Role, value string) string + func (t Theme) WithNoColor(noColor bool) Theme + type ThemeConfig struct + BaseName string + Codes map[Role]string + Specs map[Role]string + Warnings []string + func ParseThemeConfig(data []byte) (ThemeConfig, error) + func (cfg ThemeConfig) Resolve(base Theme) Theme