Skip to content

Repository files navigation

lectio

A muted colorscheme with light and dark modes, inspired by a photo taken during an evening walk.

Originally designed for nvim, with ports for Ghostty, Zellij, VS Code, and JetBrains IDEs.

the sun setting behind clouds nvim using lectio colorscheme nvim using lectio colorscheme

Palette

Name Dark Light Uses
ground #1d221c #f6f1e7 Normal background
woods #252b24 #eee8db CursorLine, StatusLine, panels
woods +1 #2e352c #e5dfd0 Pmenu, floating windows
woods +2 #3a4437 #d8d1bf borders, folds, separators
text #d7d3c6 #3c443a main text, variables, identifiers, properties
text, dimmed #b1ae9f #5c6457 operators, punctuation, delimiters
distance #79836f #6f7666 comments, hints, doc strings
twilight #5d6556 #a3a08e line numbers, whitespace, backdrops, inlay hints
sun #dfa257 #a06316 functions, headings, titles, search, warnings
afterglow #d69a78 #a5522f constants, numbers, booleans, builtins, escapes
sky #8fb4c9 #3a6c8c types, structs, links, info diagnostics, git change
cloud #8497ab #57697e keywords, statements, imports, visual selection
field #94a878 #54703c strings, characters, git add, success states
ember #cf7060 #b04b3c errors, deletions, debug, spell

Install

With lazy.nvim:

{
  "wesdoyle/lectio",
  priority = 1000,
  config = function()
    vim.cmd.colorscheme("lectio")
  end,
}

With vim-plug:

Plug 'wesdoyle/lectio'
colorscheme lectio

Or with no plugin manager at all:

git clone https://github.com/wesdoyle/lectio \
  ~/.local/share/nvim/site/pack/themes/start/lectio

Usage

:colorscheme lectio

lectio has a single light/dark mode and follows your 'background' setting.

Options

require("lectio").setup({
  transparent = false, -- omit the Normal background
  italics = true,      -- italic comments
  overrides = nil,     -- function(palette) -> table of highlight groups
})
vim.cmd.colorscheme("lectio")

Example override:

overrides = function(p)
  return {
    CursorLine = { bg = p.bg2 },
    ["@keyword"] = { fg = p.cloud, italic = true },
  }
end

Other tools

The same palette is generated for a handful of other tools and lives in extras/.

Tool Install
Zellij cp extras/zellij/lectio.kdl ~/.config/zellij/themes/
Ghostty cp extras/ghostty/lectio-* ~/.config/ghostty/themes/
VS Code cp -r extras/vscode/lectio ~/.vscode/extensions/lectio-theme
JetBrains ./scripts/build-jetbrains-plugin.sh, then install the zip from disk

Each still needs a line of config to select the theme — see extras/README.md.

Development

nvim -l scripts/contrast.lua
nvim --headless -l scripts/smoke.lua
./test/preview.sh
./test/preview.sh light

About

NeoVim dark colorscheme inspired by an evening walk

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages