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 theme = require("base46").get_theme_tb "base_16"
|
||||||
|
|
||||||
local syntax = {
|
local syntax = {
|
||||||
Boolean = {
|
Boolean = { fg = theme.base09 },
|
||||||
fg = theme.base09,
|
Character = { fg = theme.base08 },
|
||||||
},
|
Conditional = { fg = theme.base0E },
|
||||||
|
Constant = { fg = theme.base08 },
|
||||||
Character = {
|
Define = { fg = theme.base0E, sp = "none" },
|
||||||
fg = theme.base08,
|
Delimiter = { fg = theme.base0F },
|
||||||
},
|
Float = { fg = theme.base09 },
|
||||||
|
Variable = { fg = theme.base05 },
|
||||||
Conditional = {
|
Function = { fg = theme.base0D },
|
||||||
fg = theme.base0E,
|
Identifier = { fg = theme.base08, sp = "none" },
|
||||||
},
|
Include = { fg = theme.base0D },
|
||||||
|
Keyword = { fg = theme.base0E },
|
||||||
Constant = {
|
Label = { fg = theme.base0A },
|
||||||
fg = theme.base08,
|
Number = { fg = theme.base09 },
|
||||||
},
|
Operator = { fg = theme.base05, sp = "none" },
|
||||||
|
PreProc = { fg = theme.base0A },
|
||||||
Define = {
|
Repeat = { fg = theme.base0A },
|
||||||
fg = theme.base0E,
|
Special = { fg = theme.base0C },
|
||||||
sp = "none",
|
SpecialChar = { fg = theme.base0F },
|
||||||
},
|
Statement = { fg = theme.base08 },
|
||||||
|
StorageClass = { fg = theme.base0A },
|
||||||
Delimiter = {
|
String = { fg = theme.base0B },
|
||||||
fg = theme.base0F,
|
Structure = { fg = theme.base0E },
|
||||||
},
|
Tag = { fg = theme.base0A },
|
||||||
|
Todo = { fg = theme.base0A, bg = theme.base01 },
|
||||||
Float = {
|
Type = { fg = theme.base0A, sp = "none" },
|
||||||
fg = theme.base09,
|
Typedef = { fg = theme.base0A },
|
||||||
},
|
|
||||||
|
|
||||||
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 syntax
|
||||||
|
|
||||||
return merge_tb(syntax, require("base46").load_integrationTB "treesitter")
|
|
||||||
|
|||||||
@ -1,222 +1,59 @@
|
|||||||
local theme = require("base46").get_theme_tb "base_16"
|
local theme = require("base46").get_theme_tb "base_16"
|
||||||
|
local base30 = require("base46").get_theme_tb "base_30"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- `@annotation` is not one of the default capture group, should we keep it
|
["@annotation"] = { fg = theme.base0F },
|
||||||
["@annotation"] = {
|
["@attribute"] = { fg = theme.base0A },
|
||||||
fg = theme.base0F,
|
["@character"] = { fg = theme.base08 },
|
||||||
},
|
["@constructor"] = { fg = theme.base0C },
|
||||||
|
["@constant"] = { fg = theme.base08 },
|
||||||
["@attribute"] = {
|
["@constant.builtin"] = { fg = theme.base09 },
|
||||||
fg = theme.base0A,
|
["@constant.macro"] = { fg = theme.base08 },
|
||||||
},
|
["@error"] = { fg = theme.base08 },
|
||||||
|
["@exception"] = { fg = theme.base08 },
|
||||||
["@character"] = {
|
["@float"] = { fg = theme.base09 },
|
||||||
fg = theme.base08,
|
["@keyword"] = { fg = theme.base0E },
|
||||||
},
|
["@keyword.function"] = { fg = theme.base0E },
|
||||||
|
["@keyword.return"] = { fg = theme.base0E },
|
||||||
["@constructor"] = {
|
["@function"] = { fg = theme.base0D },
|
||||||
fg = theme.base0C,
|
["@function.builtin"] = { fg = theme.base0D },
|
||||||
},
|
["@function.macro"] = { fg = theme.base08 },
|
||||||
|
["@function.call"] = { fg = theme.base0D },
|
||||||
["@constant"] = {
|
["@operator"] = { fg = theme.base05 },
|
||||||
fg = theme.base08,
|
["@keyword.operator"] = { fg = theme.base0E },
|
||||||
},
|
["@method"] = { fg = theme.base0D },
|
||||||
|
["@method.call"] = { fg = theme.base0D },
|
||||||
["@constant.builtin"] = {
|
["@namespace"] = { fg = theme.base08 },
|
||||||
fg = theme.base09,
|
["@none"] = { fg = theme.base05 },
|
||||||
},
|
["@parameter"] = { fg = theme.base08 },
|
||||||
|
["@reference"] = { fg = theme.base05 },
|
||||||
["@constant.macro"] = {
|
["@punctuation.bracket"] = { fg = theme.base0F },
|
||||||
fg = theme.base08,
|
["@punctuation.delimiter"] = { fg = theme.base0F },
|
||||||
},
|
["@punctuation.special"] = { fg = theme.base08 },
|
||||||
|
["@string"] = { fg = theme.base0B },
|
||||||
["@error"] = {
|
["@string.regex"] = { fg = theme.base0C },
|
||||||
fg = theme.base08,
|
["@string.escape"] = { fg = theme.base0C },
|
||||||
},
|
["@string.special"] = { fg = theme.base0C },
|
||||||
|
["@symbol"] = { fg = theme.base0B },
|
||||||
["@exception"] = {
|
["@tag"] = { fg = theme.base0A },
|
||||||
fg = theme.base08,
|
["@tag.attribute"] = { fg = theme.base08 },
|
||||||
},
|
["@tag.delimiter"] = { fg = theme.base0F },
|
||||||
|
["@text"] = { fg = theme.base05 },
|
||||||
["@float"] = {
|
["@text.strong"] = { bold = true },
|
||||||
fg = theme.base09,
|
["@text.emphasis"] = { fg = theme.base09 },
|
||||||
},
|
["@text.strike"] = { fg = theme.base0F, strikethrough = true },
|
||||||
|
["@text.literal"] = { fg = theme.base09 },
|
||||||
["@keyword"] = {
|
["@text.uri"] = { fg = theme.base09, underline = true },
|
||||||
fg = theme.base0E,
|
["@type.builtin"] = { fg = theme.base0A },
|
||||||
},
|
["@variable"] = { fg = theme.base05 },
|
||||||
|
["@variable.builtin"] = { fg = theme.base09 },
|
||||||
["@keyword.function"] = {
|
["@definition"] = { sp = theme.base04, underline = true },
|
||||||
fg = theme.base0E,
|
["@scope"] = { bold = true },
|
||||||
},
|
["@field"] = { fg = theme.base08 },
|
||||||
|
["@field.key"] = { fg = theme.base08 },
|
||||||
["@keyword.return"] = {
|
["@property"] = { fg = theme.base08 },
|
||||||
fg = theme.base0E,
|
["@include"] = { link = "Include" },
|
||||||
},
|
["@conditional"] = { fg = theme.base0E },
|
||||||
|
["@conditional.ternary"] = { fg = theme.base0E },
|
||||||
["@function"] = {
|
["@comment"] = { fg = base30.grey_fg },
|
||||||
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",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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