/
rose-pine.go
50 lines (47 loc) · 1.35 KB
/
rose-pine.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
package styles
import (
"github.com/alecthomas/chroma/v2"
)
var (
base = "#191724"
overlay = "#26233a"
muted = "#6e6a86"
subtle = "#908caa"
text = "#e0def4"
love = "#eb6f92"
gold = "#f6c177"
rose = "#ebbcba"
pine = "#31748f"
foam = "#9ccfd8"
iris = "#c4a7e7"
)
// RosePine (Main) style.
var RosePine = Register(chroma.MustNewStyle("rose-pine", chroma.StyleEntries{
chroma.Text: text,
chroma.Error: love,
chroma.Comment: muted,
chroma.Keyword: pine,
chroma.KeywordNamespace: iris,
chroma.Operator: subtle,
chroma.Punctuation: subtle,
chroma.Name: rose,
chroma.NameAttribute: rose,
chroma.NameClass: foam,
chroma.NameConstant: gold,
chroma.NameDecorator: subtle,
chroma.NameException: pine,
chroma.NameFunction: rose,
chroma.NameOther: text,
chroma.NameTag: rose,
chroma.LiteralNumber: gold,
chroma.Literal: gold,
chroma.LiteralDate: gold,
chroma.LiteralString: gold,
chroma.LiteralStringEscape: pine,
chroma.GenericDeleted: love,
chroma.GenericEmph: "italic",
chroma.GenericInserted: foam,
chroma.GenericStrong: "bold",
chroma.GenericSubheading: overlay,
chroma.Background: "bg:" + base,
}))