feat: add duckbones flavor

This commit is contained in:
Michael Chris Lopez
2021-11-04 09:46:36 +08:00
parent a4a46e0bdc
commit ecef0367bc
6 changed files with 54 additions and 0 deletions

17
lua/duckbones/init.lua Normal file
View File

@@ -0,0 +1,17 @@
local lush = require "lush"
local generator = require "zenbones.specs"
local p = require("duckbones.palette").dark
local specs = generator.generate(p, "dark", generator.get_global_config("duckbones", "dark"))
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
Statement { specs.Statement, fg = p.blossom },
Special { fg = p.leaf },
PreProc { fg = p.sky },
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)

19
lua/duckbones/palette.lua Normal file
View File

@@ -0,0 +1,19 @@
local util = require "zenbones.util"
local lush = require "lush"
local hsluv = lush.hsluv
local M = {}
M.dark = util.palette_extend {
bg = hsluv "#0f111b",
fg = hsluv "#ecf0c1",
rose = hsluv "#e33400",
leaf = hsluv "#5ccc96",
wood = hsluv "#e39400",
water = hsluv "#00a3cc",
blossom = hsluv "#7a5ccc",
blossom1 = hsluv "#b3a1e6",
sky = hsluv "#00a3cc",
}
return M