feat: expose colors
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
-- Copyright (c) 2021-2021 tiagovla
|
-- Copyright (c) 2021-2021 tiagovla
|
||||||
-- License: MIT
|
-- License: MIT
|
||||||
--
|
--
|
||||||
local p = require('tokyodark.palette')
|
local p = require("tokyodark.palette")
|
||||||
local colors = {
|
local colors = {
|
||||||
bg = p.bg0,
|
bg = p.bg0,
|
||||||
fg = p.fg,
|
fg = p.fg,
|
||||||
@@ -11,25 +11,34 @@ local colors = {
|
|||||||
blue = p.blue,
|
blue = p.blue,
|
||||||
purple = p.purple,
|
purple = p.purple,
|
||||||
cyan = p.cyan,
|
cyan = p.cyan,
|
||||||
gray = p.grey
|
grey = p.grey,
|
||||||
}
|
}
|
||||||
|
|
||||||
local tokyo_night = {
|
local tokyo_dark = {
|
||||||
inactive = {
|
inactive = {
|
||||||
a = {fg = colors.gray, bg = colors.bg, gui = 'bold'},
|
a = { fg = colors.grey, bg = colors.bg, gui = "bold" },
|
||||||
b = {fg = colors.gray, bg = colors.bg},
|
b = { fg = colors.grey, bg = colors.bg },
|
||||||
c = {fg = colors.bg, bg = colors.bg},
|
c = { fg = colors.grey, bg = colors.bg },
|
||||||
z = {fg = colors.gray, bg = colors.bg}
|
z = { fg = colors.grey, bg = colors.bg },
|
||||||
},
|
},
|
||||||
normal = {
|
normal = {
|
||||||
a = {fg = colors.bg, bg = colors.green, gui = 'bold'},
|
a = { fg = colors.bg, bg = colors.green, gui = "bold" },
|
||||||
b = {fg = colors.fg, bg = colors.bg},
|
b = { fg = colors.fg, bg = colors.bg },
|
||||||
c = {fg = colors.fg, bg = colors.bg},
|
c = { fg = colors.fg, bg = colors.bg },
|
||||||
z = {fg = colors.fg, bg = colors.bg}
|
z = { fg = colors.fg, bg = colors.bg },
|
||||||
},
|
},
|
||||||
visual = {a = {fg = colors.bg, bg = colors.purple, gui = 'bold'}},
|
visual = { a = { fg = colors.bg, bg = colors.purple, gui = "bold" } },
|
||||||
replace = {a = {fg = colors.bg, bg = colors.red, gui = 'bold'}},
|
replace = { a = { fg = colors.bg, bg = colors.red, gui = "bold" } },
|
||||||
insert = {a = {fg = colors.bg, bg = colors.blue, gui = 'bold'}}
|
insert = { a = { fg = colors.bg, bg = colors.blue, gui = "bold" } },
|
||||||
}
|
}
|
||||||
|
|
||||||
return tokyo_night
|
local mt = {}
|
||||||
|
function mt:__index(k)
|
||||||
|
if k == "colors" then
|
||||||
|
return colors
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
tokyo_dark = setmetatable(tokyo_dark, mt)
|
||||||
|
|
||||||
|
return tokyo_dark
|
||||||
|
|||||||
Reference in New Issue
Block a user