nix-colors icon indicating copy to clipboard operation
nix-colors copied to clipboard

add base24 support?

Open KiaraGrouwstra opened this issue 1 year ago • 2 comments

base24 adds bright colors for use in terminals and seems supported by various terminals. it might be cool to see these supported here as well. there are a couple such themes currently, whereas such schemes may be converted back to base16 using a simple fallback table.

KiaraGrouwstra avatar Nov 14 '23 21:11 KiaraGrouwstra

Yeah i would also love to have more colors for theming instead of limited to 16 colors. Can i use/call more colors with this atm? If I use a custom colorscheme with more than 16 colors and names other than base**. @Misterio77

mobsenpai avatar Jan 29 '24 19:01 mobsenpai

Hey all!

Yeah, the module already supports arbitrary color names.

The only thing hardcoded to consider 00-0F is the schemeFromYAML function; but that does not apply to you if your theme is defined using nix and not yaml.

I plan on updating that function so that we can work with Tinted Theming's new common format, while keeping compatibility with the older base16/24 format (with the colors at top level). That new format is very similar to what I've been doing here in nix-colors, so I'll probably also rename our options (keeping backwards compatibility, of course) to match.

Misterio77 avatar Jan 30 '24 11:01 Misterio77