diff --git a/README.md b/README.md index a5373f3..d6ec916 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{25 ## 🍭 Extras -Extra color configs for **Kitty**, **Alacritty**, **Fish**, **WezTerm** and **iTerm** can be found in [extras](extras/). To use them, refer to their respective documentation. +Extra color configs for **Kitty**, **Alacritty**, **Fish**, **WezTerm**, **iTerm** and **foot** can be found in [extras](extras/). To use them, refer to their respective documentation. ![image](https://user-images.githubusercontent.com/292349/115395546-d8d6f880-a198-11eb-98fb-a1194787701d.png) diff --git a/extras/foot_tokyonight_day.ini b/extras/foot_tokyonight_day.ini new file mode 100644 index 0000000..2e4e1bd --- /dev/null +++ b/extras/foot_tokyonight_day.ini @@ -0,0 +1,30 @@ +[cursor] +color=3760bf 99a7df + +[colors] +foreground=3760bf +background=e1e2e7 +selection-foreground=3760bf +selection-background=99a7df +urls=387068 + +regular0=e9e9ed +regular1=f52a65 +regular2=587539 +regular3=8c6c3e +regular4=2e7de9 +regular5=9854f1 +regular6=007197 +regular7=6172b0 + +bright0=a1a6c5 +bright1=f52a65 +bright2=587539 +bright3=8c6c3e +bright4=2e7de9 +bright5=9854f1 +bright6=007197 +bright7=3760bf + +16=b15c00 +17=c64343 \ No newline at end of file diff --git a/extras/foot_tokyonight_night.ini b/extras/foot_tokyonight_night.ini new file mode 100644 index 0000000..90b5853 --- /dev/null +++ b/extras/foot_tokyonight_night.ini @@ -0,0 +1,30 @@ +[cursor] +color=c0caf5 33467C + +[colors] +foreground=c0caf5 +background=1a1b26 +selection-foreground=c0caf5 +selection-background=33467C +urls=73daca + +regular0=15161E +regular1=f7768e +regular2=9ece6a +regular3=e0af68 +regular4=7aa2f7 +regular5=bb9af7 +regular6=7dcfff +regular7=a9b1d6 + +bright0=414868 +bright1=f7768e +bright2=9ece6a +bright3=e0af68 +bright4=7aa2f7 +bright5=bb9af7 +bright6=7dcfff +bright7=c0caf5 + +16=ff9e64 +17=db4b4b \ No newline at end of file diff --git a/extras/foot_tokyonight_storm.ini b/extras/foot_tokyonight_storm.ini new file mode 100644 index 0000000..d924c4f --- /dev/null +++ b/extras/foot_tokyonight_storm.ini @@ -0,0 +1,30 @@ +[cursor] +color=c0caf5 364A82 + +[colors] +foreground=c0caf5 +background=24283b +selection-foreground=c0caf5 +selection-background=364A82 +urls=73daca + +regular0=1D202F +regular1=f7768e +regular2=9ece6a +regular3=e0af68 +regular4=7aa2f7 +regular5=bb9af7 +regular6=7dcfff +regular7=a9b1d6 + +bright0=414868 +bright1=f7768e +bright2=9ece6a +bright3=e0af68 +bright4=7aa2f7 +bright5=bb9af7 +bright6=7dcfff +bright7=c0caf5 + +16=ff9e64 +17=db4b4b \ No newline at end of file diff --git a/lua/tokyonight/extra/foot.lua b/lua/tokyonight/extra/foot.lua new file mode 100644 index 0000000..5772df6 --- /dev/null +++ b/lua/tokyonight/extra/foot.lua @@ -0,0 +1,52 @@ +local util = require("tokyonight.util") + +local M = {} + +--- @param colors ColorScheme +function M.generate(colors) + local footColors = {} + for k, v in pairs(colors) do + if type(v) == "string" then + footColors[k] = v:gsub("^#", "") + end + end + + local foot = util.template( + [[ +[cursor] +color=${fg} ${bg_visual} + +[colors] +foreground=${fg} +background=${bg} +selection-foreground=${fg} +selection-background=${bg_visual} +urls=${green1} + +regular0=${black} +regular1=${red} +regular2=${green} +regular3=${yellow} +regular4=${blue} +regular5=${magenta} +regular6=${cyan} +regular7=${fg_dark} + +bright0=${terminal_black} +bright1=${red} +bright2=${green} +bright3=${yellow} +bright4=${blue} +bright5=${magenta} +bright6=${cyan} +bright7=${fg} + +16=${orange} +17=${red1}]], + footColors + ) + + return foot +end + +return M diff --git a/lua/tokyonight/extra/init.lua b/lua/tokyonight/extra/init.lua index 40fa00e..5049e55 100644 --- a/lua/tokyonight/extra/init.lua +++ b/lua/tokyonight/extra/init.lua @@ -18,6 +18,7 @@ local extras = { tmux = "tmux", xresources = "Xresources", xfceterm = "theme", + foot = "ini", tilix = "json", } -- map of style to style name