feat: add duckbones flavor
This commit is contained in:
@@ -59,6 +59,7 @@ colorscheme rosebones " Rosé Pine flavor - https://rosepinetheme.com
|
||||
colorscheme forestbones " Everforest flavor - https://github.com/sainnhe/everforest
|
||||
colorscheme nordbones " Nord flavor - https://www.nordtheme.com/docs/colors-and-palettes
|
||||
colorscheme tokyobones " Tokyo Night flavor - https://github.com/enkia/tokyo-night-vscode-theme#color-palette
|
||||
colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck
|
||||
```
|
||||
|
||||
## [Configuration and other documentations](doc/zenbones.md)
|
||||
|
||||
12
colors/duckbones.lua
Normal file
12
colors/duckbones.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
if vim.g.colors_name then
|
||||
vim.api.nvim_command "highlight clear"
|
||||
end
|
||||
|
||||
vim.g.colors_name = "duckbones"
|
||||
vim.opt.background = "dark"
|
||||
|
||||
package.loaded["duckbones"] = nil
|
||||
require "lush"(require "duckbones", { force_clean = false })
|
||||
|
||||
local p = require("duckbones.palette").dark
|
||||
require("zenbones.term").apply_colors(p)
|
||||
@@ -32,3 +32,7 @@
|
||||
|
||||
<img width="1128" alt="Screen Shot 2021-10-31 at 8 52 12 AM" src="https://user-images.githubusercontent.com/7200153/139562421-aa2b0fc2-ee0e-4e43-91b4-b9a8da26e1d0.png">
|
||||
<img width="1128" alt="Screen Shot 2021-10-31 at 8 52 20 AM" src="https://user-images.githubusercontent.com/7200153/139562422-ef25c51d-6c1d-48d1-85f6-0c6a908dda6b.png">
|
||||
|
||||
## Duckbones
|
||||
|
||||
<img width="1128" alt="Screen Shot 2021-11-04 at 9 45 11 AM" src="https://user-images.githubusercontent.com/7200153/140243463-03632d42-c53d-41ee-96ac-8a657694f81c.png">
|
||||
|
||||
@@ -21,6 +21,7 @@ colorscheme rosebones " Rosé Pine flavor - https://rosepinetheme.com
|
||||
colorscheme forestbones " Everforest flavor - https://github.com/sainnhe/everforest
|
||||
colorscheme nordbones " Nord flavor - https://www.nordtheme.com/docs/colors-and-palettes
|
||||
colorscheme tokyobones " Tokyo Night flavor - https://github.com/enkia/tokyo-night-vscode-theme#color-palette
|
||||
colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck
|
||||
```
|
||||
|
||||
It works pretty much the same as the first one but pretty handy when extending
|
||||
|
||||
17
lua/duckbones/init.lua
Normal file
17
lua/duckbones/init.lua
Normal 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
19
lua/duckbones/palette.lua
Normal 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
|
||||
Reference in New Issue
Block a user