Cleanup kitty themes (#91)
Makes them suitable for inclusion in https://github.com/kovidgoyal/kitty-themes
This commit is contained in:
parent
8e8a11e001
commit
eede574f9e
@ -1,4 +1,10 @@
|
||||
# TokyoNight colors for Kitty
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Tokyo Night Day
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_day.conf
|
||||
|
||||
|
||||
background #e1e2e7
|
||||
foreground #3760bf
|
||||
|
@ -1,4 +1,10 @@
|
||||
# TokyoNight colors for Kitty
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Tokyo Night
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_night.conf
|
||||
|
||||
|
||||
background #1a1b26
|
||||
foreground #c0caf5
|
||||
|
@ -1,4 +1,10 @@
|
||||
# TokyoNight colors for Kitty
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Tokyo Night Storm
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_storm.conf
|
||||
|
||||
|
||||
background #24283b
|
||||
foreground #c0caf5
|
||||
|
@ -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,7 +6,13 @@ local M = {}
|
||||
function M.generate(colors)
|
||||
local kitty = util.template(
|
||||
[[
|
||||
# TokyoNight colors for Kitty
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: ${_style_name}
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: ${_upstream_url}
|
||||
|
||||
|
||||
background ${bg}
|
||||
foreground ${fg}
|
||||
|
Loading…
Reference in New Issue
Block a user