jD91mZM2 / powerline-rs

GitLab: https://gitlab.com/jD91mZM2/powerline-rs
MIT License
117 stars 22 forks source link

powerline-rs theme template in themer #21

Open lafleurdeboum opened 3 years ago

lafleurdeboum commented 3 years ago

Hello !

I spent some time writing a themer template for powerline-rs, there it is :

https://gitlab.com/lafleurdeboum/themer-powerline-rs

It's available as an npm package. Workflow :

mkdir themer && cd themer
yarn add themer @themer/colors-mojave themer-powerline-rs
yarn run themer -c @themer/colors-mojave -t themer-powerline-rs -o build
less build/README.md

The built README.md contains instructions as how to use the built themes (yes, I wrote the README generator as well). themer supports vim including vim-fugitive and vim-gutter, vim-lightline (sister project in vim !), kitty, ... I had tried base16, it's interesting but not as smart.

I don't know what this contribution is worth here, just wanted to mention it. I also wanted to state this : even when users try to use as little as 15 colors to better convey meaning, they most likely will want to pick them among so-called "true" colors. So if participating to the themer initiative would become an objective, powerline-rs should support more than 256 colors. Nevertheless, themer-powerline-rs uses an approximation function derived from @themer/vim to match true colors "not so bad".

jD91mZM2 commented 3 years ago

Seems cool! Using truecolor would definitely be an option, most terminals support them so there's really no downside