Skip to content

Commit cc18688

Browse files
authored
fix(alacritty): update alacritty theme to use the new terminal colors (#656)
## Description Refs: #648
1 parent c2725eb commit cc18688

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

lua/tokyonight/extra/alacritty.lua

+21-16
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ local M = {}
66
function M.generate(colors)
77
local alacritty = util.template(
88
[=[
9+
# -----------------------------------------------------------------------------
910
# TokyoNight Alacritty Colors
11+
# Theme: ${_style_name}
12+
# Upstream: ${_upstream_url}
13+
# -----------------------------------------------------------------------------
14+
1015
# Default colors
1116
[colors.primary]
1217
background = '${bg}'
@@ -18,25 +23,25 @@ foreground = '${fg}'
1823
1924
# Normal colors
2025
[colors.normal]
21-
black = '${black}'
22-
red = '${red}'
23-
green = '${green}'
24-
yellow = '${yellow}'
25-
blue = '${blue}'
26-
magenta = '${magenta}'
27-
cyan = '${cyan}'
28-
white = '${fg_dark}'
26+
black = '${terminal.black}'
27+
red = '${terminal.red}'
28+
green = '${terminal.green}'
29+
yellow = '${terminal.yellow}'
30+
blue = '${terminal.blue}'
31+
magenta = '${terminal.magenta}'
32+
cyan = '${terminal.cyan}'
33+
white = '${terminal.white}'
2934
3035
# Bright colors
3136
[colors.bright]
32-
black = '${terminal_black}'
33-
red = '${red}'
34-
green = '${green}'
35-
yellow = '${yellow}'
36-
blue = '${blue}'
37-
magenta = '${magenta}'
38-
cyan = '${cyan}'
39-
white = '${fg}'
37+
black = '${terminal.black_bright}'
38+
red = '${terminal.red_bright}'
39+
green = '${terminal.green_bright}'
40+
yellow = '${terminal.yellow_bright}'
41+
blue = '${terminal.blue_bright}'
42+
magenta = '${terminal.magenta_bright}'
43+
cyan = '${terminal.cyan_bright}'
44+
white = '${terminal.white_bright}'
4045
4146
# Indexed Colors
4247
[[colors.indexed_colors]]

0 commit comments

Comments
 (0)