Cleanup kitty themes (#91)
Makes them suitable for inclusion in https://github.com/kovidgoyal/kitty-themes
This commit is contained in:
@@ -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
|
background #e1e2e7
|
||||||
foreground #3760bf
|
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
|
background #1a1b26
|
||||||
foreground #c0caf5
|
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
|
background #24283b
|
||||||
foreground #c0caf5
|
foreground #c0caf5
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -6,7 +6,13 @@ 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
|
||||||
|
|
||||||
|
## name: ${_style_name}
|
||||||
|
## license: MIT
|
||||||
|
## author: Folke Lemaitre
|
||||||
|
## upstream: ${_upstream_url}
|
||||||
|
|
||||||
|
|
||||||
background ${bg}
|
background ${bg}
|
||||||
foreground ${fg}
|
foreground ${fg}
|
||||||
|
|||||||
Reference in New Issue
Block a user