Alt approach to duotone icons? #8
Replies: 2 comments 4 replies
-
Thanks for the kind words @nourmalaeb! This is something we weighed while designing the library, and there were a few reasons we steered away from it. First, exposing this option only on the Duotone icons would mean either having a different API and component set just for the Duotones, or having that property go unused on the other icons -- something we want to avoid to keep everything clean and simple. Second, we want Phosphor icons to look great everywhere. With the option you suggest comes the chance to make something that looks...not good :) If we were to have a two-color option, we would probably choose different elements to take a secondary color. Not to say we've closed the door for good, but it's probably not a feature we'll be building in soon. If this is really important for your use-case, I'd suggest forking this repo and making the change yourself! We codegen the components from the raw SVGs, and you could simply change the assembly script in your fork, pull in the
I'd be happy to offer some more help if you need! |
Beta Was this translation helpful? Give feedback.
-
I implemented this idea in a fork: https://github.com/br-lemes/phosphor-duocolor-react @rektdeckard If you can take a look at diffs, I don't know Context and TypeScript enough to be sure the code is ok. I can't run |
Beta Was this translation helpful? Give feedback.
-
Hi! First, thank you so much for these icons. Love the figma plugin and react library.
We had an idea for the duotone variant of the icons where rather than it be tone on tone, the translucent element in the icon could have its own color.
It would be amazing if the duotone icon could have an extra property for changing the secondary color. I'm not a very experienced developer but I can help with this if you'd like.
Beta Was this translation helpful? Give feedback.
All reactions