mirror of https://github.com/gabehf/base46.git
parent
5d9c9db02e
commit
6852de99a7
@ -1,120 +1,33 @@
|
||||
local theme = require("base46").get_theme_tb "base_16"
|
||||
|
||||
local syntax = {
|
||||
Boolean = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
Character = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
Conditional = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
Constant = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
Define = {
|
||||
fg = theme.base0E,
|
||||
sp = "none",
|
||||
},
|
||||
|
||||
Delimiter = {
|
||||
fg = theme.base0F,
|
||||
},
|
||||
|
||||
Float = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
Variable = {
|
||||
fg = theme.base05,
|
||||
},
|
||||
|
||||
Function = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
Identifier = {
|
||||
fg = theme.base08,
|
||||
sp = "none",
|
||||
},
|
||||
|
||||
Include = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
Keyword = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
Label = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
Number = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
Operator = {
|
||||
fg = theme.base05,
|
||||
sp = "none",
|
||||
},
|
||||
|
||||
PreProc = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
Repeat = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
Special = {
|
||||
fg = theme.base0C,
|
||||
},
|
||||
|
||||
SpecialChar = {
|
||||
fg = theme.base0F,
|
||||
},
|
||||
|
||||
Statement = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
StorageClass = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
String = {
|
||||
fg = theme.base0B,
|
||||
},
|
||||
|
||||
Structure = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
Tag = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
Todo = {
|
||||
fg = theme.base0A,
|
||||
bg = theme.base01,
|
||||
},
|
||||
|
||||
Type = {
|
||||
fg = theme.base0A,
|
||||
sp = "none",
|
||||
},
|
||||
|
||||
Typedef = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
Boolean = { fg = theme.base09 },
|
||||
Character = { fg = theme.base08 },
|
||||
Conditional = { fg = theme.base0E },
|
||||
Constant = { fg = theme.base08 },
|
||||
Define = { fg = theme.base0E, sp = "none" },
|
||||
Delimiter = { fg = theme.base0F },
|
||||
Float = { fg = theme.base09 },
|
||||
Variable = { fg = theme.base05 },
|
||||
Function = { fg = theme.base0D },
|
||||
Identifier = { fg = theme.base08, sp = "none" },
|
||||
Include = { fg = theme.base0D },
|
||||
Keyword = { fg = theme.base0E },
|
||||
Label = { fg = theme.base0A },
|
||||
Number = { fg = theme.base09 },
|
||||
Operator = { fg = theme.base05, sp = "none" },
|
||||
PreProc = { fg = theme.base0A },
|
||||
Repeat = { fg = theme.base0A },
|
||||
Special = { fg = theme.base0C },
|
||||
SpecialChar = { fg = theme.base0F },
|
||||
Statement = { fg = theme.base08 },
|
||||
StorageClass = { fg = theme.base0A },
|
||||
String = { fg = theme.base0B },
|
||||
Structure = { fg = theme.base0E },
|
||||
Tag = { fg = theme.base0A },
|
||||
Todo = { fg = theme.base0A, bg = theme.base01 },
|
||||
Type = { fg = theme.base0A, sp = "none" },
|
||||
Typedef = { fg = theme.base0A },
|
||||
}
|
||||
|
||||
local merge_tb = require("base46").merge_tb
|
||||
|
||||
return merge_tb(syntax, require("base46").load_integrationTB "treesitter")
|
||||
return syntax
|
||||
|
||||
@ -1,222 +1,59 @@
|
||||
local theme = require("base46").get_theme_tb "base_16"
|
||||
local base30 = require("base46").get_theme_tb "base_30"
|
||||
|
||||
return {
|
||||
-- `@annotation` is not one of the default capture group, should we keep it
|
||||
["@annotation"] = {
|
||||
fg = theme.base0F,
|
||||
},
|
||||
|
||||
["@attribute"] = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
["@character"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@constructor"] = {
|
||||
fg = theme.base0C,
|
||||
},
|
||||
|
||||
["@constant"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@constant.builtin"] = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
["@constant.macro"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@error"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@exception"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@float"] = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
["@keyword"] = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
["@keyword.function"] = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
["@keyword.return"] = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
["@function"] = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
["@function.builtin"] = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
["@function.macro"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@function.call"] = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
["@operator"] = {
|
||||
fg = theme.base05,
|
||||
},
|
||||
|
||||
["@keyword.operator"] = {
|
||||
fg = theme.base0E,
|
||||
},
|
||||
|
||||
["@method"] = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
["@method.call"] = {
|
||||
fg = theme.base0D,
|
||||
},
|
||||
|
||||
["@namespace"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@none"] = {
|
||||
fg = theme.base05,
|
||||
},
|
||||
|
||||
["@parameter"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@reference"] = {
|
||||
fg = theme.base05,
|
||||
},
|
||||
|
||||
["@punctuation.bracket"] = {
|
||||
fg = theme.base0F,
|
||||
},
|
||||
|
||||
["@punctuation.delimiter"] = {
|
||||
fg = theme.base0F,
|
||||
},
|
||||
|
||||
["@punctuation.special"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@string"] = {
|
||||
fg = theme.base0B,
|
||||
},
|
||||
|
||||
["@string.regex"] = {
|
||||
fg = theme.base0C,
|
||||
},
|
||||
|
||||
["@string.escape"] = {
|
||||
fg = theme.base0C,
|
||||
},
|
||||
|
||||
["@string.special"] = {
|
||||
fg = theme.base0C,
|
||||
},
|
||||
|
||||
["@symbol"] = {
|
||||
fg = theme.base0B,
|
||||
},
|
||||
|
||||
["@tag"] = {
|
||||
link = "Tag",
|
||||
},
|
||||
|
||||
["@tag.attribute"] = {
|
||||
link = "@property",
|
||||
},
|
||||
|
||||
["@tag.delimiter"] = {
|
||||
fg = theme.base0F,
|
||||
},
|
||||
|
||||
["@text"] = {
|
||||
fg = theme.base05,
|
||||
},
|
||||
|
||||
["@text.strong"] = {
|
||||
bold = true,
|
||||
},
|
||||
|
||||
["@text.emphasis"] = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
["@text.strike"] = {
|
||||
fg = theme.base0F,
|
||||
strikethrough = true,
|
||||
},
|
||||
|
||||
["@text.literal"] = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
["@text.uri"] = {
|
||||
fg = theme.base09,
|
||||
underline = true,
|
||||
},
|
||||
|
||||
["@type.builtin"] = {
|
||||
fg = theme.base0A,
|
||||
},
|
||||
|
||||
["@variable"] = {
|
||||
fg = theme.base05,
|
||||
},
|
||||
|
||||
["@variable.builtin"] = {
|
||||
fg = theme.base09,
|
||||
},
|
||||
|
||||
-- variable.global
|
||||
|
||||
["@definition"] = {
|
||||
sp = theme.base04,
|
||||
underline = true,
|
||||
},
|
||||
|
||||
-- TSDefinitionUsage = {
|
||||
-- sp = theme.base04,
|
||||
-- underline = true,
|
||||
-- },
|
||||
|
||||
["@scope"] = {
|
||||
bold = true,
|
||||
},
|
||||
|
||||
["@field"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@field.key"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@property"] = {
|
||||
fg = theme.base08,
|
||||
},
|
||||
|
||||
["@include"] = {
|
||||
link = "Include",
|
||||
},
|
||||
|
||||
["@conditional"] = {
|
||||
link = "Conditional",
|
||||
},
|
||||
["@annotation"] = { fg = theme.base0F },
|
||||
["@attribute"] = { fg = theme.base0A },
|
||||
["@character"] = { fg = theme.base08 },
|
||||
["@constructor"] = { fg = theme.base0C },
|
||||
["@constant"] = { fg = theme.base08 },
|
||||
["@constant.builtin"] = { fg = theme.base09 },
|
||||
["@constant.macro"] = { fg = theme.base08 },
|
||||
["@error"] = { fg = theme.base08 },
|
||||
["@exception"] = { fg = theme.base08 },
|
||||
["@float"] = { fg = theme.base09 },
|
||||
["@keyword"] = { fg = theme.base0E },
|
||||
["@keyword.function"] = { fg = theme.base0E },
|
||||
["@keyword.return"] = { fg = theme.base0E },
|
||||
["@function"] = { fg = theme.base0D },
|
||||
["@function.builtin"] = { fg = theme.base0D },
|
||||
["@function.macro"] = { fg = theme.base08 },
|
||||
["@function.call"] = { fg = theme.base0D },
|
||||
["@operator"] = { fg = theme.base05 },
|
||||
["@keyword.operator"] = { fg = theme.base0E },
|
||||
["@method"] = { fg = theme.base0D },
|
||||
["@method.call"] = { fg = theme.base0D },
|
||||
["@namespace"] = { fg = theme.base08 },
|
||||
["@none"] = { fg = theme.base05 },
|
||||
["@parameter"] = { fg = theme.base08 },
|
||||
["@reference"] = { fg = theme.base05 },
|
||||
["@punctuation.bracket"] = { fg = theme.base0F },
|
||||
["@punctuation.delimiter"] = { fg = theme.base0F },
|
||||
["@punctuation.special"] = { fg = theme.base08 },
|
||||
["@string"] = { fg = theme.base0B },
|
||||
["@string.regex"] = { fg = theme.base0C },
|
||||
["@string.escape"] = { fg = theme.base0C },
|
||||
["@string.special"] = { fg = theme.base0C },
|
||||
["@symbol"] = { fg = theme.base0B },
|
||||
["@tag"] = { fg = theme.base0A },
|
||||
["@tag.attribute"] = { fg = theme.base08 },
|
||||
["@tag.delimiter"] = { fg = theme.base0F },
|
||||
["@text"] = { fg = theme.base05 },
|
||||
["@text.strong"] = { bold = true },
|
||||
["@text.emphasis"] = { fg = theme.base09 },
|
||||
["@text.strike"] = { fg = theme.base0F, strikethrough = true },
|
||||
["@text.literal"] = { fg = theme.base09 },
|
||||
["@text.uri"] = { fg = theme.base09, underline = true },
|
||||
["@type.builtin"] = { fg = theme.base0A },
|
||||
["@variable"] = { fg = theme.base05 },
|
||||
["@variable.builtin"] = { fg = theme.base09 },
|
||||
["@definition"] = { sp = theme.base04, underline = true },
|
||||
["@scope"] = { bold = true },
|
||||
["@field"] = { fg = theme.base08 },
|
||||
["@field.key"] = { fg = theme.base08 },
|
||||
["@property"] = { fg = theme.base08 },
|
||||
["@include"] = { link = "Include" },
|
||||
["@conditional"] = { fg = theme.base0E },
|
||||
["@conditional.ternary"] = { fg = theme.base0E },
|
||||
["@comment"] = { fg = base30.grey_fg },
|
||||
}
|
||||
|
||||
@ -1,62 +0,0 @@
|
||||
-- Credits to https://github.com/kyoz/purify for existing
|
||||
-- this is a modified version of it
|
||||
|
||||
local M = {}
|
||||
|
||||
M.base_30 = {
|
||||
white = "#FAFAFA",
|
||||
darker_black = '#121b24',
|
||||
black = "#151F29", -- nvim bg
|
||||
black2 = "#1b2835",
|
||||
one_bg = "#213141",
|
||||
one_bg2 = "#293c4f",
|
||||
one_bg3 = "#334c64",
|
||||
grey = "#36506a",
|
||||
grey_fg = "#3e5b79",
|
||||
grey_fg2 = "#47698b",
|
||||
light_grey = "#4c7094",
|
||||
red = "#FF6059",
|
||||
baby_pink = "#FF88D5",
|
||||
pink = "#FF79C6",
|
||||
line = "#2A3441",
|
||||
green = "#5FFF87",
|
||||
vibrant_green = "#6AD4D6",
|
||||
blue = "#5FAFFF",
|
||||
nord_blue = "#52a2f2",
|
||||
yellow = "#FFFF87",
|
||||
sun = "#FFFF8F",
|
||||
purple = "#AF87FF",
|
||||
dark_purple = "#A070FF",
|
||||
teal = "#5CC6C8",
|
||||
orange = "#FF875F",
|
||||
cyan = "#69C3FF",
|
||||
statusline_bg = "#202A37",
|
||||
lightbg = "#313B48",
|
||||
pmenu_bg = "#5FAFFF",
|
||||
folder_bg = "#5FAFFF",
|
||||
}
|
||||
|
||||
M.base_16 = {
|
||||
base00 = "#151F29",
|
||||
base01 = "#252F3C",
|
||||
base02 = "#313B48",
|
||||
base03 = "#3D4754",
|
||||
base04 = "#565C64",
|
||||
base05 = "#EBEBEB",
|
||||
base06 = "#F5F5F5",
|
||||
base07 = "#FAFAFA",
|
||||
base08 = "#FF79C6",
|
||||
base09 = "#FF875F",
|
||||
base0A = "#FFFF87",
|
||||
base0B = "#5FFF87",
|
||||
base0C = "#69C3FF",
|
||||
base0D = "#5FAFFF",
|
||||
base0E = "#AF87FF",
|
||||
base0F = "#FF6059",
|
||||
}
|
||||
|
||||
M.type = "dark"
|
||||
|
||||
M = require("base46").override_theme(M, "purify")
|
||||
|
||||
return M
|
||||
Loading…
Reference in new issue