We've worked hard to make the upgrading to Version 6 smooth and painless when using Sass or Less, but there are a few steps and things to be mindful of.
We introduced some changes that won't break at a production or published project-level, but may break at the compilation step when switching to Version 6's Sass and Less.
|What Changed ||Why We Changed It ||What You Should Do|
|These weren't needed any longer given Version 6's browser support ||Update any references in your Sass/Less files that use these mixins|
|These variables were not actively used by Font Awesome's styling toolkit ||Update any references in your Sass/Less files that use these variables|
_larger file to
|This better describes the sizing-based utilities included in this partial ||Update any references to the old partial name to the new name|
|Removed CSS fallbacks and vendor prefixes ||Many modern CSS workflows provide their own fallbacks based on individual projects' browser support ||If you need fallbacks or syntax to support a specific browser, we recommend implementing Autoprefixer(opens new window) in your project|
|Added new |
|This brings our Duotone icons in line with how we define, loop through, and render individual icon CSS rules ||Make sure to include this new partial in your Sass/Less compile if you're using Duotone icons|
Upgrading to Version 6's Sass or Less
If you're using Font Awesome 5's preprocessor assets, you'll need to swap out and disconnect those old files, then place and hook up the new Version 6 files in your project.
1. Remove Any Version 5 Files From Your Project
Locate the Font Awesome Version 5 Sass/Less files in your project - these are most likely in the
less folders respectively. Once found, remove those files to prevent the conflicts that may come from loading two different versions of Font Awesome in your Sass/Less compile.
You'll next want to remove Font Awesome Version 5's Web Fonts from your project - these are most likely found in the
webfonts folder you copied over when setting up v5.
2. Download Version 6's Sass/Less
Next, download Version 6 for the Web and unpack the files and icons. You can then follow some familiar steps to add Font Awesome 6 to your Sass or Less compile.
3. Update Version 5 References to Point to Version 6 Files
If your project's Sass or Less has a custom compile, then you're all set and should see your preprocessor compiling the new Version 6 assets.
If you're using the Font Awesome Sass/Less compile to output your CSS directly, you may need to update your old Version 5 references to point to the new Version 6 assets you've compiled.
You may also want only to load some styles: