Skip to content

Commit 705a03d

Browse files
committed
feat(extras): add Kitty theme
1 parent a985053 commit 705a03d

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ M.extras = {
2121
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
2222
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix" },
2323
iterm = { ext = "itermcolors", url = "https://iterm2.com/", label = "iTerm" },
24+
kitty = { ext = "conf", url = "https://sw.kovidgoyal.net/kitty/conf.html", label = "Kitty" },
2425
}
2526

2627
function M.setup()

lua/astrotheme/extras/kitty.lua

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
local util = require "astrotheme.extras"
2+
3+
local M = {}
4+
5+
--- @param colors AstroThemePalette
6+
function M.generate(colors)
7+
return util.template(
8+
[[
9+
# vim:ft=kitty
10+
11+
## name: ${_style_name}
12+
## license: MIT
13+
## author: AstroNvim
14+
## upstream: ${_upstream_url}
15+
16+
17+
background ${ui.base}
18+
foreground ${syntax.text}
19+
selection_background ${ui.selection}
20+
selection_foreground ${syntax.text}
21+
url_color ${syntax.blue}
22+
cursor ${syntax.text}
23+
cursor_text_color ${ui.base}
24+
25+
# Tabs
26+
active_tab_background ${ui.accent}
27+
active_tab_foreground ${ui.base}
28+
inactive_tab_background ${ui.base}
29+
inactive_tab_foreground ${ui.text_inactive}
30+
31+
# Windows
32+
active_border_color ${ui.accent}
33+
inactive_border_color ${ui.border}
34+
35+
# normal
36+
color0 ${term.black}
37+
color1 ${term.red}
38+
color2 ${term.green}
39+
color3 ${term.yellow}
40+
color4 ${term.blue}
41+
color5 ${term.purple}
42+
color6 ${term.cyan}
43+
color7 ${term.white}
44+
45+
# bright
46+
color8 ${term.bright_black}
47+
color9 ${term.bright_red}
48+
color10 ${term.bright_green}
49+
color11 ${term.bright_yellow}
50+
color12 ${term.bright_blue}
51+
color13 ${term.bright_purple}
52+
color14 ${term.bright_cyan}
53+
color15 ${term.bright_white}
54+
55+
# extended colors
56+
color16 ${ui.orange}
57+
color17 ${ui.red}
58+
]],
59+
colors
60+
)
61+
end
62+
63+
return M

0 commit comments

Comments
 (0)