Announcing ‘mini.hues’

announce
reddit
Generate configurable color scheme (plus ‘randomhue’ color scheme with random base colors)
Author

Evgeni Chasnovski

Published

May 7, 2023

Originally posted on Reddit

Hello, Neovim users!

I am really happy to tell you about the release of mini.hues - new color scheme module of mini.nvim to generate configurable color scheme. It can also be installed using separate GitHub repository.


This is an attempt to create my own color scheme leveraging the knowledge I got from writing ‘mini.colors’ and learning about Oklab/Oklch color space. But this is not just a color scheme, but a color scheme generator - it creates and applies palette based on (mandatory) background and foreground colors.

I put quite a lot of thought into how this palette is applied to highlight groups. There are many small details that make reading code and text easier (at least for me), like bold keywords, orange delimiters, red return, etc.

Here are some configuration examples for you to try (basically what is showcased in video demo).


Along with ‘mini.hues’ comes ‘randomhue’. This is a good old configuration-free color scheme, but with a twist: each call to :colorscheme randomhue will result into random yet coherent colors. Generation is somewhat smart: it adapts to dark/light 'background' option while base colors always have same lightness and chroma.

First eight examples from the video can be a result of ‘randomhue’. For examples of light background see demo in README.

I’ve been daily driving ‘randomhue’ for about a week and I must say that it is quite a bit of fun. Small amount of randomness adds something special to user experience.


Here are the features of ‘mini.hues’:

Supported highlight groups:

For more information, see help file.


Please, check it out and tell me what you think! I am also very curious about user experience with plugins (to be honest, not all of them were checked with an actual working plugin). You can leave your suggestions either here in comments or in dedicated beta-testing issue.

Thanks!