Skip to content

Commit 376ca09

Browse files
committed
feat(extras): add XResources theme
1 parent 655a345 commit 376ca09

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ M.extras = {
2929
wezterm = { ext = "toml", url = "https://wezfurlong.org/wezterm/config/files.html", label = "WezTerm" },
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" },
32+
xresources = { ext = "Xresources", url = "https://wiki.archlinux.org/title/X_resources", label = "Xresources" },
3233
}
3334

3435
function M.setup()
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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} colors for Xresources
10+
11+
*background: ${ui.base}
12+
*foreground: ${syntax.text}
13+
14+
*color0: ${term.black}
15+
*color1: ${term.red}
16+
*color2: ${term.green}
17+
*color3: ${term.yellow}
18+
*color4: ${term.blue}
19+
*color5: ${term.purple}
20+
*color6: ${term.cyan}
21+
*color7: ${term.white}
22+
23+
*color8: ${term.bright_black}
24+
*color9: ${term.bright_red}
25+
*color10: ${term.bright_green}
26+
*color11: ${term.bright_yellow}
27+
*color12: ${term.bright_blue}
28+
*color13: ${term.bright_purple}
29+
*color14: ${term.bright_cyan}
30+
*color15: ${term.bright_white}
31+
]],
32+
colors
33+
)
34+
end
35+
36+
return M

0 commit comments

Comments
 (0)