From cc186889842b455bfb9282e551613dfb9f1e3299 Mon Sep 17 00:00:00 2001 From: Juhan Date: Tue, 3 Dec 2024 03:36:16 +0600 Subject: [PATCH] fix(alacritty): update alacritty theme to use the new terminal colors (#656) ## Description Refs: #648 --- lua/tokyonight/extra/alacritty.lua | 37 +++++++++++++++++------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/lua/tokyonight/extra/alacritty.lua b/lua/tokyonight/extra/alacritty.lua index 24aa1a068..afd8fb612 100644 --- a/lua/tokyonight/extra/alacritty.lua +++ b/lua/tokyonight/extra/alacritty.lua @@ -6,7 +6,12 @@ local M = {} function M.generate(colors) local alacritty = util.template( [=[ +# ----------------------------------------------------------------------------- # TokyoNight Alacritty Colors +# Theme: ${_style_name} +# Upstream: ${_upstream_url} +# ----------------------------------------------------------------------------- + # Default colors [colors.primary] background = '${bg}' @@ -18,25 +23,25 @@ foreground = '${fg}' # Normal colors [colors.normal] -black = '${black}' -red = '${red}' -green = '${green}' -yellow = '${yellow}' -blue = '${blue}' -magenta = '${magenta}' -cyan = '${cyan}' -white = '${fg_dark}' +black = '${terminal.black}' +red = '${terminal.red}' +green = '${terminal.green}' +yellow = '${terminal.yellow}' +blue = '${terminal.blue}' +magenta = '${terminal.magenta}' +cyan = '${terminal.cyan}' +white = '${terminal.white}' # Bright colors [colors.bright] -black = '${terminal_black}' -red = '${red}' -green = '${green}' -yellow = '${yellow}' -blue = '${blue}' -magenta = '${magenta}' -cyan = '${cyan}' -white = '${fg}' +black = '${terminal.black_bright}' +red = '${terminal.red_bright}' +green = '${terminal.green_bright}' +yellow = '${terminal.yellow_bright}' +blue = '${terminal.blue_bright}' +magenta = '${terminal.magenta_bright}' +cyan = '${terminal.cyan_bright}' +white = '${terminal.white_bright}' # Indexed Colors [[colors.indexed_colors]]