-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.go
60 lines (48 loc) · 959 Bytes
/
styles.go
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package main
import (
lg "github.com/charmbracelet/lipgloss"
)
const (
BLACK = 0
RED = 1
GREEN = 2
PURPLE = 5
CYAN = 6
WHITE = 7
GRAY = 8
)
var (
red = lg.ANSIColor(RED)
cyan = lg.ANSIColor(CYAN)
green = lg.ANSIColor(GREEN)
purple = lg.ANSIColor(PURPLE)
white = lg.ANSIColor(WHITE)
gray = lg.ANSIColor(GRAY)
titleMargin = lg.NewStyle().
Margin(1, 0, 1, 2)
titleStyle = lg.NewStyle().
Background(red).
Foreground(white).
Bold(true).
Padding(0, 1)
phoneticStyle = lg.NewStyle().
Foreground(cyan).
Italic(true)
posStyle = lg.NewStyle().
Foreground(purple).
Italic(true).
Bold(true).
MarginLeft(2)
textStyle = lg.NewStyle().
MarginLeft(2)
synonymStyle = lg.NewStyle().
Foreground(green)
antonymStyle = lg.NewStyle().
Foreground(red)
exampleStyle = lg.NewStyle().
Foreground(gray).
Italic(true).
MarginLeft(2)
errorStyle = lg.NewStyle().
Foreground(red)
)