Customizing Icon Fonts in Phantom

Icon fonts are webfonts containing symbols and glyphs, instead of letters or numbers. You can customize these scalable vector icons with CSS in the same way you customize regular text which has made them a popular choice on the web.

Phantom uses two sets of third-party icon fonts for your convenience – Icon-Works and Font Awesome. Both are completely free either for personal or commercial use.

Icon-Works is used specifically in these sections of the HTML files:

  • Project Spotlight – Building Process
  • Project Details Page – Process
  • Project Details Page – Details

Font Awesome is used for all other icons.

Changing and Adding Icon-Works

This webfont has already been embedded in the icon-works.css file and imported into the style.css file. However, you will need a list of the icons if you wish to change or add new ones.

For further information, please follow the instructions at Icon-Works.

We have already completed steps 1-2 of the instructions for you. All you will need to do is download the file to get the list of icons and perform step 3 of the instructions.

Changing and Adding Font Awesome

Font Awesome has already been embedded in the font-awesome.css file.

Here is the code which you need to modify to change or add an icon:

<i class="fa fa-envelope"></i>

Phantom uses Font Awesome for the icons in buttons. If you need more information on the list of available icons and class names, open the font-awesome.min.css file and look through the list of class names.

To learn more, please refer to the Font Awesome Cheatsheet.

Adding an Icon in a Button

Phantom has button styles that allow you to add an icon to the left or right of the text in a button by adding the class name in the index.html file.

Here is the code which you need to modify to add an icon to the left of the text:

<a href="#contact" class="button outline white">
    <i class="fa fa-envelope">Email Us</i>
</a>

Here is the code which you need to modify to add an icon to the right of the text:

<a href="#contact" class="button outline white">
    Email Us<i class="fa fa-envelope"></i>
</a>

Styling Font Awesome Icons

To style Font Awesome icons, we have provided three pre-configured options:

Option Class Name
Small .icon.small
Medium .icon.medium
Big .icon.big

To use these styles, simply add the class name into the HTML code.

Here is the code which you need to modify to style an icon:

<a href="http://twitter.com"><i class="fa fa-twitter icon big social gray"></i></a>