Documentation
¶
Overview ¶
Package style is the CLI look: one palette, named styles and the shared header and table.
Index ¶
- Variables
- func Accent() lipgloss.Style
- func ColorAccent() color.Color
- func ColorError() color.Color
- func ColorMuted() color.Color
- func ColorSubtle() color.Color
- func ColorSuccess() color.Color
- func Empty() lipgloss.Style
- func Error() lipgloss.Style
- func Filter(styles textinput.Styles) textinput.Styles
- func Header(title, path, info string) string
- func Key() lipgloss.Style
- func Markdown(isDark bool) ansi.StyleConfig
- func Muted() lipgloss.Style
- func Subtle() lipgloss.Style
- func Table(rows [][]string, cursor, main int) string
- func Title() lipgloss.Style
- type Theme
Constants ¶
This section is empty.
Variables ¶
var Default = Theme{
Accent: "#E5B33A",
Muted: "#8E8E93",
Subtle: "#636366",
Error: "#FF453A",
Success: "#30D158",
}
Default is the only place colors live: change them here to follow the web theme.
Functions ¶
func ColorAccent ¶
func ColorError ¶
func ColorMuted ¶
func ColorSubtle ¶
func ColorSuccess ¶
func Markdown ¶
func Markdown(isDark bool) ansi.StyleConfig
Markdown is glamour's standard style with the palette: no margin (aligned with the path above), text in the terminal color, headings and link texts in accent, rules and quotes muted.