From e83f1d5b7dd4ddd5f5f82eea36a471698f5d4346 Mon Sep 17 00:00:00 2001 From: Flo <61933015+olfx@users.noreply.github.com> Date: Fri, 2 Sep 2022 07:56:05 +0200 Subject: [PATCH] feat(extras): add Tilix themes (#188) --- extras/tilix_tokyonight_day.json | 26 +++++++++++++++++++ extras/tilix_tokyonight_night.json | 26 +++++++++++++++++++ extras/tilix_tokyonight_storm.json | 26 +++++++++++++++++++ lua/tokyonight/extra/init.lua | 1 + lua/tokyonight/extra/tilix.lua | 40 ++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 extras/tilix_tokyonight_day.json create mode 100644 extras/tilix_tokyonight_night.json create mode 100644 extras/tilix_tokyonight_storm.json create mode 100644 lua/tokyonight/extra/tilix.lua diff --git a/extras/tilix_tokyonight_day.json b/extras/tilix_tokyonight_day.json new file mode 100644 index 0000000..02a5919 --- /dev/null +++ b/extras/tilix_tokyonight_day.json @@ -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" + ] +} + \ No newline at end of file diff --git a/extras/tilix_tokyonight_night.json b/extras/tilix_tokyonight_night.json new file mode 100644 index 0000000..e66ce2f --- /dev/null +++ b/extras/tilix_tokyonight_night.json @@ -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" + ] +} + \ No newline at end of file diff --git a/extras/tilix_tokyonight_storm.json b/extras/tilix_tokyonight_storm.json new file mode 100644 index 0000000..e3ea8af --- /dev/null +++ b/extras/tilix_tokyonight_storm.json @@ -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" + ] +} + \ No newline at end of file diff --git a/lua/tokyonight/extra/init.lua b/lua/tokyonight/extra/init.lua index a584b92..40fa00e 100644 --- a/lua/tokyonight/extra/init.lua +++ b/lua/tokyonight/extra/init.lua @@ -18,6 +18,7 @@ local extras = { tmux = "tmux", xresources = "Xresources", xfceterm = "theme", + tilix = "json", } -- map of style to style name local styles = { diff --git a/lua/tokyonight/extra/tilix.lua b/lua/tokyonight/extra/tilix.lua new file mode 100644 index 0000000..0b08390 --- /dev/null +++ b/lua/tokyonight/extra/tilix.lua @@ -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