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
Allow for Multi-Colored SVG Icons #675
Comments
Fonts are not meant to include colors if I recall correctly. I usually just apply a CSS color property to color the font |
As been said - this job is for CSS, not related to fontello. |
Hi @puzrin, can you please reopen this issue? The point is that multi-colored SVGs need to be split into multiple glyphs that can be rendered on top of each other.
Using this SVG: , IcoMoon understands it is a multi-colored SVG that needs to be split into multiple following glyphs, and it generates the required CSS to color those glyphs and stack them on top of each other: .icon-Account-circle-duotone .path1:before {
content: "\e900";
color: rgb(86, 134, 225);
opacity: 0.3;
}
.icon-Account-circle-duotone .path2:before {
content: "\e901";
margin-left: -1em;
color: rgb(86, 134, 225);
} It creates a This is also how FontAwesome works: https://blog.pieeatingninjas.be/2022/12/13/fontawesome-duotone-icons-in-maui-and-xamarin-forms/ |
We have a need for multiple colors to be included/embedded in SVGs in out icon sets. This is easily done in IcoMoon, but is a shortcoming of Fontello.
In IcoMoon we can touch internal paths, e.g.:
The text was updated successfully, but these errors were encountered: