Misterio77 / nix-colors

Modules and schemes to make theming with Nix awesome.
GNU General Public License v3.0
503 stars 42 forks source link

add base24 support? #42

Open KiaraGrouwstra opened 1 year ago

KiaraGrouwstra commented 1 year ago

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.

mobsenpai commented 10 months ago

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

Misterio77 commented 10 months ago

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.