Documentation
¶
Overview ¶
Package theme is the shared palette and pane drawing for chunk's full-screen TUIs (chunk watch and the planning screen), computed for the terminal's current background.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Yellow = lipgloss.Color("#FFF700") Green = lipgloss.Color("#00DB73") )
Chunk brand colours. The accent is navy on a light terminal, where yellow would vanish, and yellow on a dark one.
Functions ¶
func EdgeSegment ¶
EdgeSegment is n cells of a frame edge drawn with line, with title set into it as in "─ runs ─────" and cut to leave at least one cell of edge after it.
Types ¶
type Styles ¶
type Styles struct {
Dim lipgloss.Style
Emphasis lipgloss.Style
Success lipgloss.Style
Warning lipgloss.Style
Running lipgloss.Style
Teal lipgloss.Style
Error lipgloss.Style
Muted lipgloss.Style
VDim lipgloss.Style
// Chip is the base of a coloured label; the caller sets its background.
Chip lipgloss.Style
// Accent is filled with the brand colour, for the one primary action a
// screen offers (e.g. sending a draft to the factory), so it reads as a
// button next to the dimmed, bracketed hints for everything else.
Accent lipgloss.Style
// Field is the faint ground of a text input, so where to type is easy to
// find on the terminal's own background.
Field lipgloss.Style
}
Styles holds lipgloss styles computed for the current terminal background, shared by the full-screen TUIs.
Click to show internal directories.
Click to hide internal directories.