forked from charmbracelet/freeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.go
35 lines (33 loc) · 1.23 KB
/
style.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
package main
import (
"github.com/alecthomas/chroma/v2"
"github.com/alecthomas/chroma/v2/styles"
)
var charmStyle = styles.Register(chroma.MustNewStyle("charm", chroma.StyleEntries{
chroma.Text: "#C4C4C4",
chroma.Error: "#F1F1F1 bg:#F05B5B",
chroma.Comment: "#676767",
chroma.CommentPreproc: "#FF875F",
chroma.Keyword: "#00AAFF",
chroma.KeywordReserved: "#FF48DD",
chroma.KeywordNamespace: "#FF5F87",
chroma.KeywordType: "#635ADF",
chroma.Operator: "#FF7F83",
chroma.Punctuation: "#E8E8A8",
chroma.Name: "#C4C4C4",
chroma.NameBuiltin: "#FF7CDB",
chroma.NameTag: "#B083EA",
chroma.NameAttribute: "#7A7AE6",
chroma.NameClass: "#F1F1F1 underline bold",
chroma.NameDecorator: "#FFFF87",
chroma.NameFunction: "#00DC7F",
chroma.LiteralNumber: "#6EEFC0",
chroma.LiteralString: "#E38356",
chroma.LiteralStringEscape: "#AFFFD7",
chroma.GenericDeleted: "#FD5B5B",
chroma.GenericEmph: "italic",
chroma.GenericInserted: "#00D787",
chroma.GenericStrong: "bold",
chroma.GenericSubheading: "#777777",
// chroma.Background: "bg:#171717",
}))