From 28f3bed3f849e4b789a182f51cf983056cd5fa49 Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Thu, 4 Nov 2021 17:45:06 +0800 Subject: [PATCH] add zenburned flavor --- README.md | 1 + colors/zenburned.lua | 12 ++++++++++++ doc/showcase.md | 4 ++++ doc/zenbones.md | 1 + lua/zenburned/init.lua | 18 ++++++++++++++++++ lua/zenburned/palette.lua | 13 +++++++++++++ 6 files changed, 49 insertions(+) create mode 100644 colors/zenburned.lua create mode 100644 lua/zenburned/init.lua create mode 100644 lua/zenburned/palette.lua diff --git a/README.md b/README.md index 210c2c4..3f88261 100644 --- a/README.md +++ b/README.md @@ -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 tokyobones " Tokyo Night flavor - https://github.com/enkia/tokyo-night-vscode-theme#color-palette colorscheme duckbones " Spaceduck flavor - https://pineapplegiant.github.io/spaceduck +colorscheme zenburned " Zenburn flavor - https://kippura.org/zenburnpage ``` ## [Configuration and other documentations](doc/zenbones.md) diff --git a/colors/zenburned.lua b/colors/zenburned.lua new file mode 100644 index 0000000..f24b570 --- /dev/null +++ b/colors/zenburned.lua @@ -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) diff --git a/doc/showcase.md b/doc/showcase.md index 1772bdf..c2cf27a 100644 --- a/doc/showcase.md +++ b/doc/showcase.md @@ -36,3 +36,7 @@ ## Duckbones Screen Shot 2021-11-04 at 9 45 11 AM + +## Zenburned + +Screen Shot 2021-11-04 at 9 45 11 AM diff --git a/doc/zenbones.md b/doc/zenbones.md index 70bb714..8636a93 100644 --- a/doc/zenbones.md +++ b/doc/zenbones.md @@ -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 tokyobones " Tokyo Night flavor - https://github.com/enkia/tokyo-night-vscode-theme#color-palette 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 diff --git a/lua/zenburned/init.lua b/lua/zenburned/init.lua new file mode 100644 index 0000000..a021733 --- /dev/null +++ b/lua/zenburned/init.lua @@ -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) diff --git a/lua/zenburned/palette.lua b/lua/zenburned/palette.lua new file mode 100644 index 0000000..b818939 --- /dev/null +++ b/lua/zenburned/palette.lua @@ -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