-
Notifications
You must be signed in to change notification settings - Fork 2
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
Switch internal color type to avh/elm-color? #13
Comments
I think one issue with this could be that |
Hi! Thanks for bringing this up! It's definitely something that I'm considering. In the short term, I'll think about adding helpers for going from an Are you currently using both |
Currently I'm using neither. I'm writing a wrapper around elm-ui for our application that allows runtime skinning, and at the same time I'm creating a small element library. In some of these parts I want the ability to automatically select good-contrast colors for text etc, and in the process of looking these things up I decided to wrap the elm-ui color values completely (since I'm already doing a wrapper). |
That makes sense! I probably won't have much time to work on this for about a week or so, but I'll come back to it after that. At minimum, I think the naming collision is an issue that needs to be resolved. Plus some level of support for avh4/elm-color should be on the roadmap. And of course transparency. Thanks again for bringing this up! |
Thanks for reacting so quickly! For now I've decided to use I think what I'd like to see in the future is just more specialized packages? For example I don't think I really like |
Thank you for following up! It's really helpful to hear what you ended up doing & why. |
I ran into an unfortunate circumstance relating to this issue. I really like the functions relating to the color circle from color theory in this package. In a test project I wanted to do color animation on an svg object with help from those functions. My go-to package for svg is But not only does So, in short, if I use |
I'm working on changing the names to avoid this conflict -- the next major version of Thanks for bringing this up! |
The renames in #18 should allow you to use this package along with I want to take some time to get API reviews and thoughts from folks before I publish, so it may be a while yet before these changes are available. Please feel free to (gently 🙏) share your thoughts on the PR. |
What are your current thoughts on this? It looks like the (I do like the design of |
Ian and I talked on slack and over zoom and we pulled some other perspectives in too.. I've drafted a PR #26 to resolve the naming collisions. Let me know if you have thoughts on the changes! I'm waffling a bit on "SolidColor" and "TransparentColor." Perhaps "OpaqueColor" and "TranslucentColor"? |
I decided to stop waffling on getting the best-possible fix here and just went ahead and published what I had. Please let me know if there are any issues with the new names. If it's a pain to upgrade, let me know. I'll try to put something together to help. |
Speaking of @ianmackenzie / @tesk9 y'all may find the Not sure if I'd call it a |
That's very neat! Thanks for the link |
As far as I know,
avh/elm-color
is supposed to become kind of a community standard when it comes to color. This would make interop of packages much easier. What are your thoughts on this?It would of course add an alpha channel, but
palette
could just ignore that, as far as I'm concerned (I personally need support for it, but I don't need it in the functionspalette
provides)The text was updated successfully, but these errors were encountered: