Versions in this module Expand all Collapse all v0 v0.4.10 Jul 30, 2026 Changes in this version + func BG(color, text string) string + func BGANSI(color string) string + func BashModeBorderColor() func(string) string + func Bold(value string) string + func ColorModeGlobal() string + func EditorTheme() tui.EditorTheme + func FG(color, text string) string + func FGANSI(color string) string + func GetAllThemes() []extensions.ThemeInfo + func Highlight(code, language string, theme *Theme) []string + func Inverse(value string) string + func Italic(value string) string + func LanguageFromPath(path string) string + func MarkdownTheme() tui.MarkdownTheme + func ResolveSetting(setting string, terminal TerminalTheme) (string, bool) + func SetCurrent(t *Theme) + func SetTheme(name string) error + func Strikethrough(value string) string + func ThinkingBorderColor(level agent.ThinkingLevel) func(string) string + func Underline(value string) string + type AutoSetting struct + Dark string + Light string + func ParseAutoSetting(setting string) (AutoSetting, bool) + type Collision struct + LoserPath string + Name string + ResourceType string + WinnerPath string + type ColorMode string + const Color256 + const TrueColor + func DetectColorMode(environment map[string]string) ColorMode + type ColorValue struct + Index *int + String *string + func (value *ColorValue) UnmarshalJSON(data []byte) error + type Controller struct + func Initialize(registry *Registry, setting string, terminal TerminalTheme, onChange func()) *Controller + func NewController(registry *Registry, setting string, terminal TerminalTheme, onChange func()) *Controller + func (controller *Controller) Available() []string + func (controller *Controller) Current() *Theme + func (controller *Controller) Name() string + func (controller *Controller) Reload() error + func (controller *Controller) Set(name string) error + func (controller *Controller) SetInstance(value *Theme) error + type Detection struct + Confidence string + Detail string + Source string + Theme TerminalTheme + func DetectBackground(environment map[string]string) Detection + type Diagnostic struct + Collision *Collision + Message string + Path string + Type string + type LoadOptions struct + AdditionalPaths []string + AgentDir string + CWD string + GlobalPaths []string + Mode ColorMode + NoThemes bool + PackagePaths []string + ProjectPaths []string + ProjectTrusted bool + ResourceDiscoverPath []string + type Registry struct + func Load(options LoadOptions) *Registry + func (registry *Registry) Available() []string + func (registry *Registry) Diagnostics() []Diagnostic + func (registry *Registry) Extend(paths []string) + func (registry *Registry) Get(name string) (*Theme, bool) + func (registry *Registry) Loaded() []*Theme + func (registry *Registry) Register(theme *Theme) error + func (registry *Registry) ReplaceLoaded(themes []*Theme) error + type TerminalTheme string + const Dark + const Light + type Theme struct + Name string + SourceInfo *extensions.SourceInfo + SourcePath string + func Current() *Theme + func GetTheme(name string) *Theme + func Parse(label string, data []byte, mode ColorMode) (*Theme, error) + func (theme *Theme) Background(name, value string) string + func (theme *Theme) BackgroundANSI(name string) (string, error) + func (theme *Theme) ColorMode() ColorMode + func (theme *Theme) ExportColors() map[string]string + func (theme *Theme) Foreground(name, value string) string + func (theme *Theme) ForegroundANSI(name string) (string, error) + func (theme *Theme) Markdown(codeBlockIndent string) tui.MarkdownTheme + func (theme *Theme) ResolvedColors(light bool) map[string]string