Skip to content

Commit 1231145

Browse files
CIAvashalecthomas
authored andcommitted
Add doom-one style
1 parent d6bdd14 commit 1231145

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

Diff for: styles/doom-one.go

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
package styles
2+
3+
import (
4+
"github.com/alecthomas/chroma"
5+
)
6+
7+
// Doom One style. Inspired by Atom One and Doom Emacs's Atom One theme
8+
var DoomOne = Register(chroma.MustNewStyle("doom-one", chroma.StyleEntries{
9+
chroma.Text: "#b0c4de",
10+
chroma.Error: "#b0c4de",
11+
chroma.Comment: "italic #8a93a5",
12+
chroma.CommentHashbang: "bold",
13+
chroma.Keyword: "#c678dd",
14+
chroma.Operator: "#c7bf54",
15+
chroma.OperatorWord: "bold #b756ff",
16+
chroma.Punctuation: "#B872CE",
17+
chroma.Name: "#aa89ea",
18+
chroma.NameAttribute: "#cebc3a",
19+
chroma.NameBuiltin: "#ef8383",
20+
chroma.NameClass: "#76a9f9",
21+
chroma.NameConstant: "bold #76a9f9",
22+
chroma.NameDecorator: "#e5c07b",
23+
chroma.NameEntity: "#bda26f",
24+
chroma.NameException: "bold #fd7474",
25+
chroma.NameFunction: "#00b1f7",
26+
chroma.NameProperty: "#e5c07b",
27+
chroma.NameLabel: "#f5a40d",
28+
chroma.NameNamespace: "#76a9f9",
29+
chroma.NameTag: "#e06c75",
30+
chroma.NameVariable: "#DCAEEA",
31+
chroma.NameVariableGlobal: "bold #DCAEEA",
32+
chroma.NameVariableInstance: "#e06c75",
33+
chroma.Literal: "#98c379",
34+
chroma.Number: "#d19a66",
35+
chroma.String: "#98c379",
36+
chroma.StringDoc: "#7e97c3",
37+
chroma.StringDouble: "#63c381",
38+
chroma.StringEscape: "bold #d26464",
39+
chroma.StringHeredoc: "#98c379",
40+
chroma.StringInterpol: "#98c379",
41+
chroma.StringOther: "#70b33f",
42+
chroma.StringRegex: "#56b6c2",
43+
chroma.StringSingle: "#98c379",
44+
chroma.StringSymbol: "#56b6c2",
45+
chroma.Generic: "#b0c4de",
46+
chroma.GenericEmph: "italic",
47+
chroma.GenericHeading: "bold #a2cbff",
48+
chroma.GenericInserted: "#a6e22e",
49+
chroma.GenericOutput: "#a6e22e",
50+
chroma.GenericUnderline: "underline",
51+
chroma.GenericPrompt: "#a6e22e",
52+
chroma.GenericStrong: "bold",
53+
chroma.GenericSubheading: "#a2cbff",
54+
chroma.GenericTraceback: "#a2cbff",
55+
chroma.Background: "#b0c4de bg:#282c34",
56+
}))

0 commit comments

Comments
 (0)