https://github.com/alexxgmz/e-ink.nvim
A grayscale colorscheme for NeoVim
https://github.com/alexxgmz/e-ink.nvim
colorscheme grayscale light-mode neovim nvim theme
Last synced: about 1 year ago
JSON representation
A grayscale colorscheme for NeoVim
- Host: GitHub
- URL: https://github.com/alexxgmz/e-ink.nvim
- Owner: alexxGmZ
- License: mit
- Created: 2025-02-23T14:10:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-05T10:35:57.000Z (about 1 year ago)
- Last Synced: 2025-04-06T20:08:50.414Z (about 1 year ago)
- Topics: colorscheme, grayscale, light-mode, neovim, nvim, theme
- Language: Lua
- Homepage:
- Size: 43 KB
- Stars: 130
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# e-ink.nvim
A grayscale colorscheme with a hint of [Everforest](https://github.com/sainnhe/everforest)
for NeoVim.


Good for Note-taking.

Lua, Go, & JavaScript.

Dark Mode


## Installation
**Lazy:**
```lua
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.
```lua
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
```lua
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`.
```lua
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
* [Kitty](https://github.com/alexxGmZ/e-ink.kitty)
* [cmus](https://github.com/alexxGmZ/e-ink.cmus)
* [termux](https://github.com/alexxGmZ/e-ink.termux)
* [ghostty](https://github.com/alexxGmZ/e-ink.ghostty)
## Special Thanks
The inspiration for this colorscheme is from this [r/unixporn post](https://www.reddit.com/r/unixporn/comments/1ivfd53/rectangle_i_really_really_like_eink/)
of [u/TheDangleberry](https://www.reddit.com/user/TheDangleberry/submitted/)