Skip to content

Commit 1d3bd42

Browse files
committed
feat(extras): add zellij theme
1 parent 376ca09 commit 1d3bd42

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ M.extras = {
3030
windows_terminal = { ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal" },
3131
xfceterm = { ext = "theme", url = "https://docs.xfce.org/apps/terminal/advanced", label = "Xfce Terminal" },
3232
xresources = { ext = "Xresources", url = "https://wiki.archlinux.org/title/X_resources", label = "Xresources" },
33+
zellij = { ext = "kdl", url = "https://zellij.dev/", label = "Zellij" },
3334
}
3435

3536
function M.setup()

lua/astrotheme/extras/zellij.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
// ${_style_name} Zellij Colors
10+
// Add this file to your `CONFIG_DIR/themes` directory as described here:
11+
// https://zellij.dev/documentation/themes#getting-zellij-to-pick-up-the-theme
12+
13+
themes {
14+
${_style_name} {
15+
fg "${syntax.text}"
16+
bg "${ui.base}"
17+
black "${term.black}"
18+
red "${term.red}"
19+
green "${term.green}"
20+
yellow "${term.yellow}"
21+
blue "${term.blue}"
22+
magenta "${term.purple}"
23+
cyan "${term.cyan}"
24+
white "${term.white}"
25+
orange "${syntax.orange}"
26+
}
27+
}
28+
]],
29+
colors
30+
)
31+
end
32+
33+
return M

0 commit comments

Comments
 (0)