-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.go
More file actions
50 lines (44 loc) · 1.53 KB
/
Copy paththeme.go
File metadata and controls
50 lines (44 loc) · 1.53 KB
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
// Package theme provides the token palette every glyph component reads from.
//
// Components reference the Default theme; consumers replace tokens by editing
// this file or constructing their own Theme value.
package theme
import "github.com/charmbracelet/lipgloss"
// Theme is the token palette shared across glyph components.
type Theme struct {
// Foundational
Bg lipgloss.Color
Surface lipgloss.Color
SurfaceStrong lipgloss.Color
Border lipgloss.Color
BorderStrong lipgloss.Color
Text lipgloss.Color
TextMuted lipgloss.Color
TextInverse lipgloss.Color
// Accents
Primary lipgloss.Color
PrimaryStrong lipgloss.Color
Accent lipgloss.Color
// Status
Success lipgloss.Color
Warning lipgloss.Color
Error lipgloss.Color
Info lipgloss.Color
// Syntax (source-code highlighting palette). Components that don't render
// source code can ignore these. Empty values fall back to Text or muted.
SyntaxKeyword lipgloss.Color
SyntaxString lipgloss.Color
SyntaxComment lipgloss.Color
SyntaxNumber lipgloss.Color
SyntaxFunction lipgloss.Color
SyntaxType lipgloss.Color
SyntaxPunctuation lipgloss.Color
// Semantic-token slots layered on top of the chroma palette. Populated by
// language-server semanticTokens responses. Empty values fall back to a
// reasonable underlying chroma token.
SyntaxParameter lipgloss.Color
SyntaxProperty lipgloss.Color
SyntaxEnumMember lipgloss.Color
SyntaxNamespace lipgloss.Color
SyntaxReadonly lipgloss.Color
}