diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-25 17:15:22 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-25 17:15:22 +0200 |
| commit | 8e0d77b4c72673d366999c17a857f634b3ca8cba (patch) | |
| tree | b7ef280fad1b8b11277bf7c66f227a6c0198808f /internal/client/ui/colors | |
| parent | 66e39ff2f64153efed919610097efcb9cd42b10f (diff) | |
Made colors package for coherent styling and migrated existing styles to
it
Diffstat (limited to 'internal/client/ui/colors')
| -rw-r--r-- | internal/client/ui/colors/colors.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/internal/client/ui/colors/colors.go b/internal/client/ui/colors/colors.go new file mode 100644 index 0000000..0c38720 --- /dev/null +++ b/internal/client/ui/colors/colors.go @@ -0,0 +1,26 @@ +package colors + +import ( + "fmt" + + "github.com/charmbracelet/lipgloss" +) + +var ( + Gray = lipgloss.Color("240") + LightBlue = lipgloss.Color("#5874FF") + Blue = lipgloss.Color("#0029f5") + DarkCyan = lipgloss.Color("#007E8A") + DarkMidnightBlue = lipgloss.Color("#1E1E2E") + Turquoise = lipgloss.Color("#54D7A9") + Red = lipgloss.Color("#F16265") + + Background = DarkMidnightBlue + Error = Red + Focus = LightBlue +) + +func ToHex(color lipgloss.Color) string { + r, g, b, _ := color.RGBA() + return fmt.Sprintf("#%02X%02X%02X", r>>8, g>>8, b>>8) +} |
