initial public release
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
package tui
|
||||
|
||||
import "github.com/charmbracelet/lipgloss"
|
||||
|
||||
var (
|
||||
ColorAccent = lipgloss.Color("6")
|
||||
ColorAccentAlt = lipgloss.Color("14")
|
||||
ColorMuted = lipgloss.Color("8")
|
||||
ColorText = lipgloss.Color("15")
|
||||
ColorSuccess = lipgloss.Color("10")
|
||||
ColorWarn = lipgloss.Color("11")
|
||||
ColorError = lipgloss.Color("9")
|
||||
ColorBorder = lipgloss.Color("238")
|
||||
ColorHighlight = lipgloss.Color("236")
|
||||
|
||||
StyleTitle = lipgloss.NewStyle().
|
||||
Bold(true).
|
||||
Foreground(ColorAccentAlt).
|
||||
Padding(0, 1)
|
||||
|
||||
StyleSubtitle = lipgloss.NewStyle().
|
||||
Foreground(ColorMuted).
|
||||
Padding(0, 1)
|
||||
|
||||
StyleSidebarItem = lipgloss.NewStyle().
|
||||
Padding(0, 1)
|
||||
|
||||
StyleSidebarActive = lipgloss.NewStyle().
|
||||
Padding(0, 1).
|
||||
Bold(true).
|
||||
Foreground(ColorText).
|
||||
Background(ColorAccent)
|
||||
|
||||
StyleSidebarCursor = lipgloss.NewStyle().
|
||||
Padding(0, 1).
|
||||
Foreground(ColorAccentAlt).
|
||||
Bold(true)
|
||||
|
||||
StyleSidebarBox = lipgloss.NewStyle().
|
||||
BorderStyle(lipgloss.RoundedBorder()).
|
||||
BorderForeground(ColorBorder).
|
||||
Padding(0, 1).
|
||||
MarginRight(1)
|
||||
|
||||
StyleContentBox = lipgloss.NewStyle().
|
||||
BorderStyle(lipgloss.RoundedBorder()).
|
||||
BorderForeground(ColorBorder).
|
||||
Padding(0, 1)
|
||||
|
||||
StyleFooter = lipgloss.NewStyle().
|
||||
Foreground(ColorMuted).
|
||||
Padding(0, 1)
|
||||
|
||||
StyleKey = lipgloss.NewStyle().
|
||||
Foreground(ColorAccentAlt).
|
||||
Bold(true)
|
||||
|
||||
StyleKeyDesc = lipgloss.NewStyle().
|
||||
Foreground(ColorMuted)
|
||||
|
||||
StyleTableHeader = lipgloss.NewStyle().
|
||||
Bold(true).
|
||||
Foreground(ColorAccentAlt).
|
||||
BorderStyle(lipgloss.NormalBorder()).
|
||||
BorderBottom(true).
|
||||
BorderForeground(ColorBorder)
|
||||
|
||||
StyleTableRowSelected = lipgloss.NewStyle().
|
||||
Foreground(ColorText).
|
||||
Background(ColorHighlight).
|
||||
Bold(true)
|
||||
|
||||
StyleStatusOK = lipgloss.NewStyle().Foreground(ColorSuccess)
|
||||
StyleStatusErr = lipgloss.NewStyle().Foreground(ColorError)
|
||||
StyleStatusWarn = lipgloss.NewStyle().Foreground(ColorWarn)
|
||||
StyleStatusMuted = lipgloss.NewStyle().Foreground(ColorMuted)
|
||||
StyleStatusGhost = lipgloss.NewStyle().Foreground(lipgloss.Color("13")).Bold(true)
|
||||
|
||||
StyleModal = lipgloss.NewStyle().
|
||||
BorderStyle(lipgloss.DoubleBorder()).
|
||||
BorderForeground(ColorAccentAlt).
|
||||
Padding(1, 2).
|
||||
Background(lipgloss.Color("0"))
|
||||
)
|
||||
Reference in New Issue
Block a user