local template = [[# This file is auto-generated from lua/zenbones/build/alacritty.lua # ${name} alacritty colors colors: # Default colors primary: background: '${bg}' foreground: '${fg}' # Normal colors normal: black: '${color0}' red: '${color1}' green: '${color2}' yellow: '${color3}' blue: '${color4}' magenta: '${color5}' cyan: '${color6}' white: '${color7}' # Bright colors bright: black: '${color8}' red: '${color9}' green: '${color10}' yellow: '${color11}' blue: '${color12}' magenta: '${color13}' cyan: '${color14}' white: '${color15}' ]] return function(name, theme, palette, terminal) local values = { name = name, bg = theme.Normal.bg.hex, fg = theme.Normal.fg.hex, } for i, v in ipairs(terminal.colors) do values["color" .. (i - 1)] = v.hex end return { string.format("extras/alacritty/%s.yml", name), template, values } end