diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-12 20:42:09 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-12 20:42:09 -0800 |
| commit | fa037e748bb2ba65f75ba104e18d460a8fbcd49b (patch) | |
| tree | 9a6c33024475ff6fd08013e39aee9717296cc638 /tui/style.go | |
| parent | 27d14514ab3c3c11e822fc2c1220072298e85c02 (diff) | |
| download | neko-fa037e748bb2ba65f75ba104e18d460a8fbcd49b.tar.gz neko-fa037e748bb2ba65f75ba104e18d460a8fbcd49b.tar.bz2 neko-fa037e748bb2ba65f75ba104e18d460a8fbcd49b.zip | |
Implement Bubble Tea Terminal UI (TUI)
- Added Bubble Tea, Lipgloss, and Bubbles dependencies
- Implemented TUI package in tui/ for browsing feeds and items
- Added --tui flag to main command
- Verified build and existing tests
Diffstat (limited to 'tui/style.go')
| -rw-r--r-- | tui/style.go | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tui/style.go b/tui/style.go new file mode 100644 index 0000000..7b21c78 --- /dev/null +++ b/tui/style.go @@ -0,0 +1,43 @@ +package tui + +import "github.com/charmbracelet/lipgloss" + +var ( + // Colors + maroon = lipgloss.Color("#800000") + lavender = lipgloss.Color("#E6E6FA") + gray = lipgloss.Color("#808080") + darkGray = lipgloss.Color("#404040") + + // Styles + TitleStyle = lipgloss.NewStyle(). + Bold(true). + Foreground(lavender). + Background(maroon). + Padding(0, 1) + + ListStyle = lipgloss.NewStyle(). + Padding(1, 2) + + SelectedItemStyle = lipgloss.NewStyle(). + PaddingLeft(2). + Foreground(lavender). + Background(darkGray). + Bold(true) + + ItemStyle = lipgloss.NewStyle(). + PaddingLeft(2) + + HeaderStyle = lipgloss.NewStyle(). + Bold(true). + Foreground(maroon). + MarginBottom(1) + + ContentStyle = lipgloss.NewStyle(). + Padding(1, 4) + + StatusStyle = lipgloss.NewStyle(). + Foreground(gray). + Italic(true). + MarginTop(1) +) |
