Skip to content

alexxGmZ/e-ink.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e-ink.nvim

A grayscale colorscheme with a hint of Everforest for NeoVim.

palette

Screenshot_2025-02-24_19-14-41

Good for Note-taking. Screenshot_2025-02-24_19-22-16

Lua, Go, & JavaScript. Screenshot_2025-02-25_10-11-05

Dark Mode dark-mode-3

dark-mode-2

 

Installation

Lazy:

return {
   "alexxGmZ/e-ink.nvim",
   priority = 1000,
   config = function ()
      require("e-ink").setup()
      vim.cmd.colorscheme "e-ink"

      -- choose light mode or dark mode
      -- vim.opt.background = "dark"
      -- vim.opt.background = "light"
      --
      -- or do
      -- :set background=dark
      -- :set background=light
   end
}

 

Highlight Override

For overriding highlight groups, just call the palette API and use vim.api.nvim_set_hl after the colorscheme declaration.

local set_hl = vim.api.nvim_set_hl
local mono = require("e-ink.palette").mono()

--[[
-- light mode
{
   "#CCCCCC", "#C2C2C2", "#B8B8B8", "#AEAEAE", "#A4A4A4", "#9A9A9A", "#909090", "#868686",
   "#7C7C7C", "#727272", "#686868", "#5E5E5E", "#545454", "#4A4A4A", "#474747", "#333333"
}

-- dark mode
{
   "#333333", "#474747", "#4A4A4A", "#545454", "#5E5E5E", "#686868", "#727272", "#7C7C7C",
   "#868686", "#909090", "#9A9A9A", "#A4A4A4", "#AEAEAE", "#B8B8B8", "#C2C2C2", "#CCCCCC"
}
]]

local everforest = require("e-ink.palette").everforest()
--[[
-- light mode
{
   red = "#F85552",
   statusline3 = "#E66868",
   bg_red = "#FFE7DE",
   yellow = "#DFA000",
   green = "#8DA101",
   statusline1 = "#93B259",
   bg_green = "#f3f5d9",
   blue = "#3A94C5",
   bg_blue = "#ECF5ED",
   aqua = "#35A77C",
   purple = "#DF69BA",
   orange = "#F57D26"
}

-- dark mode
{
   red = "#E67E80",
   statusline3 = "#E67E80",
   bg_red = "#4C3743",
   yellow = "#DBBC7F",
   green = "#A7C080",
   statusline1 = "#A7C080",
   bg_green = "#3C4841",
   blue = "#7FBBB3",
   bg_blue = "#384B55",
   aqua = "#83C092",
   purple = "#D699B6",
   orange = "#E69875"
}
]]

set_hl(0, "Group", { fg = mono[15] })
set_hl(0, "Group", { fg = everforest.green })

Transparent Background

local set_hl = vim.api.nvim_set_hl
local mono = require("e-ink.palette").mono()

set_hl(0, "Normal", { fg = mono[12], bg = "NONE" })

or depending on the value of vim.o.background.

local set_hl = vim.api.nvim_set_hl
local mono = require("e-ink.palette").mono()

-- transparent only when `:set background=dark`
if vim.o.background == "dark" then
   set_hl(0, "Normal", { fg = mono[12], bg = "NONE" })
end

 

Application Ports

 

Special Thanks

The inspiration for this colorscheme is from this r/unixporn post of u/TheDangleberry

Releases

No releases published

Packages

No packages published

Languages