Files
zenbones-theme/lua/seoulbones/init.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.6 KiB
Lua
Raw Normal View History

2021-11-12 16:23:39 +08:00
local lush = require "lush"
local generator = require "zenbones.specs"
2022-10-22 09:32:57 +08:00
local bg = vim.o.background
2021-11-12 16:23:39 +08:00
local p = require("seoulbones.palette")[bg]
local specs = generator.generate(p, bg, generator.get_global_config("seoulbones", bg))
if bg == "light" then
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
Comment { specs.Comment, fg = p.leaf },
2021-11-13 08:21:43 +08:00
Statement { specs.Statement, fg = p.water },
2021-11-12 16:23:39 +08:00
Keyword { fg = p.rose.de(25), gui = "bold" },
2021-11-13 08:21:43 +08:00
Exception { Keyword },
2021-11-12 16:23:39 +08:00
PreProc { fg = p.rose.de(40) },
2021-11-13 08:21:43 +08:00
Identifier { fg = p.fg },
Function { fg = lush.hsluv("#727100").de(12).da(5) },
Special { fg = p.blossom.de(30).da(10) },
2021-11-12 16:23:39 +08:00
Number { specs.Number, fg = p.orange },
2021-11-13 08:21:43 +08:00
String { specs.Constant, fg = p.water.de(40).da(8) },
2021-11-12 16:23:39 +08:00
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
else
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
Comment { specs.Comment, fg = lush.hsluv "#719872" },
2021-11-13 08:21:43 +08:00
Statement { specs.Statement, fg = p.water },
2021-11-12 16:23:39 +08:00
Keyword { fg = p.rose.de(12), gui = "bold" },
2021-11-13 08:21:43 +08:00
Exception { Keyword },
2021-11-12 16:23:39 +08:00
PreProc { fg = p.rose.de(25) },
2021-11-13 08:21:43 +08:00
Identifier { fg = p.fg },
Function { fg = lush.hsluv("#dfdebd").de(12) },
Special { fg = p.blossom.li(26) },
Number { specs.Number, fg = p.wood.de(30) },
String { specs.Constant, fg = p.water.de(20).li(10) },
2021-11-12 16:23:39 +08:00
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
end