Skip to content

Commit f6d1db5

Browse files
CIAvashalecthomas
authored andcommitted
Change some colors, Add a new variation
1 parent 1231145 commit f6d1db5

File tree

2 files changed

+77
-4
lines changed

2 files changed

+77
-4
lines changed

Diff for: styles/doom-one.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ var DoomOne = Register(chroma.MustNewStyle("doom-one", chroma.StyleEntries{
1111
chroma.Comment: "italic #8a93a5",
1212
chroma.CommentHashbang: "bold",
1313
chroma.Keyword: "#c678dd",
14+
chroma.KeywordType: "#ef8383",
15+
chroma.KeywordConstant: "bold #b756ff",
1416
chroma.Operator: "#c7bf54",
1517
chroma.OperatorWord: "bold #b756ff",
16-
chroma.Punctuation: "#B872CE",
17-
chroma.Name: "#aa89ea",
18+
chroma.Punctuation: "#b0c4de",
19+
chroma.Name: "#c1abea",
1820
chroma.NameAttribute: "#cebc3a",
1921
chroma.NameBuiltin: "#ef8383",
2022
chroma.NameClass: "#76a9f9",
21-
chroma.NameConstant: "bold #76a9f9",
23+
chroma.NameConstant: "bold #b756ff",
2224
chroma.NameDecorator: "#e5c07b",
2325
chroma.NameEntity: "#bda26f",
2426
chroma.NameException: "bold #fd7474",
2527
chroma.NameFunction: "#00b1f7",
26-
chroma.NameProperty: "#e5c07b",
28+
chroma.NameProperty: "#cebc3a",
2729
chroma.NameLabel: "#f5a40d",
2830
chroma.NameNamespace: "#76a9f9",
2931
chroma.NameTag: "#e06c75",

Diff for: styles/doom-one2.go

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

0 commit comments

Comments
 (0)