feat(extras): add Tilix themes (#188)

This commit is contained in:
Flo 2022-09-02 07:56:05 +02:00 committed by GitHub
parent 8583ca39dd
commit e83f1d5b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 119 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{
"name": "Tokyo Night Day",
"comment": "",
"use-theme-colors": false,
"foreground-color": "#3760bf",
"background-color": "#e1e2e7",
"palette": [
"#e9e9ed",
"#f52a65",
"#587539",
"#8c6c3e",
"#2e7de9",
"#9854f1",
"#007197",
"#6172b0",
"#a1a6c5",
"#f52a65",
"#587539",
"#8c6c3e",
"#2e7de9",
"#9854f1",
"#007197",
"#3760bf"
]
}

View File

@ -0,0 +1,26 @@
{
"name": "Tokyo Night",
"comment": "",
"use-theme-colors": false,
"foreground-color": "#c0caf5",
"background-color": "#1a1b26",
"palette": [
"#15161E",
"#f7768e",
"#9ece6a",
"#e0af68",
"#7aa2f7",
"#bb9af7",
"#7dcfff",
"#a9b1d6",
"#414868",
"#f7768e",
"#9ece6a",
"#e0af68",
"#7aa2f7",
"#bb9af7",
"#7dcfff",
"#c0caf5"
]
}

View File

@ -0,0 +1,26 @@
{
"name": "Tokyo Night Storm",
"comment": "",
"use-theme-colors": false,
"foreground-color": "#c0caf5",
"background-color": "#24283b",
"palette": [
"#1D202F",
"#f7768e",
"#9ece6a",
"#e0af68",
"#7aa2f7",
"#bb9af7",
"#7dcfff",
"#a9b1d6",
"#414868",
"#f7768e",
"#9ece6a",
"#e0af68",
"#7aa2f7",
"#bb9af7",
"#7dcfff",
"#c0caf5"
]
}

View File

@ -18,6 +18,7 @@ local extras = {
tmux = "tmux",
xresources = "Xresources",
xfceterm = "theme",
tilix = "json",
}
-- map of style to style name
local styles = {

View File

@ -0,0 +1,40 @@
local util = require("tokyonight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local tilix = util.template(
[[
{
"name": "${_style_name}",
"comment": "",
"use-theme-colors": false,
"foreground-color": "${fg}",
"background-color": "${bg}",
"palette": [
"${black}",
"${red}",
"${green}",
"${yellow}",
"${blue}",
"${magenta}",
"${cyan}",
"${fg_dark}",
"${terminal_black}",
"${red}",
"${green}",
"${yellow}",
"${blue}",
"${magenta}",
"${cyan}",
"${fg}"
]
}
]],
colors
)
return tilix
end
return M