Hi @claytonchase. Thanks for the feedback.
Currently, no, there’s no color attribute for the shortcode. We’ve intentionally left the shortcode very basic. My sense has been that as we get to the point of building up the features in this plugin for how to style and customize icons, we’ll probably be more focused on providing capabilities for doing that natively within the Gutenberg editor. I wonder: would that work for you? Or do you another use case where only a shortcode would serve your purpose?
In the meantime, you can definitely change icon colors, even if not with the shortcode. Part of the design of Font Awesome is that the icons inherit color. So one way to color an icon is to set the color of its parent element. For example, you could wrap a <span>
around it, and the set the color that <span>
, like this:
<span style="color: green;">[icon name="coffee"/]</span>