all repos — aflux @ bd4e88e8c9decfdb50e67af594f415102aab5491

styles.go (view raw)

 1package main
 2
 3import (
 4	catppuccin "github.com/catppuccin/go"
 5	lg "github.com/charmbracelet/lipgloss"
 6)
 7
 8var Cat catppuccin.Flavor = catppuccin.Mocha
 9
10func textColor(color catppuccin.Color) lg.Style {
11	return lg.NewStyle().Foreground(lg.Color(color.Hex))
12}
13
14type Style struct {
15	date   lg.Style
16	title  lg.Style
17	author lg.Style
18}
19
20var style = Style{
21	date:   textColor(Cat.Crust()).Background(lg.Color(Cat.Mauve().Hex)).Padding(0, 1),
22	author: textColor(Cat.Crust()).Background(lg.Color(Cat.Lavender().Hex)).Padding(0, 1),
23	title:  textColor(Cat.Text()).Bold(true),
24}