<xf:css>
i.far:not(.fa--xf)::after
{
display: inline-block;
content: "";
height: 1em;
vertical-align: -0.125em;
background-color: currentColor;
width: 1.28571429em;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-position: center;
}
</xf:css>
<xf:js>
XF.createElement('style', {
textContent: 'i.far.fa-bullhorn:not(.fa--xf)::after { mask-image: url("/xf23/data/local/icons/regular.svg#bullhorn"); -webkit-mask-image: url("/xf23/data/local/icons/regular.svg#bullhorn"); }'
}, document.head);
XF.createElement('style', {
textContent: 'i.far.fa-ambulance:not(.fa--xf)::after { mask-image: url("/xf23/styles/fa/regular/ambulance.svg"); -webkit-mask-image: url("/xf23/styles/fa/regular/ambulance.svg"); }'
}, document.head);
</xf:js>
Bullhorn (via i, CSS, Sprite): <i style="color:blue" class="far fa-bullhorn"></i><br />
Ambulance (via i, CSS, Single File): <i style="color:red" class="far fa-bullhorn"></i><br />
Bullhorn (via xf:fa): <xf:fa icon="fa-bullhorn" /><br />
Bullhorn (via xf:fa with variable): <xf:set var="$icon" value="fa-ambulance" /><xf:fa icon="{$icon|raw}" /><br />
Bullhorn (via xf:fa with variable, inline): <xf:set var="$icon" value="fa-ambulance" /><xf:fa icon="{$icon|raw}" inline="{{ true }}" /><br />