cideM / yui

A minimal Vim/Neovim color scheme inspired by Dieter Rams
MIT License
135 stars 6 forks source link

Build the theme with a Lua template #25

Closed cideM closed 1 year ago

cideM commented 1 year ago

This is a big change!

The original idea behind this theme was twofold: use as few colors as is reasonable and get some inspiration from the design philosophy of Dieter Rams. The latter point rested mostly on a "Rams Notebook" I once saw, which had the distinctive orange color on brown/beige paper.

This PR adds a palette to the theme, which takes inspiration from a bigger palette of Rams colors.

I also added a light weight, custom template system. This lets me define a palette and then adjust the lightness of the colors to generate a larger set of colors, from which the actual theme is then built. This should make it easier to give the theme a more coherent feeling. I'd like to explore this further in the future, and try to move the theme closer to a rams palette. Arguably, it should have been called "Rams" not "YUI".

The template system would also let me run a few basic checks, such as W3C contrast checks. I'd really like to make this as accessible as possible.

Eventually I'd also love to deprecate the purple color. Somehow I find it a bit garish nowadays. But I'm not sure if this would upset people.

The README is smaller, there's a CONTRIBUTING file, a LICENSE, and the docs are automatically generated now.