DEVELOPMENT ENVIRONMENT

~liljamo/tamma

ref: e760917e8531f5438ae184ec0c1599f5a3785d1b tamma/styles/styles.go -rw-r--r-- 1.0 KiB
e760917eJonni Liljamo feat: enable help, add bindings there 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (C) 2024 Jonni Liljamo <jonni@liljamo.com>
 *
 * This file is licensed under GPL-3.0-only, see NOTICE and LICENSE for
 * more information.
 */

// Package styles contains lipgloss styles for rendering.
package styles

import (
	"github.com/charmbracelet/bubbles/list"
	"github.com/charmbracelet/lipgloss"
)

// ANSI 256 Colors
//  pastel palette from here:
//   https://www.hackitu.de/termcolor256/

// nolint
var (
	TopLevel = lipgloss.NewStyle().
			BorderStyle(lipgloss.RoundedBorder()).
			BorderForeground(lipgloss.Color("059")).
			Width(78) // border takes 1 column each side

	ListItem         = lipgloss.NewStyle().PaddingLeft(4).Foreground(lipgloss.Color("102"))
	ListItemSelected = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("170"))
	ListPaginaton    = list.DefaultStyles().PaginationStyle.PaddingLeft(4)
	ListTitle        = lipgloss.NewStyle().MarginLeft(2)

	ActionExecString = lipgloss.NewStyle().
				AlignHorizontal(lipgloss.Center).
				Foreground(lipgloss.Color("145"))
)