From d48efd4a5842cc38a688ad7f5e68c9a7e0898d13 Mon Sep 17 00:00:00 2001 From: siduck Date: Mon, 5 Dec 2022 17:13:19 +0530 Subject: [PATCH] Add tundra theme #143 --- lua/base46/integrations/treesitter.lua | 6 +- lua/base46/themes/tundra.lua | 104 +++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 lua/base46/themes/tundra.lua diff --git a/lua/base46/integrations/treesitter.lua b/lua/base46/integrations/treesitter.lua index 1de9225..6193c9c 100644 --- a/lua/base46/integrations/treesitter.lua +++ b/lua/base46/integrations/treesitter.lua @@ -62,6 +62,10 @@ return { fg = theme.base08, }, + ["@function.call"] = { + fg = theme.base0D, + }, + ["@keyword.operator"] = { fg = theme.base0E, }, @@ -179,7 +183,7 @@ return { ["@field"] = { fg = theme.base08, }, - + ["@field.key"] = { fg = theme.base08, }, diff --git a/lua/base46/themes/tundra.lua b/lua/base46/themes/tundra.lua new file mode 100644 index 0000000..a9999ca --- /dev/null +++ b/lua/base46/themes/tundra.lua @@ -0,0 +1,104 @@ +-- Thanks to original theme for existing https://github.com/sam4llis/nvim-tundra +-- this is a modified version of it + +local M = {} + +M.base_30 = { + white = "#FFFFFF", + darker_black = "#0b1221", + black = "#111827", -- nvim bg + black2 = "#1a2130", + one_bg = "#1e2534", + one_bg2 = "#282f3e", + one_bg3 = "#323948", + grey = "#3e4554", + grey_fg = "#4a5160", + grey_fg2 = "#545b6a", + light_grey = "#5f6675", + red = "#FCA5A5", + baby_pink = "#FECDD3", + pink = "#ff8e8e", + line = "#282f3e", -- for lines like vertsplit + green = "#B5E8B0", + vibrant_green = "#B5E8B0", + nord_blue = "#9baaf2", + blue = "#A5B4FC", + yellow = "#E8D4B0", + sun = "#f2deba", + purple = "#BDB0E4", + dark_purple = "#b3a6da", + teal = "#719bd3", + orange = "#FBC19D", + cyan = "#BAE6FD", + statusline_bg = "#171e2d", + lightbg = "#282f3e", + pmenu_bg = "#FCA5A5", + folder_bg = "#A5B4FC", +} + +M.base_16 = { + base00 = "#111827", + base01 = "#1e2534", + base02 = "#282f3e", + base03 = "#323948", + base04 = "#3e4554", + base05 = "#F3F4F6", + base06 = "#E5E7EB", + base07 = "#D1D5DB", + base08 = "#DDD6FE", + base09 = "#E8D4B0", + base0A = "#FBC19D", + base0B = "#B5E8B0", + base0C = "#BAE6FD", + base0D = "#BAE6FD", + base0E = "#FCA5A5", + base0F = "#9CA3AF", +} + +M.type = "dark" + +M.polish_hl = { + Constant = { + fg = M.base_30.orange, + }, + + ["@constructor"] = { + fg = M.base_30.cyan, + }, + + ["@keyword"] = { + fg = M.base_30.red, + }, + + ["@method.call"] = { + fg = M.base_30.cyan, + }, + + ["@function.call"] = { + fg = M.base_30.cyan, + }, + + ["@function.builtin"] = { + fg = M.base_30.orange, + }, + + Conditional = { + fg = M.base_30.baby_pink, + }, + + Repeat = { + fg = M.base_30.baby_pink, + }, + + Type = { + fg = M.base_30.baby_pink, + }, + + Operator = { + fg = M.base_30.baby_pink, + }, +} + +M = require("base46").override_theme(M, "tundra") + +return M