add seoulbones

This commit is contained in:
Michael Chris Lopez
2021-11-12 16:23:39 +08:00
parent 90f9865af3
commit edd7b3e265
6 changed files with 613 additions and 0 deletions

44
lua/seoulbones/init.lua Normal file
View File

@@ -0,0 +1,44 @@
local lush = require "lush"
local generator = require "zenbones.specs"
local bg = vim.opt.background:get()
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 },
Keyword { fg = p.rose.de(25), gui = "bold" },
PreProc { fg = p.rose.de(40) },
Conditional { fg = p.water },
Type { fg = lush.hsluv "#727100" },
Special { specs.Special, fg = p.blossom },
Number { specs.Number, fg = p.orange },
Delimiter { fg = p.wood.de(40).da(10) },
String { specs.Constant, fg = p.water.de(40).da(10) },
}
-- 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" },
Keyword { fg = p.rose.de(12), gui = "bold" },
PreProc { fg = p.rose.de(25) },
Conditional { fg = p.water },
Type { fg = lush.hsluv "#dfdebd" },
Special { specs.Special, fg = p.blossom.li(36) },
Number { specs.Number, fg = p.wood.de(20) },
Delimiter { fg = p.wood.de(50).da(30) },
String { specs.Constant, fg = p.water.de(20).li(12) },
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
end

View File

@@ -0,0 +1,31 @@
local util = require "zenbones.util"
local lush = require "lush"
local hsluv = lush.hsluv
local M = {}
M.light = util.palette_extend({
bg = hsluv "#e1e1e1",
fg = hsluv("#616161").da(12),
rose = hsluv("#e17899").da(12),
leaf = hsluv("#719872").da(12),
wood = hsluv("#e19972").da(12),
water = hsluv("#0099bd").da(12),
blossom = hsluv("#9a7599").da(12),
sky = hsluv("#009799").da(12),
orange = hsluv("#9a7200").da(12),
}, "light")
M.dark = util.palette_extend({
bg = hsluv "#4b4b4b",
fg = hsluv("#d9d9d9").li(20),
rose = hsluv("#e17899").li(12),
leaf = hsluv "#98bc99",
wood = hsluv "#ffde99",
water = hsluv "#98bede",
blossom = hsluv "#999abd",
sky = hsluv "#6fbcbd",
orange = hsluv "#e19972",
}, "dark")
return M