Psst! These demos are for you, an official Supporter. Please don't distribute them to the general public.
Hey, thanks for supporting Font Awesome 5 and downloading a copy of our working project! The files in this folder are meant to serve as demos which show off all of the redesigned icons as well as how to use them.
Our SVG Framework let's you reference icons just as you always have with Font Awesome and renders them as SVGs within your UI, complete with all of the supportive styling you know and love. This requires the use of JavaScript. Here's how to try it out:
js/fontawesome.js.
js/packs/solid.js) in the js/packs directory.
<head> of your document.
<body> of your document.
<head>
<script defer src="/js/packs/solid.js"></script>
<script defer src="/js/fontawesome.js"></script>
</head>
<body>
<i class="fa fa-user"></i>
</body>
<head>
<script defer src="/js/packs/light.js"></script>
<script defer src="/js/packs/regular.js"></script>
<script defer src="/js/fontawesome.js"></script>
</head>
<body>
<i class="fal fal-user"></i>
<i class="far far-magic"></i>
</body>
Need another example? Check out the SVG Framework demo.
A Font Awesome traditionalist? We get ya. Font Awesome 5 still let's you load your icons as a custom icon font (using CSS's @font-face). Here's how:
css/font-awesome-core.css
css/font-awesome-light.css) in the css/ directory.
webfonts/fontawesome-light-300.woff2) in the webfonts/ directory.
<head> of your document.
<body> of your document.
<link rel="stylesheet" href="css/font-awesome-core.css">
<link rel="stylesheet" href="css/font-awesome-solid.css">
<body>
<i class="fas fa-user"></i>
</body>
<link rel="stylesheet" href="css/font-awesome-core.css">
<link rel="stylesheet" href="css/font-awesome-regular.css">
<link rel="stylesheet" href="css/font-awesome-light.css">
<body>
<i class="fal fa-user"></i>
<i class="far far-magic"></i>
</body>
Need another example? Check out the Web Font demo.
Want to use Font Awesome icons as SVGs in your project but want to do it without JavaScript or manage things more directly? We've prepped all of the icon styles as individual SVG sprites.
sprites/solid.svg) in the sprites directory.
<body> of your document call an individual icon like this…
<body>
<svg>
<use xlink:href="solid.svg#user"></use>
</svg>
</body>
Need another example? Check out the SVG Sprites demo.
Cross-origin caveat: This requires that you are serving the sprite from the same domain and port as the page.
Serving locally: For this sprite to load you need to be serving it from http or https. If you try to open examples/svg-sprite.html from the file system (if your address begins with file://) it will fail to load.
Want to use Font Awesome 5's icons in your favorite Desktop Design tools or on a print-based project? No problem. Here's how to get that started:
webfonts/fontawesome-light-300.ttf) in the webfonts/ directory.
Or grab one or more of the svg files from any style (ex. svg/solid/user.svg) in the svg/ directory.
We're still in pre-alpha land with Font Awesome 5, so we need your help. Please provide feedback about this release specfically in our designated thread. Design feedback, bugs and questions are welcome there. For future feature and icon requests, check out our contributing doc.