Cleanup kitty themes (#91)
Makes them suitable for inclusion in https://github.com/kovidgoyal/kitty-themes
This commit is contained in:
@@ -19,15 +19,23 @@ local extras = {
|
||||
xresources = "Xresources",
|
||||
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
|
||||
local plugin = require("tokyonight.extra." .. extra)
|
||||
for _, style in pairs(styles) do
|
||||
for style, style_name in pairs(styles) do
|
||||
config.style = style
|
||||
config = config or require("tokyonight.config")
|
||||
config.transform_colors = true
|
||||
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
|
||||
|
||||
@@ -6,45 +6,51 @@ local M = {}
|
||||
function M.generate(colors)
|
||||
local kitty = util.template(
|
||||
[[
|
||||
# TokyoNight colors for Kitty
|
||||
|
||||
background ${bg}
|
||||
foreground ${fg}
|
||||
selection_background ${bg_visual}
|
||||
selection_foreground ${fg}
|
||||
url_color ${green1}
|
||||
cursor ${fg}
|
||||
|
||||
# Tabs
|
||||
active_tab_background ${blue}
|
||||
active_tab_foreground ${bg_dark}
|
||||
inactive_tab_background ${bg_highlight}
|
||||
inactive_tab_foreground ${dark3}
|
||||
#tab_bar_background ${black}
|
||||
|
||||
# normal
|
||||
color0 ${black}
|
||||
color1 ${red}
|
||||
color2 ${green}
|
||||
color3 ${yellow}
|
||||
color4 ${blue}
|
||||
color5 ${magenta}
|
||||
color6 ${cyan}
|
||||
color7 ${fg_dark}
|
||||
|
||||
# bright
|
||||
color8 ${terminal_black}
|
||||
color9 ${red}
|
||||
color10 ${green}
|
||||
color11 ${yellow}
|
||||
color12 ${blue}
|
||||
color13 ${magenta}
|
||||
color14 ${cyan}
|
||||
color15 ${fg}
|
||||
|
||||
# extended colors
|
||||
color16 ${orange}
|
||||
color17 ${red1}
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: ${_style_name}
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: ${_upstream_url}
|
||||
|
||||
|
||||
background ${bg}
|
||||
foreground ${fg}
|
||||
selection_background ${bg_visual}
|
||||
selection_foreground ${fg}
|
||||
url_color ${green1}
|
||||
cursor ${fg}
|
||||
|
||||
# Tabs
|
||||
active_tab_background ${blue}
|
||||
active_tab_foreground ${bg_dark}
|
||||
inactive_tab_background ${bg_highlight}
|
||||
inactive_tab_foreground ${dark3}
|
||||
#tab_bar_background ${black}
|
||||
|
||||
# normal
|
||||
color0 ${black}
|
||||
color1 ${red}
|
||||
color2 ${green}
|
||||
color3 ${yellow}
|
||||
color4 ${blue}
|
||||
color5 ${magenta}
|
||||
color6 ${cyan}
|
||||
color7 ${fg_dark}
|
||||
|
||||
# bright
|
||||
color8 ${terminal_black}
|
||||
color9 ${red}
|
||||
color10 ${green}
|
||||
color11 ${yellow}
|
||||
color12 ${blue}
|
||||
color13 ${magenta}
|
||||
color14 ${cyan}
|
||||
color15 ${fg}
|
||||
|
||||
# extended colors
|
||||
color16 ${orange}
|
||||
color17 ${red1}
|
||||
]],
|
||||
colors
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user