Skip to content

tobi-wan-kenobi/zengarden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

ZenGarden is a color scheme for neovim that tries to be calm and relaxing, while still retaining some important properties from color theory (contrast, uniform lightness, uniform chromma).

This colorscheme is created with lush, and therefore depends on it.

Screenshots

ZenGarden Dark ZenGarden Light

Installation

Packer

  use { "tobi-wan-kenobi/zengarden",
    requires = "rktjmp/lush.nvim",
    config = function()
      vim.cmd [[ colorscheme zengarden ]]
    end
  }

Configuration

Optionally, you can call setup() on the module to set parameters:

  use { "tobi-wan-kenobi/zengarden",
    requires = "rktjmp/lush.nvim",
    config = function()
        require("zengarden").setup({
            variant = "yellow"
        })
      vim.cmd [[ colorscheme zengarden ]]
    end
  }

Currently, you can set the following parameters:

  • variant: sets highlight colors for float, menu, etc. to one of: yellow (the default), cyan, orange, magenta, green
  • italics: whether italics should be used (default) or not, boolean value

Palette

Dark

  • Chroma = 0.1
  • Lightness = 65 (73 for light)
Purpose Color Name Hex Value Preview
background Basalt #202020 #202020
background (alt) Jet #343434 #343434
background (hi) Silver #71706e #71706e
foreground Ivory #faebd7 #faebd7
foreground (dim) Almond (dim) #e8d8c1 #e8d8c1
blue (base) Pond #4e98c5 #4e98c5
blue (light) Lake #5fb3db #5fb3db
red (base) Coral #c4757d #c4757d
red (light) Terracotta #f77c88 #f77c88
green (base) Bamboo #50a27c #50a27c
green (light) Shamrock #74ba8b #74ba8b
yellow (base) Sand #a78c41 #a78c41
yellow (light) Triandra Grass #c4a35a #c4a35a
magenta (base) Lavender #a27ebd #a27ebd
magenta (light) Bright Lavender #b997d9 #b997d9
cyan (base) Sea Green #39a391 #39a391
cyan (light) Verdigris #4ebcb7 #4ebcb7
orange (base) Clay #bf7e52 #bf7e52
orange (light) Fallen Leaves #d09c5f #d09c5f
- Sakura #c57675 #c57675
- Lotus #c1758b #c1758b
- Sunset #c47865 #c47865
- Sunray #919549 #919549
- Old Wood #c17b59 #c17b59
- Red Wood #c07c56 #c07c56
- Cherry #d96488 #d96488
- Jade #54a279 #54a279

Light

  • Chroma = 0.1
  • Lightness = 50 (60 for light)
Purpose Color Name Hex Value Preview
background Ivory #faebd7 #faebd7
background (alt) Almond (dim) #e8d8c1 #e8d8c1
background (hi) Almond #efdecd #efdecd
foreground Basalt #202020 #202020
foreground (dim) Slate #353839 #353839
blue (base) Pond #1a6b95 #1a6b95
blue (light) Lake #348bb1 #348bb1
red (base) Coral #944a48 #944a48
red (light) Terracotta #b46959 #b46959
green (base) Bamboo #1b7451 #1b7451
green (light) Shamrock #4c9165 #4c9165
yellow (base) Sand #7a6006 #7a6006
yellow (light) Triandra Grass #9b7b31 #9b7b31
magenta (base) Lavender #75528e #75528e
magenta (light) Bright Lavender #9070af #9070af
cyan (base) Sea Green #00726f #00726f
cyan (light) Verdigris #13938f #13938f
orange (base) Clay #8e5225 #8e5225
orange (light) Fallen Leaves #a67537 #a67537
- Sakura #944a4a #944a4a
- Lotus #90495f #90495f
- Sunset #934c3b #934c3b
- Sunray #656817 #656817
- Old Wood #914f2e #914f2e
- Red Wood #90502a #90502a
- Cherry #c65378 #c65378
- Jade #22744e #22744e

Design

My attempt was to create a colorscheme by following color theory (to the extent I understand it).

After some research, I settled on OKLCH, which defines "perceived" lightness and chroma (roughly saturation). Keeping lightness and chroma consistent across accent colors should result in a harmonous over appearance.

Additionally, care was taken to keep contrast above the WCAG recommendation of 4.5:1 (except for the light colors of the light color theme, where contrast is a bit lower than that).