Skip to content

Commit 3b57712

Browse files
feat(extras): add support for kitty term (#48)
Co-authored-by: scottmckendry <[email protected]>
1 parent c3eff4c commit 3b57712

File tree

4 files changed

+86
-0
lines changed

4 files changed

+86
-0
lines changed

extras/kitty/cyberdream-light.conf

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# cyberdream theme for kitty
2+
background #ffffff
3+
foreground #16181a
4+
cursor #16181a
5+
cursor_text_color #ffffff
6+
selection_background #acacac
7+
color0 #ffffff
8+
color8 #ffffff
9+
color1 #d11500
10+
color9 #d11500
11+
color2 #008b0c
12+
color10 #008b0c
13+
color3 #997b00
14+
color11 #997b00
15+
color4 #0057d1
16+
color12 #0057d1
17+
color5 #a018ff
18+
color13 #a018ff
19+
color6 #008c99
20+
color14 #008c99
21+
color7 #16181a
22+
color15 #16181a
23+
selection_foreground #16181a

extras/kitty/cyberdream.conf

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# cyberdream theme for kitty
2+
background #16181a
3+
foreground #ffffff
4+
cursor #ffffff
5+
cursor_text_color #16181a
6+
selection_background #3c4048
7+
color0 #16181a
8+
color8 #16181a
9+
color1 #ff6e5e
10+
color9 #ff6e5e
11+
color2 #5eff6c
12+
color10 #5eff6c
13+
color3 #f1ff5e
14+
color11 #f1ff5e
15+
color4 #5ea1ff
16+
color12 #5ea1ff
17+
color5 #bd5eff
18+
color13 #bd5eff
19+
color6 #5ef1ff
20+
color14 #5ef1ff
21+
color7 #ffffff
22+
color15 #ffffff
23+
selection_foreground #ffffff

lua/cyberdream/extra/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ M.extras = {
1010
fish = { extension = "theme", name = "fish" },
1111
gitui = { extension = "ron", name = "gitui" },
1212
helix = { extension = "toml", name = "helix" },
13+
kitty = { extension = "conf", name = "kitty" },
1314
lazydocker = { extension = "yml", name = "lazydocker" },
1415
lazygit = { extension = "yml", name = "lazygit" },
1516
pywal = { extension = "json", name = "pywal" },

lua/cyberdream/extra/kitty.lua

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
local colors = require("cyberdream.colors")
2+
local util = require("cyberdream.util")
3+
4+
local M = {}
5+
6+
--- Generate the theme for kitty.
7+
--- @param variant string: Variation of the colorscheme to use.
8+
function M.generate(variant)
9+
local t = colors[variant]
10+
local template = [==[
11+
# cyberdream theme for kitty
12+
background ${bg}
13+
foreground ${fg}
14+
cursor ${fg}
15+
cursor_text_color ${bg}
16+
selection_background ${bgHighlight}
17+
color0 ${bg}
18+
color8 ${bg}
19+
color1 ${red}
20+
color9 ${red}
21+
color2 ${green}
22+
color10 ${green}
23+
color3 ${yellow}
24+
color11 ${yellow}
25+
color4 ${blue}
26+
color12 ${blue}
27+
color5 ${purple}
28+
color13 ${purple}
29+
color6 ${cyan}
30+
color14 ${cyan}
31+
color7 ${fg}
32+
color15 ${fg}
33+
selection_foreground ${fg}
34+
]==]
35+
36+
return util.parse_extra_template(template, t)
37+
end
38+
39+
return M

0 commit comments

Comments
 (0)