Developers: how to use or add an SVG icon to your plugin or theme Site admins adding icons to the set via the svg icon subset site setting must use the internal naming convention. Plugins, themes, group flair and badges can use the standard FontAwesome 5 naming convention. To allow bundling the three styles into one SVG sprite, icons in the regular and brand styles in Discourse are converted to far-icon-name and fab-icon-name internally. (Solid icons can simply be referenced as before “fa-icon-name”). To use an icon from the regular or brands styles, then, we need to use this new naming convention: "far fa-address-book" or "fab fa-facebook". There are three styles:įor the regular or brands styles, FA 5 introduces new class prefixes, “far” and “fab” respectively. ![]() The main change is that icons in FA come in separate styles now. For a full discussion of the changes please see the Font Awesome upgrade documentation. ![]() What’s new in Font Awesome 5įont Awesome 5 has introduced many new icons but also some naming changes. ![]()
0 Comments
Leave a Reply. |