Upgrading Guide

August 4, 2021 · View on GitHub

See the CHANGELOG.md for detailed information about what has changed between versions.

This guide is useful to figure out what you need to do between breaking changes.

As always, submit issues that you run into with this guide or with these upgrades to us.


5.15.3 to 5.15.4

The tripadvisor brand icon has been removed by legal request of Tripadvisor.


5.15.2 to 5.15.3

There are no breaking changes in this version upgrade.


5.15.1 to 5.15.2

There are no breaking changes in this version upgrade.


5.15.0 to 5.15.1

There are no breaking changes in this version upgrade.


5.14.0 to 5.15.0

The adobe icon has been removed by legal request of Adobe.

Font Awesome is no longer able to provide any logos or marks for the Adobe brand or their products.


5.12.x/5.13.x to 5.14.0

In version 5.12.0 and 5.13.0 some of the icons were assigned unicode values that were outside the Private Unicode Area (PUA). This caused problems with some desktop software and caused the icons to show up as Chinese, Japanese, or Korean (CJK) ideographs.

The unicode values have been re-assigned to values within the PUA range.

If you were using any of the following icons with pseudo-elements you will need to change the CSS content value to the new unicode value.

Icon nameOldNew
bacteriaf959e059
bacteriumf95ae05a
box-tissuef95be05b
caravan-altf900e000
cat-spacef901e001
coffee-potf902e002
coffin-crossf951e051
cometf903e003
dailymotionf952e052
deezerf977e077
edge-legacyf978e078
fan-tablef904e004
faucetf905e005
faucet-dripf906e006
firefox-browserf907e007
folder-downloadf953e053
folder-uploadf954e054
galaxyf908e008
garagef909e009
garage-carf90ae00a
garage-openf90be00b
google-payf979e079
hand-holding-medicalf95ce05c
hand-sparklesf95de05d
hands-washf95ee05e
handshake-alt-slashf95fe05f
handshake-slashf960e060
head-side-coughf961e061
head-side-cough-slashf962e062
head-side-maskf963e063
head-side-virusf964e064
heatf90ce00c
housef90de00d
house-dayf90ee00e
house-leavef90fe00f
house-nightf910e010
house-returnf911e011
house-signalf912e012
house-userf965e065
idealf913e013
instagram-squaref955e055
lamp-deskf914e014
lamp-floorf915e015
laptop-housef966e066
light-ceilingf916e016
light-switchf917e017
light-switch-offf918e018
light-switch-onf919e019
lungs-virusf967e067
microblogf91ae01a
microwavef91be01b
mixerf956e056
outletf91ce01c
ovenf91de01d
people-arrowsf968e068
pied-piper-squaref91ee01e
plane-slashf969e069
planet-moonf91fe01f
planet-ringedf920e020
police-boxf921e021
portal-enterf922e022
portal-exitf923e023
pump-medicalf96ae06a
pump-soapf96be06b
radarf924e024
raygunf925e025
refrigeratorf926e026
rocket-launchf927e027
rustf97ae07a
sensorf928e028
sensor-alertf929e029
sensor-firef92ae02a
sensor-onf92be02b
sensor-smokef92ce02c
shield-virusf96ce06c
shopifyf957e057
sinkf96de06d
sirenf92de02d
siren-onf92ee02e
soapf96ee06e
solar-systemf92fe02f
sort-circlef930e030
sort-circle-downf931e031
sort-circle-upf932e032
space-station-moonf933e033
space-station-moon-altf934e034
sprinklerf935e035
star-shootingf936e036
starfighterf937e037
starfighter-altf938e038
starshipf939e039
starship-freighterf93ae03a
stopwatch-20f96fe06f
store-alt-slashf970e070
store-slashf971e071
sword-laserf93be03b
sword-laser-altf93ce03c
swords-laserf93de03d
telescopef93ee03e
temperature-downf93fe03f
temperature-upf940e040
tiktokf97be07b
toilet-paper-slashf972e072
trailerf941e041
transporterf942e042
transporter-1f943e043
transporter-2f944e044
transporter-3f945e045
transporter-emptyf946e046
ufof947e047
ufo-beamf948e048
unityf949e049
unsplashf97ce07c
user-alienf94ae04a
user-robotf94be04b
user-unlockf958e058
user-visorf94ce04c
users-slashf973e073
vacuumf94de04d
vacuum-robotf94ee04e
virusf974e074
virus-slashf975e075
virusesf976e076
window-framef94fe04f
window-frame-openf950e050

5.13.0 to 5.13.1

There are no breaking changes in this version upgrade.


5.12.1 to 5.13.0

There are no breaking changes in this version upgrade.


5.12.0 to 5.12.1

There are no breaking changes in this version upgrade.


5.11.2 to 5.12.0

The 9-pointed icon named "haykal" was renamed to "bahai" to better match the symbol. If you were previously using the misnamed icon rename to "bahai" when upgrading.


5.11.1 to 5.11.2

The scanner-image icon was previously using the same unicode value as the scanner icon.

This has now been fixed and the scanner-image icon has a unique unicode value.

The film-canister icon was misspelled as "film-cannister". This has been fixed.


5.11.0 to 5.11.1

There are no breaking changes in this version upgrade.


5.10.2 to 5.11.0

There are no breaking changes in this version upgrade.


5.10.1 to 5.10.2

There are no breaking changes in this version upgrade.


5.10.0 to 5.10.1

The Sass function fa-content-secondary which was part of the duotone.scss file has been removed due to its inconsistent behavior in different versions of Sass pre-processors. Specifically node-sass and sass didn't produce the same output.


5.9.0 to 5.10.0

The following icon shims have been changed to better match the original version 4 icon:

  • sort-alpha-desc
  • sort-amount-desc
  • sort-numeric-desc

5.8.2 to 5.9.0

The nintendo-switch icon has been removed by legal request of Nintendo of America Inc.

Font Awesome is no longer able to provide icons related to Nintendo, their gaming consoles, accessories, or games.


5.8.1 to 5.8.2

There are no breaking changes in this version upgrade.


5.8.0 to 5.8.1

There are no breaking changes in this version upgrade.


5.7.x to 5.8.0

Removing title elements from SVG sprites

Since the initial release of version 5, all the way back to 5.0.0 actually, we've included <title> elements in the SVG sprites.

In https://github.com/FortAwesome/Font-Awesome/issues/14595 a discussion outlines that this practice actually prevents normal efforts to make these sprites accessible according to web accessibility standards.

If you are using sprites please refer to our documentation on accessibility with Font Awesome.

Removing vertical-align from the .fa-icon Sass mixin

Font Awesome has supported Sass and Less CSS pre-processors for a long time.

The version 5 .fa-icon mixin which is present in scss/_mixins.scss previously included vertical-align which was incorrectly shifting icons.

If you have used this mixin in your own Sass files you will need to check the alignment of those icons after upgrading to 5.8.0.


5.7.1 to 5.7.2

There are no breaking changes in this version upgrade.


5.7.0 to 5.7.1

The cheeseburger icon incorrectly placed the cheese under the patty. This is unacceptable and we've fixed it.


5.6.x to 5.7.0

OTF and TTF files

The PostScript name has been changed from FontAwesome5ProSolid to FontAwesome5Pro-Solid. This was done to be more compatible with tooling such as XCode.

We've also update the Version specifier. Font files only support a MAJOR and MINOR version number so we have modifed our schema. For example, version 5.7.0 of Font Awesome is reflected as 329.472 in the individual font files.

Icon changes

The calendar-alt icon has been reverted back to the previous design in versions <= 5.6.0.


5.6.x to 5.6.3

The fire icon has been reverted back to the previous design in versions <= 5.5.0.

We have moved the redesigned icon to fire-alt.


5.6.0 to 5.6.1

There are no breaking changes in this version upgrade.


5.5.0 to 5.6.0

In this release we've taken time to re-organize the directory structure to prevent redundancy and improve findability.

Directory structure changes

Old pathNew path
advanced-options/metadatametadata
advanced-options/raw-svgsvgs
advanced-options/svg-spritessprites
advanced-options/use-with-node-jsjs-packages
svg-with-js/jsjs
svg-with-js/csscss
use-on-desktopotfs
web-fonts-with-css/csscss
web-fonts-with-css/lessless
web-fonts-with-css/scssscss
web-fonts-with-css/webfontswebfonts

5.4.x to 5.5.0

There are no breaking changes in this version upgrade.


5.4.0 to 5.4.1

Categories were renamed from:

  • Holiday to Halloween
  • Seasonal to Autumn

The "wand" icon in version 5.4.0 matched the "wand-magic" icon. The magical sparkles have been removed for "wand". If you were relying on this decoration in your design switch to "wand-magic" to bring the magic back.


5.3.x to 5.4.0

There are no breaking changes in this version upgrade.


5.3.0 to 5.3.1

The following Pro-only icons were removed from Font Awesome Free as of 5.3.1:

  • abacus
  • calculator-alt
  • empty-set
  • function
  • integral
  • intersection
  • lambda
  • omega
  • pi
  • sigma
  • signal-alt
  • signal-alt-slash
  • signal-slash
  • square-root
  • tally
  • theta
  • tilde
  • union
  • value-absolute
  • volume
  • volume-down
  • volume-slash
  • wifi-slash

These icons were unintentionally included in 5.3.0.


5.x.x to 5.3.0

Sass mixin syntax has been updated to address a bug.

Use @extend %fa-icon to correctly maintain CSS order in output files.

Old way:

.twitter {
  @include fa-icon; /* incorrect */
  @extend .fab;

  &:before {
    content: fa-content($fa-var-twitter);
  }
}

New way:

.twitter {
  @extend %fa-icon; /* correct */
  @extend .fab;

  &:before {
    content: fa-content($fa-var-twitter);
  }
}

5.1.x to 5.2.x

There are no breaking changes in this version upgrade.


5.1.0 to 5.1.1

Less and Sass files incorrectly contained the "fa-" prefix for style files. These files have been renamed to be consistent with other files in the packages.

If you are using the Less or Sass file styles individually you will need to correct the names in your builds.

Old filenameNew filename
less/fa-solid.lessless/solid.less
less/fa-regular.lessless/regular.less
less/fa-light.lessless/light.less
less/fa-brands.lessless/brands.less
scss/fa-solid.scssscss/solid.scss
scss/fa-regular.scssscss/regular.scss
scss/fa-light.scssscss/light.scss
scss/fa-brands.scssscss/brands.scss

5.0.x to 5.1.0

New packages available for browser-only integration

If you were previously using @fortawesome/fontawesome you need to switch to one of the new packages.

Our Free and Pro CDN provide access to JS, CSS, sprites, and separate SVG files.

We've now made these files conveniently available through NPM.

If you are familiar with the paths and options available with the CDN these packages should be familiar.

Information about Font Awesome Pro subscriptions can be found in your Font Awesome awesome account.

Renamed packages

The following packages have been renamed as part of 5.1.0 of Font Awesome.

All packages are in the @fortawesome NPM scope

Old package(1)New package
fontawesome-free-webfontsfontawesome-free
fontawesome-pro-webfontsfontawesome-pro
fontawesome-free-solid  free-solid-svg-icons
fontawesome-free-regularfree-regular-svg-icons
fontawesome-free-brands  free-brands-svg-icons
fontawesome-pro-solid  pro-solid-svg-icons
fontawesome-pro-regular  pro-regular-svg-icons
fontawesome-pro-light  pro-light-svg-icons

(1) Old packages have now been deprecated. They are still available but will only receive high priority patch release fixes.

You'll need to update your package.json file with the renamed packages and new versions.

No more default imports

Recently we spent a good deal of time supporting TypeScript to enable us to create the Angular Font Awesome component. During that adventure we were convinced that we were going to remove default exports from all of our components, libraries, and packages. This is complete with the umbrella release of 5.1.0 of Font Awesome.

What does that mean?

Old way:

import fontawesome from '@fortawesome/fontawesome'
import solid from '@fortawesome/fontawesome-free-solid'
import faTwitter from '@fortawesome/fontawesome-free-brands/faTwitter'
import FontAwesomeIcon from '@fortawesome/vue-fontawesome'

library.add(solid, faTwitter)

New way:

import { library, dom } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

library.add(fas, faTwitter)

// Kicks off the process of finding <i> tags and replacing with <svg>
dom.watch()

This is also a valid way to import icons that works if your tool does not support tree shaking:

import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter'

Improved support for tree shaking

Tree shaking is now functional by default and no additional configuration is required to make it work.

The shakable.es.js module has been removed and is no longer needed.

If you've previously configured tree shaking by modifying your webpack or rollup you can safely remove these.

We recommend that you check your bundle size after upgrading an ensure that file sizes are as you would expect.

module.exports = {
  // ...
  resolve: {
    alias: {
      '@fortawesome/fontawesome-free-solid$': '@fortawesome/fontawesome-free-solid/shakable.es.js'
    }
  }
}
const alias = require('rollup-plugin-alias')

rollup({
  // ...
  plugins: [
    alias({
      '@fortawesome/fontawesome-free-solid': 'node_modules/@fortawesome/fontawesome-free-solid/shakable.es.js'
    })
  ]
})

5.0.11 to 5.0.12

Due to a collision with the "r" glyph the R Project brand icon has been renamed to r-project.


5.0.x to 5.0.6

SVG Attribute was changed from data-fa-processed to data-fa-i2svg

As part of a bug fix for the release of 5.0.6 we renamed an attribute that was found on <svg> elements from data-fa-processed to data-fa-i2svg. We feel this more accurately reflects the intent and purpose.

This attribute is added to any icon that has been generated using fontawesome.dom.i2svg().

Be aware that data-fa-i2svg (or data-fa-processed) will no longer be present on icons that are created using fontawesome.icon().

If you've written and DOM queries that rely on data-fa-processed you should get things working again by doing a simple find and replace.