Cleanup kitty themes (#91)

Makes them suitable for inclusion in
https://github.com/kovidgoyal/kitty-themes
This commit is contained in:
Kovid Goyal
2021-08-30 16:13:43 +05:30
committed by GitHub
parent 8e8a11e001
commit eede574f9e
5 changed files with 191 additions and 159 deletions

View File

@@ -1,40 +1,46 @@
# TokyoNight colors for Kitty # vim:ft=kitty
background #e1e2e7 ## name: Tokyo Night Day
foreground #3760bf ## license: MIT
selection_background #99a7df ## author: Folke Lemaitre
selection_foreground #3760bf ## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_day.conf
url_color #387068
cursor #3760bf
background #e1e2e7
# Tabs foreground #3760bf
active_tab_background #2e7de9 selection_background #99a7df
active_tab_foreground #d4d6e4 selection_foreground #3760bf
inactive_tab_background #c4c8da url_color #387068
inactive_tab_foreground #8990b3 cursor #3760bf
#tab_bar_background #e9e9ed
# Tabs
# normal active_tab_background #2e7de9
color0 #e9e9ed active_tab_foreground #d4d6e4
color1 #f52a65 inactive_tab_background #c4c8da
color2 #587539 inactive_tab_foreground #8990b3
color3 #8c6c3e #tab_bar_background #e9e9ed
color4 #2e7de9
color5 #9854f1 # normal
color6 #007197 color0 #e9e9ed
color7 #6172b0 color1 #f52a65
color2 #587539
# bright color3 #8c6c3e
color8 #a1a6c5 color4 #2e7de9
color9 #f52a65 color5 #9854f1
color10 #587539 color6 #007197
color11 #8c6c3e color7 #6172b0
color12 #2e7de9
color13 #9854f1 # bright
color14 #007197 color8 #a1a6c5
color15 #3760bf color9 #f52a65
color10 #587539
# extended colors color11 #8c6c3e
color16 #b15c00 color12 #2e7de9
color17 #c64343 color13 #9854f1
color14 #007197
color15 #3760bf
# extended colors
color16 #b15c00
color17 #c64343

View File

@@ -1,40 +1,46 @@
# TokyoNight colors for Kitty # vim:ft=kitty
background #1a1b26 ## name: Tokyo Night
foreground #c0caf5 ## license: MIT
selection_background #33467C ## author: Folke Lemaitre
selection_foreground #c0caf5 ## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_night.conf
url_color #73daca
cursor #c0caf5
background #1a1b26
# Tabs foreground #c0caf5
active_tab_background #7aa2f7 selection_background #33467C
active_tab_foreground #1f2335 selection_foreground #c0caf5
inactive_tab_background #292e42 url_color #73daca
inactive_tab_foreground #545c7e cursor #c0caf5
#tab_bar_background #15161E
# Tabs
# normal active_tab_background #7aa2f7
color0 #15161E active_tab_foreground #1f2335
color1 #f7768e inactive_tab_background #292e42
color2 #9ece6a inactive_tab_foreground #545c7e
color3 #e0af68 #tab_bar_background #15161E
color4 #7aa2f7
color5 #bb9af7 # normal
color6 #7dcfff color0 #15161E
color7 #a9b1d6 color1 #f7768e
color2 #9ece6a
# bright color3 #e0af68
color8 #414868 color4 #7aa2f7
color9 #f7768e color5 #bb9af7
color10 #9ece6a color6 #7dcfff
color11 #e0af68 color7 #a9b1d6
color12 #7aa2f7
color13 #bb9af7 # bright
color14 #7dcfff color8 #414868
color15 #c0caf5 color9 #f7768e
color10 #9ece6a
# extended colors color11 #e0af68
color16 #ff9e64 color12 #7aa2f7
color17 #db4b4b color13 #bb9af7
color14 #7dcfff
color15 #c0caf5
# extended colors
color16 #ff9e64
color17 #db4b4b

View File

@@ -1,40 +1,46 @@
# TokyoNight colors for Kitty # vim:ft=kitty
background #24283b ## name: Tokyo Night Storm
foreground #c0caf5 ## license: MIT
selection_background #364A82 ## author: Folke Lemaitre
selection_foreground #c0caf5 ## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_storm.conf
url_color #73daca
cursor #c0caf5
background #24283b
# Tabs foreground #c0caf5
active_tab_background #7aa2f7 selection_background #364A82
active_tab_foreground #1f2335 selection_foreground #c0caf5
inactive_tab_background #292e42 url_color #73daca
inactive_tab_foreground #545c7e cursor #c0caf5
#tab_bar_background #1D202F
# Tabs
# normal active_tab_background #7aa2f7
color0 #1D202F active_tab_foreground #1f2335
color1 #f7768e inactive_tab_background #292e42
color2 #9ece6a inactive_tab_foreground #545c7e
color3 #e0af68 #tab_bar_background #1D202F
color4 #7aa2f7
color5 #bb9af7 # normal
color6 #7dcfff color0 #1D202F
color7 #a9b1d6 color1 #f7768e
color2 #9ece6a
# bright color3 #e0af68
color8 #414868 color4 #7aa2f7
color9 #f7768e color5 #bb9af7
color10 #9ece6a color6 #7dcfff
color11 #e0af68 color7 #a9b1d6
color12 #7aa2f7
color13 #bb9af7 # bright
color14 #7dcfff color8 #414868
color15 #c0caf5 color9 #f7768e
color10 #9ece6a
# extended colors color11 #e0af68
color16 #ff9e64 color12 #7aa2f7
color17 #db4b4b color13 #bb9af7
color14 #7dcfff
color15 #c0caf5
# extended colors
color16 #ff9e64
color17 #db4b4b

View File

@@ -19,15 +19,23 @@ local extras = {
xresources = "Xresources", xresources = "Xresources",
xfceterm = "theme", xfceterm = "theme",
} }
local styles = { "storm", "night", "day" } -- map of style to style name
local styles = {
storm = " Storm",
night = "",
day = " Day",
}
for extra, ext in pairs(extras) do for extra, ext in pairs(extras) do
local plugin = require("tokyonight.extra." .. extra) local plugin = require("tokyonight.extra." .. extra)
for _, style in pairs(styles) do for style, style_name in pairs(styles) do
config.style = style config.style = style
config = config or require("tokyonight.config") config = config or require("tokyonight.config")
config.transform_colors = true config.transform_colors = true
local colors = require("tokyonight.colors").setup(config) local colors = require("tokyonight.colors").setup(config)
write(plugin.generate(colors), extra .. "_tokyonight_" .. style .. "." .. ext) local fname = extra .. "_tokyonight_" .. style .. "." .. ext
colors["_upstream_url"] = "https://github.com/folke/tokyonight.nvim/raw/main/extras/" .. fname
colors["_style_name"] = "Tokyo Night" .. style_name
write(plugin.generate(colors), fname)
end end
end end

View File

@@ -6,45 +6,51 @@ local M = {}
function M.generate(colors) function M.generate(colors)
local kitty = util.template( local kitty = util.template(
[[ [[
# TokyoNight colors for Kitty # vim:ft=kitty
background ${bg} ## name: ${_style_name}
foreground ${fg} ## license: MIT
selection_background ${bg_visual} ## author: Folke Lemaitre
selection_foreground ${fg} ## upstream: ${_upstream_url}
url_color ${green1}
cursor ${fg}
background ${bg}
# Tabs foreground ${fg}
active_tab_background ${blue} selection_background ${bg_visual}
active_tab_foreground ${bg_dark} selection_foreground ${fg}
inactive_tab_background ${bg_highlight} url_color ${green1}
inactive_tab_foreground ${dark3} cursor ${fg}
#tab_bar_background ${black}
# Tabs
# normal active_tab_background ${blue}
color0 ${black} active_tab_foreground ${bg_dark}
color1 ${red} inactive_tab_background ${bg_highlight}
color2 ${green} inactive_tab_foreground ${dark3}
color3 ${yellow} #tab_bar_background ${black}
color4 ${blue}
color5 ${magenta} # normal
color6 ${cyan} color0 ${black}
color7 ${fg_dark} color1 ${red}
color2 ${green}
# bright color3 ${yellow}
color8 ${terminal_black} color4 ${blue}
color9 ${red} color5 ${magenta}
color10 ${green} color6 ${cyan}
color11 ${yellow} color7 ${fg_dark}
color12 ${blue}
color13 ${magenta} # bright
color14 ${cyan} color8 ${terminal_black}
color15 ${fg} color9 ${red}
color10 ${green}
# extended colors color11 ${yellow}
color16 ${orange} color12 ${blue}
color17 ${red1} color13 ${magenta}
color14 ${cyan}
color15 ${fg}
# extended colors
color16 ${orange}
color17 ${red1}
]], ]],
colors colors
) )