Skip to content

Commit 2420116

Browse files
feat: add helix theme extra (#28)
* feat: port cyberdream to helix editor * fix: change a few highlights for parity and readability --------- Co-authored-by: Scott McKendry <[email protected]>
1 parent c195c25 commit 2420116

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

extras/helix/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Usage
2+
3+
### Install
4+
5+
1. Place the `cyberdream.toml` under `$HOME/.config/helix/themes`
6+
2. Open `hx` and run the command `:theme cyberdream`
7+
3. If you want permanentely to use the theme, add this to your `$HOME/.config/helix/config.toml`:
8+
```toml
9+
theme = "cyberdream"
10+
```

extras/helix/cyberdream.toml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
"ui.background" = "bg"
2+
"ui.text" = "fg"
3+
"ui.cursor" = { bg = "fg", fg = "bg" }
4+
"ui.linenr" = "grey"
5+
"ui.statusline" = { fg = "cyan" }
6+
"ui.selection" = "green"
7+
"ui.selection.primary" = "magenta"
8+
9+
# Syntax Highlighting for Code
10+
"comment" = { fg = "grey", modifiers = ["italic"] }
11+
"comment.line" = { fg = "grey", modifiers = ["italic"] }
12+
"comment.block" = { fg = "grey", modifiers = ["italic"] }
13+
"comment.documentation" = { fg = "blue", modifiers = ["italic"] }
14+
"keyword" = "orange"
15+
"keyword.control" = "orange"
16+
"keyword.operator" = "pink"
17+
"keyword.function" = "orange"
18+
"type" = "cyan"
19+
"type.builtin" = "cyan"
20+
"function" = "blue"
21+
"function.builtin" = "pink"
22+
"function.method" = "blue"
23+
"variable" = "fg"
24+
"variable.builtin" = "magenta"
25+
"variable.parameter" = "cyan"
26+
"string" = "green"
27+
"string.special" = "pink"
28+
"constant" = "fg"
29+
"constant.builtin" = "red"
30+
"constant.numeric" = "yellow"
31+
"constant.character" = "pink"
32+
"constant.boolean" = "red"
33+
"attribute" = "magenta"
34+
"operator" = "purple"
35+
"tag" = { fg = "purple", modifiers = ["bold"] }
36+
"tag.special" = { fg = "orange", modifiers = ["bold"] }
37+
"namespace" = "purple"
38+
"macro" = "orange"
39+
"label" = "red"
40+
41+
# Interface specific
42+
"ui.cursorline.primary" = { bg = "bgHighlight" }
43+
"ui.cursorline.secondary" = { bg = "bgAlt" }
44+
"ui.cursorcolumn.primary" = { bg = "bgHighlight" }
45+
"ui.cursorcolumn.secondary" = { bg = "bgAlt" }
46+
"ui.statusline.normal" = { fg = "fg", bg = "bg" }
47+
"ui.statusline.insert" = { fg = "green", bg = "bg" }
48+
"ui.statusline.select" = { fg = "blue", bg = "bg" }
49+
"ui.statusline.command" = { fg = "red", bg = "bg" }
50+
"ui.statusline.visual" = { fg = "purple", bg = "bg" }
51+
52+
# Diagnostic styles
53+
"warning" = { fg = "yellow", modifiers = ["bold"] }
54+
"error" = { fg = "red", modifiers = ["bold"] }
55+
"info" = { fg = "cyan", modifiers = ["bold"] }
56+
"hint" = { fg = "blue", modifiers = ["bold"] }
57+
"diagnostic.error" = { fg = "red" }
58+
"diagnostic.warning" = { fg = "yellow" }
59+
"diagnostic.info" = { fg = "cyan" }
60+
"diagnostic.hint" = { fg = "blue" }
61+
62+
# Popups and Menus
63+
"ui.popup" = { fg = "fg", bg = "bg" }
64+
"ui.popup.info" = { fg = "cyan", bg = "bgAlt" }
65+
"ui.menu" = { fg = "fg", bg = "bg" }
66+
"ui.menu.selected" = { fg = "bg", bg = "fg" }
67+
68+
# Additional overrides
69+
"ui.virtual.whitespace" = "grey"
70+
"ui.virtual.indent-guide" = { fg = "grey", style = "dotted" }
71+
72+
[palette]
73+
bg = "#16181a"
74+
fg = "#ffffff"
75+
grey = "#7b8496"
76+
blue = "#5ea1ff"
77+
green = "#5eff6c"
78+
cyan = "#5ef1ff"
79+
red = "#ff6e5e"
80+
yellow = "#f1ff5e"
81+
magenta = "#ff5ef1"
82+
pink = "#ff5ea0"
83+
orange = "#ffbd5e"
84+
purple = "#bd5eff"
85+
bgAlt = "#1e2124"
86+
bgHighlight = "#3c4048"

0 commit comments

Comments
 (0)