Versions in this module Expand all Collapse all v1 v1.0.1 Jun 27, 2026 v1.0.0 Jun 24, 2026 Changes in this version + type FontStyle int8 + const FontStyleBold + const FontStyleItalic + const FontStyleNone + const FontStyleNotSet + const FontStyleStrikethrough + const FontStyleUnderline + func (fs FontStyle) Has(flag FontStyle) bool + func (fs FontStyle) String() string + type Store struct + func NewStore(fsys fs.FS) *Store + func (s *Store) Get(name string) (*Theme, error) + func (s *Store) LoadedThemes() []string + func (s *Store) Register(name string, data []byte) error + type Theme struct + Colors map[string]string + DefaultBackground string + DefaultForeground string + DisplayName string + Name string + TokenColors []TokenColor + Type string + func Parse(data []byte) (*Theme, error) + func (t *Theme) Base() TokenSettings + func (t *Theme) Match(scopes []string) TokenSettings + type TokenColor struct + Scopes []string + Settings TokenSettings + type TokenSettings struct + Background string + FontStyle FontStyle + Foreground string