caret

[ACTIVE] a command line tool for browsing Lobsters in your terminal
git clone git://git.figbert.com/caret.git
Log | Files | Refs | README | LICENSE

styles.go (802B)


      1 package ui
      2 
      3 import gloss "github.com/charmbracelet/lipgloss"
      4 
      5 func LobstersRed() gloss.Style {
      6 	return gloss.NewStyle().Foreground(gloss.Color("#AC130D"))
      7 }
      8 
      9 func Gray() gloss.Style {
     10 	return gloss.NewStyle().Foreground(gloss.Color("8"))
     11 }
     12 
     13 func Orange() gloss.Style {
     14 	return gloss.NewStyle().Foreground(gloss.Color("#ffc227"))
     15 }
     16 
     17 func Purple() gloss.Style {
     18 	return gloss.NewStyle().Foreground(gloss.Color("#f0b2b8"))
     19 }
     20 
     21 func Bold() gloss.Style {
     22 	return gloss.NewStyle().Bold(true)
     23 }
     24 
     25 func HR(width int) string {
     26 	return gloss.NewStyle().
     27 		Width(width).
     28 		BorderStyle(gloss.NormalBorder()).
     29 		BorderTop(true).
     30 		Foreground(gloss.Color("8")).
     31 		Render()
     32 }
     33 
     34 func Prompt() gloss.Style {
     35 	return gloss.NewStyle().
     36 		Foreground(gloss.Color("#AC130D")).
     37 		Background(gloss.Color("7")).
     38 		Padding(0, 1)
     39 }