stylix icon indicating copy to clipboard operation
stylix copied to clipboard

stylix: add Base24 support

Open LovingMelody opened this issue 2 years ago • 11 comments

The underlying base16 library now supports the tinted-theming spec aka base24. Would be nice to see this included to add more colors to themes. With base24 being compatible with base16 this could be done in slow stages.

LovingMelody avatar Feb 08 '24 20:02 LovingMelody

when this lands here, the base24 github org offers implementations for a couple of applications we might use here then

KiaraGrouwstra avatar Feb 10 '24 22:02 KiaraGrouwstra

Since https://github.com/tinted-theming/base24/blob/master/styling.md#base24-fallbacks is a thing, and base16-nix always generates a base24 compatible value according to that fallback rule, we should be able to just start doing this. In other words: It appears as though we already have the base24 schemes, we just aren't using them.

Lord-Valen avatar Jun 11 '24 19:06 Lord-Valen

Yep, I don't see any reason not to start implementing this on a module-by-module basis.

danth avatar Jun 11 '24 19:06 danth

It appears as though we already have the base24 schemes, we just aren't using them.

Yep, I don't see any reason not to start implementing this on a module-by-module basis.

Agreed. Until VIM highlight groups are implemented, supporting base24 schemes seems reasonable:

The solution I'm considering mimics vim's highlight groups

VIM's highlight groups might be the most scalable and practical solution I know of.

It would resolve nearly all our open issues regarding color scheme scalability. Additionally, our documentation could simply link to VIM's highlight groups documentation.

-- https://github.com/danth/stylix/issues/249#issuecomment-2012933635

Note that implementing VIM highlight groups is a non-trivial task. Supporting base24 yields faster and easier results.

trueNAHO avatar Jun 12 '24 14:06 trueNAHO