powerline-rs icon indicating copy to clipboard operation
powerline-rs copied to clipboard

powerline-rs theme template in themer

Open lafleurdeboum opened this issue 3 years ago • 1 comments

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".

lafleurdeboum avatar Jan 02 '21 15:01 lafleurdeboum

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

jD91mZM2 avatar Jan 04 '21 10:01 jD91mZM2