If you like control, you can host Font Awesome yourself, and you can choose to use SVG + JS described below or Web Fonts + CSS to get icons into your projects.
Set up with SVG+JS
all.js file contains the core styling PLUS all of the icons in all the styles that you'll need when using Font Awesome. If you’re just using some styles, you can select just the JS files for the styles you need to cut down on file size and improve performance.
|Which Files and Folders ||What’s in there|
|Icons and scripts for each style, or all of them at once.|
|Just the Free icons and scripts for each style.|
Add Font Awesome Files to Your Project
all.js or individual style script files you want to use into your project’s static assets directory, or wherever you prefer to keep front-end assets or vendor stuff.
Copy the all.js or individual style files into your project directories
Include Font Awesome in Your Project
Link the files into the
<head> of each template or page where you want to use Font Awesome icons.
Yuss! You’re Ready to Add Icons
Like Anakin said, it’s woooorking! All of our icons are now ready to do your project’s bidding. Learn how to add them to your project and then use their power to bring order and style to your UI! Add Some Icons!
Using Only Certain Styles
Want use only certain styles when using our SVG with JS framework? The
/js folder contains the core styling and additional files for all of Font Awesome's style options- solid, regular, light, duotone, thin, and brands.
|Icon Style ||JS Filename ||Availability|
|Font Awesome Brands || |
|Font Awesome Solid || |
|Font Awesome Regular || |
|Font Awesome Light || |
fontawesome.js loader and the
.js files for the styles you'd like to use into your project's static assets directory (or where ever you prefer to keep front end assets or vendor stuff). We recommend referencing the
fontawesome.js loader last.
Older Version Compatibility
If your project is using an older version of Font Awesome, we've got you covered with backward compatiiblity for v5-based projects.
Version 5 Compatibility
Once loaded, our SVG + JS framework handles translating any Font Awesome 5 icon names, style syntax, and CSS pseudo-element icon references automatically.
This is true for when the
js/all.js file is used or when you load only certain styles.
Version 4 Compatibility
If your project contains Font Awesome 4 icon references, you can include an additional file to support that specific version as well.
In addition to whatever v6 JS files you're including, you'll want to include the following
v4-shims.js file, which will map v4 icon names to icons in the latest version of Font Awesome.
If you need more help upgrading an existing project to a newer version of Font Awesome, check out our upgrading guides.