Skip to content

Commit 8513d99

Browse files
author
Soubik Bhui
authored
Add new style - "hr" (#513)
1 parent 99e6696 commit 8513d99

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Diff for: styles/hr_dark.go

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package styles
2+
3+
import (
4+
"github.com/alecthomas/chroma"
5+
)
6+
7+
// Theme based on HackerRank Dark Editor theme
8+
var HrDark = Register(chroma.MustNewStyle("hrdark", chroma.StyleEntries{
9+
chroma.Comment: "italic #828b96",
10+
chroma.Keyword: "#ff636f",
11+
chroma.OperatorWord: "#ff636f",
12+
chroma.Name: "#58a1dd",
13+
chroma.Literal: "#a6be9d",
14+
chroma.Operator: "#ff636f",
15+
chroma.Background: "#1d2432",
16+
chroma.Other: "#fff",
17+
}))

Diff for: styles/hr_high_contrast.go

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package styles
2+
3+
import (
4+
"github.com/alecthomas/chroma"
5+
)
6+
7+
// Theme based on HackerRank High Contrast Editor Theme
8+
var HrHighContrast = Register(chroma.MustNewStyle("hr_high_contrast", chroma.StyleEntries{
9+
chroma.Comment: "#5a8349",
10+
chroma.Keyword: "#467faf",
11+
chroma.OperatorWord: "#467faf",
12+
chroma.Name: "#ffffff",
13+
chroma.LiteralString: "#a87662",
14+
chroma.LiteralNumber: "#fff",
15+
chroma.LiteralStringBoolean: "#467faf",
16+
chroma.Operator: "#e4e400",
17+
chroma.Background: "#000",
18+
chroma.Other: "#d5d500",
19+
}))

0 commit comments

Comments
 (0)