add zenwritten
This commit is contained in:
@@ -37,10 +37,10 @@ Just apply the colorscheme as usual:
|
||||
colorscheme zenbones " light
|
||||
colorscheme zenflesh " dark
|
||||
|
||||
" https://neovim.io flavor
|
||||
colorscheme neobones
|
||||
" Rosé Pine flavor - https://rosepinetheme.com
|
||||
colorscheme rosebones
|
||||
colorscheme neobones " https://neovim.io flavor
|
||||
colorscheme rosebones " Rosé Pine flavor - https://rosepinetheme.com
|
||||
colorscheme forestbones " Everforest flavor - https://github.com/sainnhe/everforest
|
||||
colorscheme zenwritten " Zero hue and saturation version
|
||||
```
|
||||
|
||||
## [Configuration and other documentations](doc/zenbones.md)
|
||||
|
||||
10
colors/zenwritten.lua
Normal file
10
colors/zenwritten.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
vim.g.colors_name = "zenwritten"
|
||||
|
||||
-- reset specs
|
||||
package.loaded["zenwritten"] = nil
|
||||
|
||||
-- include our theme file and pass it to lush to apply
|
||||
require "lush"(require "zenwritten")
|
||||
|
||||
local p = require("zenwritten.palette")[vim.opt.background:get()]
|
||||
require("zenbones.term").apply_colors(p)
|
||||
@@ -12,10 +12,10 @@ Just apply the colorscheme as usual:
|
||||
colorscheme zenbones " light
|
||||
colorscheme zenflesh " dark
|
||||
|
||||
" https://neovim.io flavor
|
||||
colorscheme neobones
|
||||
" Rosé Pine flavor - https://rosepinetheme.com
|
||||
colorscheme rosebones
|
||||
colorscheme neobones " https://neovim.io flavor
|
||||
colorscheme rosebones " Rosé Pine flavor - https://rosepinetheme.com
|
||||
colorscheme forestbones " Everforest flavor - https://github.com/sainnhe/everforest
|
||||
colorscheme zenwritten " Zero hue and saturation version
|
||||
```
|
||||
|
||||
It works pretty much the same as the first one but pretty handy when extending
|
||||
|
||||
6
lua/zenwritten/init.lua
Normal file
6
lua/zenwritten/init.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
local lush = require "lush"
|
||||
local generator = require "zenbones.specs"
|
||||
local bg = vim.opt.background:get()
|
||||
local p = require("zenwritten.palette")[bg]
|
||||
|
||||
return generator.generate(p, bg, generator.get_global_config("zenwritten", bg))
|
||||
17
lua/zenwritten/palette.lua
Normal file
17
lua/zenwritten/palette.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
local util = require "zenbones.util"
|
||||
local lush = require "lush"
|
||||
local hsluv = lush.hsluv
|
||||
|
||||
local M = {}
|
||||
|
||||
M.light = util.palette_extend({
|
||||
bg = hsluv(0, 0, 94), -- sand
|
||||
fg = hsluv(0, 0, 22), -- stone
|
||||
}, "light")
|
||||
|
||||
M.dark = util.palette_extend {
|
||||
bg = hsluv(0, 0, 9), -- sand
|
||||
fg = hsluv(0, 0, 76), -- stone
|
||||
}
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user