Skip to content

Commit e3a674c

Browse files
zeitchefalecthomas
authored andcommitted
Add base16-snazzy style
1 parent 2735a5f commit e3a674c

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

Diff for: styles/base16-snazzy.go

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
package styles
2+
3+
import (
4+
"github.com/alecthomas/chroma"
5+
)
6+
7+
// Base16Snazzy style
8+
var Base16Snazzy = Register(chroma.MustNewStyle("base16-snazzy", chroma.StyleEntries{
9+
chroma.Comment: "#78787e",
10+
chroma.CommentHashbang: "#78787e",
11+
chroma.CommentMultiline: "#78787e",
12+
chroma.CommentPreproc: "#78787e",
13+
chroma.CommentSingle: "#78787e",
14+
chroma.CommentSpecial: "#78787e",
15+
chroma.Generic: "#e2e4e5",
16+
chroma.GenericDeleted: "#ff5c57",
17+
chroma.GenericEmph: "#e2e4e5 underline",
18+
chroma.GenericError: "#ff5c57",
19+
chroma.GenericHeading: "#e2e4e5 bold",
20+
chroma.GenericInserted: "#e2e4e5 bold",
21+
chroma.GenericOutput: "#43454f",
22+
chroma.GenericPrompt: "#e2e4e5",
23+
chroma.GenericStrong: "#e2e4e5 italic",
24+
chroma.GenericSubheading: "#e2e4e5 bold",
25+
chroma.GenericTraceback: "#e2e4e5",
26+
chroma.GenericUnderline: "underline",
27+
chroma.Error: "#ff5c57",
28+
chroma.Keyword: "#ff6ac1",
29+
chroma.KeywordConstant: "#ff6ac1",
30+
chroma.KeywordDeclaration: "#ff5c57",
31+
chroma.KeywordNamespace: "#ff6ac1",
32+
chroma.KeywordPseudo: "#ff6ac1",
33+
chroma.KeywordReserved: "#ff6ac1",
34+
chroma.KeywordType: "#9aedfe",
35+
chroma.Literal: "#e2e4e5",
36+
chroma.LiteralDate: "#e2e4e5",
37+
chroma.Name: "#e2e4e5",
38+
chroma.NameAttribute: "#57c7ff",
39+
chroma.NameBuiltin: "#ff5c57",
40+
chroma.NameBuiltinPseudo: "#e2e4e5",
41+
chroma.NameClass: "#f3f99d",
42+
chroma.NameConstant: "#ff9f43",
43+
chroma.NameDecorator: "#ff9f43",
44+
chroma.NameEntity: "#e2e4e5",
45+
chroma.NameException: "#e2e4e5",
46+
chroma.NameFunction: "#57c7ff",
47+
chroma.NameLabel: "#ff5c57",
48+
chroma.NameNamespace: "#e2e4e5",
49+
chroma.NameOther: "#e2e4e5",
50+
chroma.NameTag: "#ff6ac1",
51+
chroma.NameVariable: "#ff5c57",
52+
chroma.NameVariableClass: "#ff5c57",
53+
chroma.NameVariableGlobal: "#ff5c57",
54+
chroma.NameVariableInstance: "#ff5c57",
55+
chroma.LiteralNumber: "#ff9f43",
56+
chroma.LiteralNumberBin: "#ff9f43",
57+
chroma.LiteralNumberFloat: "#ff9f43",
58+
chroma.LiteralNumberHex: "#ff9f43",
59+
chroma.LiteralNumberInteger: "#ff9f43",
60+
chroma.LiteralNumberIntegerLong: "#ff9f43",
61+
chroma.LiteralNumberOct: "#ff9f43",
62+
chroma.Operator: "#ff6ac1",
63+
chroma.OperatorWord: "#ff6ac1",
64+
chroma.Other: "#e2e4e5",
65+
chroma.Punctuation: "#e2e4e5",
66+
chroma.LiteralString: "#5af78e",
67+
chroma.LiteralStringBacktick: "#5af78e",
68+
chroma.LiteralStringChar: "#5af78e",
69+
chroma.LiteralStringDoc: "#5af78e",
70+
chroma.LiteralStringDouble: "#5af78e",
71+
chroma.LiteralStringEscape: "#5af78e",
72+
chroma.LiteralStringHeredoc: "#5af78e",
73+
chroma.LiteralStringInterpol: "#5af78e",
74+
chroma.LiteralStringOther: "#5af78e",
75+
chroma.LiteralStringRegex: "#5af78e",
76+
chroma.LiteralStringSingle: "#5af78e",
77+
chroma.LiteralStringSymbol: "#5af78e",
78+
chroma.Text: "#e2e4e5",
79+
chroma.TextWhitespace: "#e2e4e5",
80+
chroma.Background: " bg:#282a36",
81+
}))

0 commit comments

Comments
 (0)