Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kuznetsss/meadow.nvim

Dark colorscheme for nvim written in lua
https://github.com/kuznetsss/meadow.nvim

lua neovim neovim-colorscheme neovim-plugin neovim-plugin-lua nvim

Last synced: 3 months ago
JSON representation

Dark colorscheme for nvim written in lua

Awesome Lists containing this project

README

        

# 🌼 meadow.nvim

A dark neovim colorscheme based on [HSV](https://en.wikipedia.org/wiki/HSL_and_HSV) colors.
Why another coolorscheme?
I wanted to have a colorscheme with a lot of green and yellow color.
This colorschemes is inspired by [QtCreator](https://www.qt.io/product/development-tools)'s default colorscheme.

## 🖥️ Screenshots
![Lua code](https://github.com/kuznetsss/meadow.nvim/assets/15742918/b755f65c-e2ce-4290-9ffc-38fd4af55a79)

## 📦 Installation
Same as any other plugin, e.g. using lazy:
```lua
{
'kuznetsss/meadow.nvim',
priority = 1000,
config = true
},
```
To switch to the colorscheme:
```vim
colorscheme meadow
```
or
```lua
vim.cmd.colorscheme 'meadow'
```

## 🔧 Setup
Here is an example of configuration with default values:
```lua
require'meadow'.setup {
color_saturation = 80, -- contrast (0-100)
color_value = 80, -- brightness (0-100)
}
```
which will change the initial brightness and contrast of the colorscheme.
Setting `color_saturation` to 0 will result in grayscale colorscheme.
And setting `color_value` to 0 will result in black screen.

## 🛠️ Adjusting brightness and contrast

[![demo](https://github.com/kuznetsss/meadow.nvim/assets/15742918/cc6f8e87-c331-4510-87f8-e46d07b8b6ac)](https://github.com/kuznetsss/meadow.nvim/assets/15742918/76175dd4-4e51-4e87-afce-b4a584918ead)

It is possible to adjust brightness and contrast using lua:
```lua
require'meadow'.change_brightness(10) -- increase brightness by 10
require'meadow'.change_contrast(10) -- increase brightness by 10
```
or vim commands:
```vim
MeadowChanngeBrightness +10 " increase brightness by 10
MeadowChanngeBrightness -10 " decrease brightness by 10
MeadowChanngeContrast +10 " increase contrast by 10
MeadowChanngeContrast -10 " decrease contrast by 10
```

## 💡 Using colors in your lua code

`require'meadow'.colors.rgb` contains a table with all colors in hex rgb format. Eache color has two fields: `fg` and `bg`.
For example:

```lua
require'meadow'.colors.rgb.red1.fg -- '#cc2929' with the default brightness and contrast
```

## 👍 Thanks
- Thanks to [tokyonight.nvim](https://github.com/folke/tokyonight.nvim) for the list of highlights.

## 🎨 Similar colorschemes
- I think [one-dark.nvim](https://github.com/navarasu/onedark.nvim) is quite similar but with more blue and less green.