From 83bad1576d94251d460b2cc5635a15dd73cf6f65 Mon Sep 17 00:00:00 2001 From: EdenEast Date: Mon, 8 Jan 2024 14:10:03 -0500 Subject: [PATCH] fix(extra): alacritty config from yml to toml (#400) * fix(extra): switch from yml to toml Alacritty 0.13 changed config file from yml to toml. * chore(extra): generate extra files --------- Co-authored-by: EdenEast --- extra/carbonfox/alacritty.toml | 79 +++++++++++++++++ extra/carbonfox/alacritty.yml | 31 ------- extra/dawnfox/alacritty.toml | 79 +++++++++++++++++ extra/dawnfox/alacritty.yml | 31 ------- extra/dayfox/alacritty.toml | 79 +++++++++++++++++ extra/dayfox/alacritty.yml | 31 ------- extra/duskfox/alacritty.toml | 79 +++++++++++++++++ extra/duskfox/alacritty.yml | 31 ------- extra/nightfox/alacritty.toml | 79 +++++++++++++++++ extra/nightfox/alacritty.yml | 31 ------- extra/nordfox/alacritty.toml | 79 +++++++++++++++++ extra/nordfox/alacritty.yml | 31 ------- extra/terafox/alacritty.toml | 79 +++++++++++++++++ extra/terafox/alacritty.yml | 31 ------- lua/nightfox/extra/alacritty.lua | 148 ++++++++++++++++++------------- misc/extra.lua | 2 +- 16 files changed, 639 insertions(+), 281 deletions(-) create mode 100644 extra/carbonfox/alacritty.toml delete mode 100644 extra/carbonfox/alacritty.yml create mode 100644 extra/dawnfox/alacritty.toml delete mode 100644 extra/dawnfox/alacritty.yml create mode 100644 extra/dayfox/alacritty.toml delete mode 100644 extra/dayfox/alacritty.yml create mode 100644 extra/duskfox/alacritty.toml delete mode 100644 extra/duskfox/alacritty.yml create mode 100644 extra/nightfox/alacritty.toml delete mode 100644 extra/nightfox/alacritty.yml create mode 100644 extra/nordfox/alacritty.toml delete mode 100644 extra/nordfox/alacritty.yml create mode 100644 extra/terafox/alacritty.toml delete mode 100644 extra/terafox/alacritty.yml diff --git a/extra/carbonfox/alacritty.toml b/extra/carbonfox/alacritty.toml new file mode 100644 index 00000000..72ad5eb0 --- /dev/null +++ b/extra/carbonfox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: carbonfox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/alacritty.toml + +[colors.primary] +background = "#161616" +foreground = "#f2f4f8" +dim_forground = "#b6b8bb" +bright_forground = "#f9fbff" + +[colors.cursor] +text = "#f2f4f8" +cursor = "#b6b8bb" + +[colors.vi_mode_cursor] +text = "#f2f4f8" +cursor = "#33b1ff" + +[colors.search.matches] +foreground = "#f2f4f8" +background = "#525253" + +[colors.search.focused_match] +foreground = "#f2f4f8" +background = "#3ddbd9" + +[colors.footer_bar] +foreground = "#f2f4f8" +background = "#353535" + +[colors.hints.start] +foreground = "#f2f4f8" +background = "#3ddbd9" + +[colors.hints.end] +foreground = "#f2f4f8" +background = "#353535" + +[colors.selection] +text = "#f2f4f8" +background = "#2a2a2a" + +[colors.normal] +black = "#282828" +red = "#ee5396" +green = "#25be6a" +yellow = "#08bdba" +blue = "#78a9ff" +magenta = "#be95ff" +cyan = "#33b1ff" +white = "#dfdfe0" + +[colors.bright] +black = "#484848" +red = "#f16da6" +green = "#46c880" +yellow = "#2dc7c4" +blue = "#8cb6ff" +magenta = "#c8a5ff" +cyan = "#52bdff" +white = "#e4e4e5" + +[colors.dim] +black = "#222222" +red = "#ca4780" +green = "#1fa25a" +yellow = "#07a19e" +blue = "#6690d9" +magenta = "#a27fd9" +cyan = "#2b96d9" +white = "#bebebe" + +[[colors.indexed_colors]] +index = 16 +color = "#3ddbd9" + +[[colors.indexed_colors]] +index = 17 +color = "#ff7eb6" diff --git a/extra/carbonfox/alacritty.yml b/extra/carbonfox/alacritty.yml deleted file mode 100644 index 7b2f65ed..00000000 --- a/extra/carbonfox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: carbonfox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/alacritty.yml -colors: - # Default colors - primary: - background: '0x161616' - foreground: '0xf2f4f8' - # Normal colors - normal: - black: '0x282828' - red: '0xee5396' - green: '0x25be6a' - yellow: '0x08bdba' - blue: '0x78a9ff' - magenta: '0xbe95ff' - cyan: '0x33b1ff' - white: '0xdfdfe0' - # Bright colors - bright: - black: '0x484848' - red: '0xf16da6' - green: '0x46c880' - yellow: '0x2dc7c4' - blue: '0x8cb6ff' - magenta: '0xc8a5ff' - cyan: '0x52bdff' - white: '0xe4e4e5' - indexed_colors: - - { index: 16, color: '0x3ddbd9' } - - { index: 17, color: '0xff7eb6' } diff --git a/extra/dawnfox/alacritty.toml b/extra/dawnfox/alacritty.toml new file mode 100644 index 00000000..73249737 --- /dev/null +++ b/extra/dawnfox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: dawnfox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dawnfox/alacritty.toml + +[colors.primary] +background = "#faf4ed" +foreground = "#575279" +dim_forground = "#4c4769" +bright_forground = "#625c87" + +[colors.cursor] +text = "#575279" +cursor = "#625c87" + +[colors.vi_mode_cursor] +text = "#575279" +cursor = "#56949f" + +[colors.search.matches] +foreground = "#575279" +background = "#b8cece" + +[colors.search.focused_match] +foreground = "#575279" +background = "#618774" + +[colors.footer_bar] +foreground = "#575279" +background = "#ebdfe4" + +[colors.hints.start] +foreground = "#575279" +background = "#d7827e" + +[colors.hints.end] +foreground = "#575279" +background = "#ebdfe4" + +[colors.selection] +text = "#575279" +background = "#d0d8d8" + +[colors.normal] +black = "#575279" +red = "#b4637a" +green = "#618774" +yellow = "#ea9d34" +blue = "#286983" +magenta = "#907aa9" +cyan = "#56949f" +white = "#e5e9f0" + +[colors.bright] +black = "#5f5695" +red = "#c26d85" +green = "#629f81" +yellow = "#eea846" +blue = "#2d81a3" +magenta = "#9a80b9" +cyan = "#5ca7b4" +white = "#e6ebf3" + +[colors.dim] +black = "#504c6b" +red = "#a5576d" +green = "#597668" +yellow = "#dd9024" +blue = "#295e73" +magenta = "#816b9a" +cyan = "#50848c" +white = "#c8cfde" + +[[colors.indexed_colors]] +index = 16 +color = "#d7827e" + +[[colors.indexed_colors]] +index = 17 +color = "#d685af" diff --git a/extra/dawnfox/alacritty.yml b/extra/dawnfox/alacritty.yml deleted file mode 100644 index b7d48462..00000000 --- a/extra/dawnfox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: dawnfox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dawnfox/alacritty.yml -colors: - # Default colors - primary: - background: '0xfaf4ed' - foreground: '0x575279' - # Normal colors - normal: - black: '0x575279' - red: '0xb4637a' - green: '0x618774' - yellow: '0xea9d34' - blue: '0x286983' - magenta: '0x907aa9' - cyan: '0x56949f' - white: '0xe5e9f0' - # Bright colors - bright: - black: '0x5f5695' - red: '0xc26d85' - green: '0x629f81' - yellow: '0xeea846' - blue: '0x2d81a3' - magenta: '0x9a80b9' - cyan: '0x5ca7b4' - white: '0xe6ebf3' - indexed_colors: - - { index: 16, color: '0xd7827e' } - - { index: 17, color: '0xd685af' } diff --git a/extra/dayfox/alacritty.toml b/extra/dayfox/alacritty.toml new file mode 100644 index 00000000..09e68774 --- /dev/null +++ b/extra/dayfox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: dayfox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.toml + +[colors.primary] +background = "#f6f2ee" +foreground = "#3d2b5a" +dim_forground = "#302b5d" +bright_forground = "#643f61" + +[colors.cursor] +text = "#3d2b5a" +cursor = "#643f61" + +[colors.vi_mode_cursor] +text = "#3d2b5a" +cursor = "#287980" + +[colors.search.matches] +foreground = "#3d2b5a" +background = "#a4c1c2" + +[colors.search.focused_match] +foreground = "#3d2b5a" +background = "#396847" + +[colors.footer_bar] +foreground = "#3d2b5a" +background = "#d3c7bb" + +[colors.hints.start] +foreground = "#3d2b5a" +background = "#955f61" + +[colors.hints.end] +foreground = "#3d2b5a" +background = "#d3c7bb" + +[colors.selection] +text = "#3d2b5a" +background = "#e7d2be" + +[colors.normal] +black = "#352c24" +red = "#a5222f" +green = "#396847" +yellow = "#ac5402" +blue = "#2848a9" +magenta = "#6e33ce" +cyan = "#287980" +white = "#f2e9e1" + +[colors.bright] +black = "#534c45" +red = "#b3434e" +green = "#577f63" +yellow = "#b86e28" +blue = "#4863b6" +magenta = "#8452d5" +cyan = "#488d93" +white = "#f4ece6" + +[colors.dim] +black = "#2d251f" +red = "#8c1d28" +green = "#30583c" +yellow = "#924702" +blue = "#223d90" +magenta = "#5e2baf" +cyan = "#22676d" +white = "#cec6bf" + +[[colors.indexed_colors]] +index = 16 +color = "#955f61" + +[[colors.indexed_colors]] +index = 17 +color = "#a440b5" diff --git a/extra/dayfox/alacritty.yml b/extra/dayfox/alacritty.yml deleted file mode 100644 index 2c7ab252..00000000 --- a/extra/dayfox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: dayfox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.yml -colors: - # Default colors - primary: - background: '0xf6f2ee' - foreground: '0x3d2b5a' - # Normal colors - normal: - black: '0x352c24' - red: '0xa5222f' - green: '0x396847' - yellow: '0xac5402' - blue: '0x2848a9' - magenta: '0x6e33ce' - cyan: '0x287980' - white: '0xf2e9e1' - # Bright colors - bright: - black: '0x534c45' - red: '0xb3434e' - green: '0x577f63' - yellow: '0xb86e28' - blue: '0x4863b6' - magenta: '0x8452d5' - cyan: '0x488d93' - white: '0xf4ece6' - indexed_colors: - - { index: 16, color: '0x955f61' } - - { index: 17, color: '0xa440b5' } diff --git a/extra/duskfox/alacritty.toml b/extra/duskfox/alacritty.toml new file mode 100644 index 00000000..139a39e1 --- /dev/null +++ b/extra/duskfox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: duskfox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/duskfox/alacritty.toml + +[colors.primary] +background = "#232136" +foreground = "#e0def4" +dim_forground = "#cdcbe0" +bright_forground = "#eae8ff" + +[colors.cursor] +text = "#e0def4" +cursor = "#cdcbe0" + +[colors.vi_mode_cursor] +text = "#e0def4" +cursor = "#9ccfd8" + +[colors.search.matches] +foreground = "#e0def4" +background = "#63577d" + +[colors.search.focused_match] +foreground = "#e0def4" +background = "#a3be8c" + +[colors.footer_bar] +foreground = "#e0def4" +background = "#373354" + +[colors.hints.start] +foreground = "#e0def4" +background = "#ea9a97" + +[colors.hints.end] +foreground = "#e0def4" +background = "#373354" + +[colors.selection] +text = "#e0def4" +background = "#433c59" + +[colors.normal] +black = "#393552" +red = "#eb6f92" +green = "#a3be8c" +yellow = "#f6c177" +blue = "#569fba" +magenta = "#c4a7e7" +cyan = "#9ccfd8" +white = "#e0def4" + +[colors.bright] +black = "#47407d" +red = "#f083a2" +green = "#b1d196" +yellow = "#f9cb8c" +blue = "#65b1cd" +magenta = "#ccb1ed" +cyan = "#a6dae3" +white = "#e2e0f7" + +[colors.dim] +black = "#322e42" +red = "#d84f76" +green = "#8aa872" +yellow = "#e6a852" +blue = "#4a869c" +magenta = "#a580d2" +cyan = "#7bb8c1" +white = "#b1acde" + +[[colors.indexed_colors]] +index = 16 +color = "#ea9a97" + +[[colors.indexed_colors]] +index = 17 +color = "#eb98c3" diff --git a/extra/duskfox/alacritty.yml b/extra/duskfox/alacritty.yml deleted file mode 100644 index ac0b70f2..00000000 --- a/extra/duskfox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: duskfox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/duskfox/alacritty.yml -colors: - # Default colors - primary: - background: '0x232136' - foreground: '0xe0def4' - # Normal colors - normal: - black: '0x393552' - red: '0xeb6f92' - green: '0xa3be8c' - yellow: '0xf6c177' - blue: '0x569fba' - magenta: '0xc4a7e7' - cyan: '0x9ccfd8' - white: '0xe0def4' - # Bright colors - bright: - black: '0x47407d' - red: '0xf083a2' - green: '0xb1d196' - yellow: '0xf9cb8c' - blue: '0x65b1cd' - magenta: '0xccb1ed' - cyan: '0xa6dae3' - white: '0xe2e0f7' - indexed_colors: - - { index: 16, color: '0xea9a97' } - - { index: 17, color: '0xeb98c3' } diff --git a/extra/nightfox/alacritty.toml b/extra/nightfox/alacritty.toml new file mode 100644 index 00000000..1353abc9 --- /dev/null +++ b/extra/nightfox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: nightfox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nightfox/alacritty.toml + +[colors.primary] +background = "#192330" +foreground = "#cdcecf" +dim_forground = "#aeafb0" +bright_forground = "#d6d6d7" + +[colors.cursor] +text = "#cdcecf" +cursor = "#aeafb0" + +[colors.vi_mode_cursor] +text = "#cdcecf" +cursor = "#63cdcf" + +[colors.search.matches] +foreground = "#cdcecf" +background = "#3c5372" + +[colors.search.focused_match] +foreground = "#cdcecf" +background = "#81b29a" + +[colors.footer_bar] +foreground = "#cdcecf" +background = "#29394f" + +[colors.hints.start] +foreground = "#cdcecf" +background = "#f4a261" + +[colors.hints.end] +foreground = "#cdcecf" +background = "#29394f" + +[colors.selection] +text = "#cdcecf" +background = "#2b3b51" + +[colors.normal] +black = "#393b44" +red = "#c94f6d" +green = "#81b29a" +yellow = "#dbc074" +blue = "#719cd6" +magenta = "#9d79d6" +cyan = "#63cdcf" +white = "#dfdfe0" + +[colors.bright] +black = "#575860" +red = "#d16983" +green = "#8ebaa4" +yellow = "#e0c989" +blue = "#86abdc" +magenta = "#baa1e2" +cyan = "#7ad5d6" +white = "#e4e4e5" + +[colors.dim] +black = "#30323a" +red = "#ab435d" +green = "#6e9783" +yellow = "#baa363" +blue = "#6085b6" +magenta = "#8567b6" +cyan = "#54aeb0" +white = "#bebebe" + +[[colors.indexed_colors]] +index = 16 +color = "#f4a261" + +[[colors.indexed_colors]] +index = 17 +color = "#d67ad2" diff --git a/extra/nightfox/alacritty.yml b/extra/nightfox/alacritty.yml deleted file mode 100644 index 51ede1cb..00000000 --- a/extra/nightfox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: nightfox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nightfox/alacritty.yml -colors: - # Default colors - primary: - background: '0x192330' - foreground: '0xcdcecf' - # Normal colors - normal: - black: '0x393b44' - red: '0xc94f6d' - green: '0x81b29a' - yellow: '0xdbc074' - blue: '0x719cd6' - magenta: '0x9d79d6' - cyan: '0x63cdcf' - white: '0xdfdfe0' - # Bright colors - bright: - black: '0x575860' - red: '0xd16983' - green: '0x8ebaa4' - yellow: '0xe0c989' - blue: '0x86abdc' - magenta: '0xbaa1e2' - cyan: '0x7ad5d6' - white: '0xe4e4e5' - indexed_colors: - - { index: 16, color: '0xf4a261' } - - { index: 17, color: '0xd67ad2' } diff --git a/extra/nordfox/alacritty.toml b/extra/nordfox/alacritty.toml new file mode 100644 index 00000000..25bb20cf --- /dev/null +++ b/extra/nordfox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: nordfox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nordfox/alacritty.toml + +[colors.primary] +background = "#2e3440" +foreground = "#cdcecf" +dim_forground = "#abb1bb" +bright_forground = "#c7cdd9" + +[colors.cursor] +text = "#cdcecf" +cursor = "#abb1bb" + +[colors.vi_mode_cursor] +text = "#cdcecf" +cursor = "#88c0d0" + +[colors.search.matches] +foreground = "#cdcecf" +background = "#4f6074" + +[colors.search.focused_match] +foreground = "#cdcecf" +background = "#a3be8c" + +[colors.footer_bar] +foreground = "#cdcecf" +background = "#444c5e" + +[colors.hints.start] +foreground = "#cdcecf" +background = "#c9826b" + +[colors.hints.end] +foreground = "#cdcecf" +background = "#444c5e" + +[colors.selection] +text = "#cdcecf" +background = "#3e4a5b" + +[colors.normal] +black = "#3b4252" +red = "#bf616a" +green = "#a3be8c" +yellow = "#ebcb8b" +blue = "#81a1c1" +magenta = "#b48ead" +cyan = "#88c0d0" +white = "#e5e9f0" + +[colors.bright] +black = "#465780" +red = "#d06f79" +green = "#b1d196" +yellow = "#f0d399" +blue = "#8cafd2" +magenta = "#c895bf" +cyan = "#93ccdc" +white = "#e7ecf4" + +[colors.dim] +black = "#353a45" +red = "#a54e56" +green = "#8aa872" +yellow = "#d9b263" +blue = "#668aab" +magenta = "#9d7495" +cyan = "#69a7ba" +white = "#bbc3d4" + +[[colors.indexed_colors]] +index = 16 +color = "#c9826b" + +[[colors.indexed_colors]] +index = 17 +color = "#bf88bc" diff --git a/extra/nordfox/alacritty.yml b/extra/nordfox/alacritty.yml deleted file mode 100644 index d738a748..00000000 --- a/extra/nordfox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: nordfox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nordfox/alacritty.yml -colors: - # Default colors - primary: - background: '0x2e3440' - foreground: '0xcdcecf' - # Normal colors - normal: - black: '0x3b4252' - red: '0xbf616a' - green: '0xa3be8c' - yellow: '0xebcb8b' - blue: '0x81a1c1' - magenta: '0xb48ead' - cyan: '0x88c0d0' - white: '0xe5e9f0' - # Bright colors - bright: - black: '0x465780' - red: '0xd06f79' - green: '0xb1d196' - yellow: '0xf0d399' - blue: '0x8cafd2' - magenta: '0xc895bf' - cyan: '0x93ccdc' - white: '0xe7ecf4' - indexed_colors: - - { index: 16, color: '0xc9826b' } - - { index: 17, color: '0xbf88bc' } diff --git a/extra/terafox/alacritty.toml b/extra/terafox/alacritty.toml new file mode 100644 index 00000000..b859a77d --- /dev/null +++ b/extra/terafox/alacritty.toml @@ -0,0 +1,79 @@ +# Nightfox Alacritty Colors +## name: terafox +## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/terafox/alacritty.toml + +[colors.primary] +background = "#152528" +foreground = "#e6eaea" +dim_forground = "#cbd9d8" +bright_forground = "#eaeeee" + +[colors.cursor] +text = "#e6eaea" +cursor = "#cbd9d8" + +[colors.vi_mode_cursor] +text = "#e6eaea" +cursor = "#a1cdd8" + +[colors.search.matches] +foreground = "#e6eaea" +background = "#425e5e" + +[colors.search.focused_match] +foreground = "#e6eaea" +background = "#7aa4a1" + +[colors.footer_bar] +foreground = "#e6eaea" +background = "#254147" + +[colors.hints.start] +foreground = "#e6eaea" +background = "#ff8349" + +[colors.hints.end] +foreground = "#e6eaea" +background = "#254147" + +[colors.selection] +text = "#e6eaea" +background = "#293e40" + +[colors.normal] +black = "#2f3239" +red = "#e85c51" +green = "#7aa4a1" +yellow = "#fda47f" +blue = "#5a93aa" +magenta = "#ad5c7c" +cyan = "#a1cdd8" +white = "#ebebeb" + +[colors.bright] +black = "#4e5157" +red = "#eb746b" +green = "#8eb2af" +yellow = "#fdb292" +blue = "#73a3b7" +magenta = "#b97490" +cyan = "#afd4de" +white = "#eeeeee" + +[colors.dim] +black = "#282a30" +red = "#c54e45" +green = "#688b89" +yellow = "#d78b6c" +blue = "#4d7d90" +magenta = "#934e69" +cyan = "#89aeb8" +white = "#c8c8c8" + +[[colors.indexed_colors]] +index = 16 +color = "#ff8349" + +[[colors.indexed_colors]] +index = 17 +color = "#cb7985" diff --git a/extra/terafox/alacritty.yml b/extra/terafox/alacritty.yml deleted file mode 100644 index d5b68002..00000000 --- a/extra/terafox/alacritty.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Nightfox Alacritty Colors -# Style: terafox -# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/terafox/alacritty.yml -colors: - # Default colors - primary: - background: '0x152528' - foreground: '0xe6eaea' - # Normal colors - normal: - black: '0x2f3239' - red: '0xe85c51' - green: '0x7aa4a1' - yellow: '0xfda47f' - blue: '0x5a93aa' - magenta: '0xad5c7c' - cyan: '0xa1cdd8' - white: '0xebebeb' - # Bright colors - bright: - black: '0x4e5157' - red: '0xeb746b' - green: '0x8eb2af' - yellow: '0xfdb292' - blue: '0x73a3b7' - magenta: '0xb97490' - cyan: '0xafd4de' - white: '0xeeeeee' - indexed_colors: - - { index: 16, color: '0xff8349' } - - { index: 17, color: '0xcb7985' } diff --git a/lua/nightfox/extra/alacritty.lua b/lua/nightfox/extra/alacritty.lua index 83bfa944..407df75b 100644 --- a/lua/nightfox/extra/alacritty.lua +++ b/lua/nightfox/extra/alacritty.lua @@ -2,71 +2,93 @@ local template = require("nightfox.util.template") local M = {} -local function conv(color) - return color:gsub("^#", "0x") -end - -local function construct(shade) - return { - base = conv(shade.base), - bright = conv(shade.bright), - } -end - function M.generate(spec, _) - -- Convert default hex string format to Alacritty `0x` format - local p = spec.palette - local colors = { - meta = p.meta, - bg = conv(spec.bg1), - fg = conv(spec.fg1), - black = construct(p.black), - red = construct(p.red), - green = construct(p.green), - yellow = construct(p.yellow), - blue = construct(p.blue), - magenta = construct(p.magenta), - cyan = construct(p.cyan), - white = construct(p.white), - orange = construct(p.orange), - pink = construct(p.pink), - } - - local content = [[ + spec.dim_fg = spec.palette.meta.light and spec.fg0 or spec.fg2 + spec.bright_fg = spec.palette.meta.light and spec.fg2 or spec.fg0 + + local content = [===[ # Nightfox Alacritty Colors -# Style: ${meta.name} -# Upstream: ${meta.url} -colors: - # Default colors - primary: - background: '${bg}' - foreground: '${fg}' - # Normal colors - normal: - black: '${black}' - red: '${red}' - green: '${green}' - yellow: '${yellow}' - blue: '${blue}' - magenta: '${magenta}' - cyan: '${cyan}' - white: '${white}' - # Bright colors - bright: - black: '${black.bright}' - red: '${red.bright}' - green: '${green.bright}' - yellow: '${yellow.bright}' - blue: '${blue.bright}' - magenta: '${magenta.bright}' - cyan: '${cyan.bright}' - white: '${white.bright}' - indexed_colors: - - { index: 16, color: '${orange}' } - - { index: 17, color: '${pink}' } -]] - - return template.parse_template_str(content, colors) +## name: ${palette.meta.name} +## upstream: ${palette.meta.url} + +[colors.primary] +background = "${bg1}" +foreground = "${fg1}" +dim_forground = "${dim_fg}" +bright_forground = "${bright_fg}" + +[colors.cursor] +text = "${fg1}" +cursor = "${fg2}" + +[colors.vi_mode_cursor] +text = "${fg1}" +cursor = "${palette.cyan.base}" + +[colors.search.matches] +foreground = "${fg1}" +background = "${sel1}" + +[colors.search.focused_match] +foreground = "${fg1}" +background = "${diag.hint}" + +[colors.footer_bar] +foreground = "${fg1}" +background = "${bg3}" + +[colors.hints.start] +foreground = "${fg1}" +background = "${palette.orange.base}" + +[colors.hints.end] +foreground = "${fg1}" +background = "${bg3}" + +[colors.selection] +text = "${fg1}" +background = "${sel0}" + +[colors.normal] +black = "${palette.black.base}" +red = "${palette.red.base}" +green = "${palette.green.base}" +yellow = "${palette.yellow.base}" +blue = "${palette.blue.base}" +magenta = "${palette.magenta.base}" +cyan = "${palette.cyan.base}" +white = "${palette.white.base}" + +[colors.bright] +black = "${palette.black.bright}" +red = "${palette.red.bright}" +green = "${palette.green.bright}" +yellow = "${palette.yellow.bright}" +blue = "${palette.blue.bright}" +magenta = "${palette.magenta.bright}" +cyan = "${palette.cyan.bright}" +white = "${palette.white.bright}" + +[colors.dim] +black = "${palette.black.dim}" +red = "${palette.red.dim}" +green = "${palette.green.dim}" +yellow = "${palette.yellow.dim}" +blue = "${palette.blue.dim}" +magenta = "${palette.magenta.dim}" +cyan = "${palette.cyan.dim}" +white = "${palette.white.dim}" + +[[colors.indexed_colors]] +index = 16 +color = "${palette.orange.base}" + +[[colors.indexed_colors]] +index = 17 +color = "${palette.pink.base}" +]===] + + return template.parse_template_str(content, spec) end return M diff --git a/misc/extra.lua b/misc/extra.lua index 2ad43b82..c6dce37e 100644 --- a/misc/extra.lua +++ b/misc/extra.lua @@ -18,7 +18,7 @@ local function write(str, folder, filename) end local extras = { - alacritty = "yml", + alacritty = "toml", base16 = "yaml", fish = { ext = "fish", use_spec_name = true }, ghostty = { ext = "ghostty", use_spec_name = true },