danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.16k stars 143 forks source link

RGB Conversion Functions #85

Closed lovesegfault closed 1 year ago

lovesegfault commented 1 year ago

I was trying to add support for kmscon, but got stuck because it needs colors in RGB format, instead of Hex.

I think Stylix should provide a way to get the colors in RGB format, as opposed to Hex.

Inspiration from nix-colors: https://github.com/Misterio77/nix-colors/blob/main/lib/core/conversions.nix#L108

lovesegfault commented 1 year ago

You can just reference baseXX-rgb-{r,g,b}