From fdaacd95d691f1dd9615c89044dfdea8f873775c Mon Sep 17 00:00:00 2001 From: Sidhanth Rathod Date: Sat, 12 Nov 2022 19:39:33 +0530 Subject: [PATCH] Add Penumbra themes (#137) * feat: add penumbra_light & penumbra_dark themes color themes based from https://github.com/nealmckee/penumbra * clean up penumbra dark forgot to clean some commented codes prettified indent and space * clean up codes * Improve penumbra_dark theme * Polish penumbra_light theme Co-authored-by: ariefra --- lua/base46/themes/penumbra_dark.lua | 96 ++++++++++++++++++++++++++++ lua/base46/themes/penumbra_light.lua | 89 ++++++++++++++++++++++++++ 2 files changed, 185 insertions(+) create mode 100644 lua/base46/themes/penumbra_dark.lua create mode 100644 lua/base46/themes/penumbra_light.lua diff --git a/lua/base46/themes/penumbra_dark.lua b/lua/base46/themes/penumbra_dark.lua new file mode 100644 index 0000000..895c439 --- /dev/null +++ b/lua/base46/themes/penumbra_dark.lua @@ -0,0 +1,96 @@ +-- credits to original theme for existing https://github.com/nealmckee/penumbra +-- This is a modified version of it + +local M = {} + +M.base_30 = { + white = "#FFFDFB", + darker_black = "#2b2e33", + black = "#303338", + black2 = "#3a3d42", + one_bg = "#3d4045", + one_bg2 = "#484b50", + one_bg3 = "#515459", + grey = "#5c5f64", + grey_fg = "#676a6f", + grey_fg2 = "#72757a", + light_grey = "#7d8085", + red = "#CA7081", + baby_pink = "#E18163", + pink = "#D07EBA", + green = "#4EB67F", + vibrant_green = "#50B584", + nord_blue = "#6e8dd5", + blue = "#8C96EC", + yellow = "#c1ad4b", + sun = "#9CA748", + purple = "#ac78bd", + dark_purple = "#8C96EC", + orange = "#CE9042", + teal = "#00a6c8", + cyan = "#00B3C2", + line = "#3E4044", + statusline_bg = "#34373c", + lightbg = "#484b50", + pmenu_bg = "#4EB67F", + folder_bg = "#8C96EC", +} + +M.base_16 = { + base00 = "#303338", + base01 = "#3d4045", + base02 = "#484b50", + base03 = "#515459", + base04 = "#5c5f64", + base05 = "#CECECE", + base06 = "#F2E6D4", + base07 = "#FFF7ED", + base08 = "#999999", + base09 = "#BE85D1", + base0A = "#CA7081", + base0B = "#4ec093", + base0C = "#D68B47", + base0D = "#7A9BEC", + base0E = "#BE85D1", + base0F = "#A1A641", +} + +M.polish_hl = { + ["@field.key"] = { + fg = M.base_30.red, + }, + + Constant = { + fg = M.base_30.red, + }, + + ["@punctuation.bracket"] = { + fg = M.base_16.base08, + }, + + ["@constructor"] = { + fg = M.base_30.orange, + }, + + ["@parameter"] = { + fg = M.base_30.orange, + }, + + Operator = { + fg = M.base_30.cyan, + }, + + ["@tag.delimiter"] = { + fg = M.base_16.base08, + }, + + ["@tag.attribute"] = { + link = "@annotation", + }, +} + +vim.opt.bg = "dark" + +M = require("base46").override_theme(M, "penumbra_dark") + +return M diff --git a/lua/base46/themes/penumbra_light.lua b/lua/base46/themes/penumbra_light.lua new file mode 100644 index 0000000..e83a8c0 --- /dev/null +++ b/lua/base46/themes/penumbra_light.lua @@ -0,0 +1,89 @@ +-- credits to original theme for existing https://github.com/nealmckee/penumbra +-- this is a modified version of it + +local M = {} + +M.base_30 = { + white = "#3E4044", + light_grey = "#b0a89e", + grey_fg2 = "#bab2a8", + grey_fg = "#c4bcb2", + grey = "#cec6bc", + one_bg3 = "#dad2c8", + one_bg2 = "#e6ded4", + black2 = "#f0e8de", + one_bg = "#F2E6D4", + black = "#FFF7ED", + darker_black = "#f5ede3", + baby_pink = "#CA736C", + blue = "#6E8DD5", + cyan = "#00A0BA", + dark_purple = "#806db8", + green = "#3ea57b", + nord_blue = "#5794D0", + orange = "#BA823A", + pink = "#CA7081", + purple = "#ac78bd", + red = "#ca7081", + sun = "#A38F2D", + teal = "#22839b", + vibrant_green = "#46A473", + yellow = "#92963a", + line = "#ebe3d9", + statusline_bg = "#f5ede3", + lightbg = "#e6ded4", + pmenu_bg = "#ac78bd", + folder_bg = "#717171", + coal = "#8a8a8a", +} + +M.base_16 = { + base00 = "#FFF7ED", + base01 = "#FFF7ED", + base02 = "#F2E6D4", + base03 = "#CECECE", + base04 = "#9E9E9E", + base05 = "#636363", + base06 = "#3E4044", + base07 = "#24272B", + base08 = "#ca7081", + base09 = "#5a79c1", + base0A = "#BA823A", + base0B = "#3ea57b", + base0C = "#22839b", + base0D = "#4380bc", + base0E = "#ac78bd", + base0F = "#A1A641", +} + +M.polish_hl = { + ["@function.builtin"] = { + fg = M.base_30.teal, + }, + + ["@field.key"] = { + fg = M.base_30.red, + }, + + Constant = { + fg = M.base_30.red, + }, + + ["@punctuation.bracket"] = { + fg = M.base_30.coal, + }, + + ["@field"] = { + fg = M.base_30.coal, + }, + + Include = { + fg = M.base_30.dark_purple, + }, +} + +vim.opt.bg = "light" + +M = require("base46").override_theme(M, "penumbra_light") + +return M