Icons not showing with Semantic UI

Jamgreen picture Jamgreen · Mar 21, 2017 · Viewed 9.7k times · Source

I am building Semantic UI with Gulp using this guide

However, the problem is now that the icons are not showing. So if I use <i class="facebook icon"></i>, nothing shows up.

I guess I haven't built the icon font or something like that.

Is it necessary to load Font Awesome or something like that myself? I have read through the Semantic UI documentation, but I cannot find anywhere stating that I have to do anything to enable icons.

Answer

therewillbecode picture therewillbecode · Jul 14, 2017

You need to include the font assets which are located in themes/default/assets/fonts/

The themes folder must be in the same directory as your semantic.css file.

The fonts are imported externally from the semantic.css file from within the themes directory.

To obtain this directory, download the zip for semantic ui and look inside the dist folder.