2021-04-20 11:39:38 +00:00
|
|
|
local util = require("tokyonight.util")
|
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
2021-06-04 06:26:02 +00:00
|
|
|
--- @param colors ColorScheme
|
|
|
|
function M.generate(colors)
|
2021-05-12 09:19:28 +00:00
|
|
|
local kitty = util.template(
|
|
|
|
[[
|
2021-08-30 10:43:43 +00:00
|
|
|
# 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}
|
2022-09-02 06:07:31 +00:00
|
|
|
cursor_text_color ${bg}
|
2021-08-30 10:43:43 +00:00
|
|
|
|
|
|
|
# Tabs
|
|
|
|
active_tab_background ${blue}
|
|
|
|
active_tab_foreground ${bg_dark}
|
|
|
|
inactive_tab_background ${bg_highlight}
|
|
|
|
inactive_tab_foreground ${dark3}
|
|
|
|
#tab_bar_background ${black}
|
|
|
|
|
2022-10-20 15:51:08 +00:00
|
|
|
# Windows
|
|
|
|
active_border_color ${blue}
|
|
|
|
inactive_border_color ${bg_highlight}
|
|
|
|
|
2021-08-30 10:43:43 +00:00
|
|
|
# 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}
|
2022-11-08 20:58:44 +00:00
|
|
|
]],
|
2021-05-12 09:19:28 +00:00
|
|
|
colors
|
|
|
|
)
|
2021-04-20 11:39:38 +00:00
|
|
|
return kitty
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|