-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Trouble with custom pallette #93
Comments
Hi. Could you please create an ellie showcasing the wierd behavior?
ncc-swann ***@***.***> schrieb am Do., 15. Juni 2023, 13:10:
… Hi
I am using elm-ui-widgets and generally find it awesome and very useful,
so thank you!
I am currently trying to change the default pallette to something custom,
but colors do not seem to be represented correctly on screen. I am only
changing the primary color of the default pallette for now, leaving the
rest alone, but I am experiencing jade represented as light brownish, a
shade of blue being represented as green etc.
Do you have any insight into what might be going on?
Best regards
Nicolai
—
Reply to this email directly, view it on GitHub
<#93>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYRMLHWG2CBEPLC6JCS3LDXLLUSNANCNFSM6AAAAAAZHVZRF4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Of course. Here is a link to the Ellie: https://ellie-app.com/n62jNwkctCHa1 |
I'm not sure why this happens. I'm actually relying on noahzgordon/elm-color-extra to convert from LAB to RGB. The conversion from LCH to LAB should be correct (it's just one line, that I double-checked just now). Also, I never had any problems with that function – I have actually been using it a lot. However, I never tried to directly create a CIELCH color, like you are doing. So my guess is that some factor is wrong somewhere. Maybe the range of my implementation is different to the range used by convertingcolors.com? I am considering this a niche-problem, and I currently don't have time to fix this. So I will leave it as is. If you need a fix, please try to find a solution and open a PR. |
Thank you for looking into it. |
Use avh4/elm-color to define colors. You can use any rgb value. |
Hi
I am using elm-ui-widgets and generally find it awesome and very useful, so thank you!
I am currently trying to change the default pallette to something custom, but colors do not seem to be represented correctly on screen. I am only changing the primary color of the default pallette for now, leaving the rest alone, but I am experiencing jade represented as light brownish, a shade of blue being represented as green etc.
Do you have any insight into what might be going on?
Best regards
Nicolai
The text was updated successfully, but these errors were encountered: