Polish github_light theme

v2.5
Sidhanth Rathod 3 years ago committed by GitHub
parent 8ab87b1241
commit 8ba2ae7e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,75 +1,82 @@
-- credits to original theme for existing https://github.com/primer/github-vscode-theme
-- This is a modified version of it
local M = {} local M = {}
M.base_30 = { M.base_30 = {
white = "#24292e", white = "#24292e",
darker_black = "#f6f8fa", darker_black = "#f3f5f7",
black = "#ffffff", -- nvim bg black = "#ffffff", -- nvim bg
-- black2 = "#f6f8fa", black2 = "#edeff1",
black2 = "#d4d8de", one_bg = "#eaecee",
one_bg = "#e1e4e8", one_bg2 = "#e1e3e5", -- StatusBar (filename)
one_bg2 = "#d4d8de", -- StatusBar (filename) one_bg3 = "#d7d9db",
one_bg3 = "#c5cbd3", grey = "#c7c9cb", -- Line numbers )
grey = "#babbbd", -- Line numbers (shouldn't be base01?) grey_fg = "#bcbec0",
grey_fg = "#6a737d", -- Why this affects comments? grey_fg2 = "#b1b3b5",
grey_fg2 = "#99a4b2", light_grey = "#a6a8aa",
light_grey = "#8b97a7", red = "#DE2C2E", -- StatusBar (username)
red = "#cb2431", -- StatusBar (username) baby_pink = "#ea4aaa",
baby_pink = "#fae5e7", pink = "#b93a86",
pink = "#dd3c49", line = "#eaecee", -- for lines like vertsplit
line = "#babbbd", -- for lines like vertsplit green = "#18654B",
green = "#28a745", -- StatusBar (file percentage) vibrant_green = "#28a745",
vibrant_green = "#d4f8db", nord_blue = "#0366d6", -- Mode indicator
nord_blue = "#044289", -- Mode indicator blue = "#0D7FDD",
blue = "#005cc5", yellow = "#dbab09",
yellow = "#b08800", sun = "#f9c513",
sun = "#dbab09", purple = "#8263EB",
purple = "#6f42c1",
dark_purple = "#5a32a3", dark_purple = "#5a32a3",
teal = "#3192aa", teal = "#22839b",
orange = "#e36209", orange = "#d15704",
cyan = "#0598bc", cyan = "#0598bc",
statusline_bg = "#e1e4e8", statusline_bg = "#edeff1",
lightbg = "#d4d8de", lightbg = "#e1e3e5",
pmenu_bg = "#032f62", pmenu_bg = "#8263EB",
folder_bg = "#6a737d", folder_bg = "#6a737d",
} }
M.base_16 = { M.base_16 = {
base00 = "#ffffff", -- Default bg base00 = "#ffffff", -- Default bg
base01 = "#f6f8fa", -- Lighter bg (status bar, line number, folding mks) base01 = "#edeff1", -- Lighter bg (status bar, line number, folding mks)
base02 = "#dbe9f9", -- Selection bg base02 = "#e1e3e5", -- Selection bg
base03 = "#6a737d", -- Comments, invisibles, line hl base03 = "#d7d9db", -- Comments, invisibles, line hl
base04 = "#666666", -- Dark fg (status bars) base04 = "#c7c9cb", -- Dark fg (status bars)
base05 = "#24292e", -- Default fg (caret, delimiters, Operators) base05 = "#383d42", -- Default fg (caret, delimiters, Operators)
base06 = "#24292e", -- Light fg (not often used) base06 = "#2e3338", -- Light fg (not often used)
base07 = "#ffffff", -- Light bg (not often used) base07 = "#24292e", -- Light bg (not often used)
base08 = "#e36209", -- Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted base08 = "#044289", -- Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
-- Change "Variables" with "parameters" base09 = "#b93a86", -- Integers, Boolean, Constants, XML Attributes, Markup Link Url
base09 = "#005cc5", -- Integers, Boolean, Constants, XML Attributes, Markup Link Url base0A = "#b08800", -- Classes, Markup Bold, Search Text Background
base0A = "#b31d28", -- Classes, Markup Bold, Search Text Background base0B = "#4c2889", -- Strings, Inherited Class, Markup Code, Diff Inserted
base0B = "#032f62", -- Strings, Inherited Class, Markup Code, Diff Inserted base0C = "#8263EB", -- Support, regex, escape chars
-- "%p" should be recognized as  base0D = "#005cc5", -- Function, methods, headings
base0C = "#005cc5", -- Support, regex, escape chars base0E = "#DE2C2E", -- Keywords
base0D = "#6f42c1", -- Function, methods, headings base0F = "#18654B", -- Deprecated, open/close embedded tags
-- #include should not be parsed as a heading if .c
base0E = "#d73a49", -- Keywords
base0F = "#24292e", -- Deprecated, open/close embedded tags
} }
vim.opt.bg = "light" vim.opt.bg = "light"
M.polish_hl = { M.polish_hl = {
TelescopePromptPrefix = { fg = M.base_30.white }, ["@punctuation.bracket"] = {
TelescopeSelection = { bg = M.base_30.one_bg, fg = M.base_30.white }, fg = M.base_30.folder_bg,
FloatBorder = { fg = M.base_16.base05 }, },
DiffAdd = { fg = M.base_16.base05 },
TbLineThemeToggleBtn = { bg = M.base_30.one_bg3 }, ["@field.key"] = {
WhichKeyDesc = { fg = M.base_30.white }, fg = M.base_30.white,
Pmenu = { bg = M.base_30.black2 }, },
St_pos_text = { fg = M.base_30.white },
TSVariableBuiltin = { fg = M.base_30.red }, Constant = {
TSProperty = { fg = M.base_30.teal }, fg = M.base_16.base07,
},
["@constructor"] = {
fg = M.base_30.vibrant_green,
},
Tag = {
fg = M.base_30.vibrant_green,
},
} }
M = require("base46").override_theme(M, "github_light") M = require("base46").override_theme(M, "github_light")

Loading…
Cancel
Save