-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Why does the dec version of RGB look different? #711
Comments
Upon messing around further with the picker website, I noticed that it isn't possible to manually enter the "correct" value output by stylix... Is it a valid color value? The value
generates
But the site doesn't allow me to actually plug in those numbers, and give that green instead. Other programs seem to have the same issue, for example f3d. |
Cc: @danth |
This seems unusual. I'm not sure on the exact workings of the hex → dec conversion as this is done by an external library. Perhaps @SenchoPens may be able to help? Regarding the named colors, those are just aliases to the |
If it helps to debug and reproduce this specific case, I am using Catppuccin Mocha from base16 schemes. |
oof, I realized that one of my configs had a typo and was reusing the same value. whoops, apologies. |
Glad to hear you resolved it :)) |
Forgive me if I'm misunderstanding something, but here's my issue.
Usually I use
with config.lib.stylix.colors.withHashtag
to acces${baseXX}
values required by most programs.Sometimes I use
with config.lib.stylix.colors
when I need to access specific RGB values like${baseXX-rgb-r}
.However I have seen some applications take
rgb()
vectors in normalized/unit form, so each component is normalized from 0 - 1 instead of 0 - 255. From my initial reading of the Stylix docs, I should be able to access these values with${baseXX-dec-r}
.The programs seem to be accepting these values, but the issue is that the same color (ie.
base00
) looks different when generated viadec
method.To illustrate this, I plugged the colors generated by
dec
into an online color picker.The true color should be identical to the background of the webpage, which was generated with standard
withHashtag
${base00}
.PS: I'm also a bit confused about accessing other colors in the schema. I saw that you have a big refactor in your roadmap for the naming schemes, but how would I go about referencing additional colors as described here? I would like to access colors like
${bright-blue}
that are generated bybase16.nix
but aren't exposed viastylix
The text was updated successfully, but these errors were encountered: