We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68be6a5 commit 9236b68Copy full SHA for 9236b68
examples/tree/background/main.go
@@ -6,17 +6,19 @@ import (
6
)
7
8
func main() {
9
+ backgroundColor := lipgloss.Color("#ee6ff8")
10
+ foregroundColor := lipgloss.Color("#ecfe65")
11
+
12
darkBg := lipgloss.NewStyle().
- Background(lipgloss.Color("0")).
13
+ Background(backgroundColor).
14
Padding(0, 1)
15
16
headerItemStyle := lipgloss.NewStyle().
- Background(lipgloss.Color("#ee6ff8")).
- Foreground(lipgloss.Color("#ecfe65")).
17
+ Foreground(foregroundColor).
18
Bold(true).
19
20
- itemStyle := headerItemStyle.Background(lipgloss.Color("0"))
21
+ itemStyle := headerItemStyle.Background(backgroundColor)
22
23
t := tree.Root("# Table of Contents").
24
RootStyle(itemStyle).
0 commit comments