theme

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Colon              string
	ColonPreview       string
	Comma              string
	CommaPreview       string
	Empty              string
	Dot3               string
	CloseCurlyBracket  string
	CloseSquareBracket string
)
View Source
var NoColor = Theme{
	Cursor:     defaultCursor,
	Syntax:     noColor,
	Preview:    noColor,
	StatusBar:  noColor,
	Search:     defaultSearch,
	Key:        noColor,
	String:     noColor,
	Null:       noColor,
	Boolean:    noColor,
	Number:     noColor,
	Size:       noColor,
	Ref:        noColor,
	LineNumber: defaultLineNumber,
	Error:      defaultError,
}
View Source
var (
	TermOutput = termenv.NewOutput(os.Stderr)
)

Functions

func ExportThemes

func ExportThemes()

func ThemeTester

func ThemeTester()

Types

type Color

type Color func(s string) string

func Value

func Value(kind jsonx.Kind) Color

type Theme

type Theme struct {
	Cursor     Color
	Syntax     Color
	Preview    Color
	StatusBar  Color
	Search     Color
	Key        Color
	String     Color
	Null       Color
	Boolean    Color
	Number     Color
	Size       Color
	Ref        Color
	LineNumber Color
	Error      Color
}
var (
	CurrentTheme Theme
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL