add zenburned flavor

This commit is contained in:
Michael Chris Lopez
2021-11-04 17:45:06 +08:00
parent a9de21b769
commit 28f3bed3f8
6 changed files with 49 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ colorscheme forestbones " Everforest flavor - https://github.com/sainnhe/everfo
colorscheme nordbones " Nord flavor - https://www.nordtheme.com/docs/colors-and-palettes 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 tokyobones " Tokyo Night flavor - https://github.com/enkia/tokyo-night-vscode-theme#color-palette
colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck
colorscheme zenburned " Zenburn flavor - https://kippura.org/zenburnpage
``` ```
## [Configuration and other documentations](doc/zenbones.md) ## [Configuration and other documentations](doc/zenbones.md)

12
colors/zenburned.lua Normal file
View File

@@ -0,0 +1,12 @@
if vim.g.colors_name then
vim.api.nvim_command "highlight clear"
end
vim.g.colors_name = "zenburned"
vim.opt.background = "dark"
package.loaded["zenburned"] = nil
require "lush"(require "zenburned", { force_clean = false })
local p = require("zenburned.palette").dark
require("zenbones.term").apply_colors(p)

View File

@@ -36,3 +36,7 @@
## Duckbones ## 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"> <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">
## Zenburned
<img width="1128" alt="Screen Shot 2021-11-04 at 9 45 11 AM" src="https://user-images.githubusercontent.com/7200153/140294924-1924e508-a32c-4529-b135-a61d957fa251.png">

View File

@@ -22,6 +22,7 @@ colorscheme forestbones " Everforest flavor - https://github.com/sainnhe/everfo
colorscheme nordbones " Nord flavor - https://www.nordtheme.com/docs/colors-and-palettes 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 tokyobones " Tokyo Night flavor - https://github.com/enkia/tokyo-night-vscode-theme#color-palette
colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck
colorscheme zenburned " Zenburn flavor - https://kippura.org/zenburnpage
``` ```
It works pretty much the same as the first one but pretty handy when extending It works pretty much the same as the first one but pretty handy when extending

18
lua/zenburned/init.lua Normal file
View File

@@ -0,0 +1,18 @@
local lush = require "lush"
local hsluv = lush.hsluv
local generator = require "zenbones.specs"
local p = require("zenburned.palette").dark
local specs = generator.generate(p, "dark", generator.get_global_config("zenburned", "dark"))
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
Statement { specs.Statement, fg = hsluv "#dca3a3" },
Special { fg = hsluv "#efef8f" },
PreProc { fg = hsluv "#ffcfaf" },
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)

13
lua/zenburned/palette.lua Normal file
View File

@@ -0,0 +1,13 @@
local util = require "zenbones.util"
local lush = require "lush"
local hsluv = lush.hsluv
local M = {}
M.dark = util.palette_extend {
bg = hsluv "#3f3f3f",
fg = hsluv("#efdcbc").de(14).li(20),
rose = hsluv "#e37170",
}
return M