Contents

Font Awesome Cheatsheet

This post serves as my notebook for using Font Awesome icons on this blog (or any other rendered by Hugo engine). Get aclassfrom Font Awesome website and use it as follows

:(fa-solid fa-house):
:(fas fa-clock):

which renders as  

Sizing

FA provides list of standard sizes. Not only do these classes scale icons up or down but also provide appropriate vertical alignment. The following is the list of standard relative sizes provided by the library

SizeFont SizeEquivalent in PixelsExample
fa-2xs0.625em10px
fa-xs0.75em12px
fa-sm0.875em14px
fa-lg1.25em20px
fa-xl1.5em24px
fa-2xl2em32px

In addition to relative sizes, also literal sizes are available

Literal Sizing ClassFont SizeExample
fa-1x1em
fa-2x2em
fa-3x3em
fa-4x4em
fa-5x5em
fa-6x6em
fa-7x7em
fa-8x8em
fa-9x9em
fa-10x10em

Animation

There are couple of animations built-in FA library. For more info follow here

Beat animation

Beat animation allows to draw attentions to a “living” object. Employfa-beatto use it

:(fa-solid fa-heart fa-beat):
:(fa-solid fa-clock fa-beat):

which renders as  

In order to obtain more control on animation one must use HTML syntax

<div class="fa-3x">
  <i class="fa-solid fa-circle-plus fa-beat"></i>
  <i class="fa-solid fa-heart fa-beat"></i>
  <i class="fa-solid fa-heart fa-beat" style="--fa-animation-duration: 0.5s;" ></i>
  <i class="fa-solid fa-heart fa-beat" style="--fa-animation-duration: 2s;"></i>
  <i class="fa-solid fa-heart fa-beat" style="--fa-beat-scale: 2.0;"></i>
</div>

Spin animation

One of the most useful animations is a spin effect that is wrapped infa-spinclass:

:(fa-solid fa-sync fa-spin):
:(fa-solid fa-circle-notch fa-spin):

which render as  

More advanced examples can be obtained as follows

<div class="fa-3x">
  <i class="fa-solid fa-sync fa-spin"></i>
  <i class="fa-solid fa-circle-notch fa-spin"></i>
  <i class="fa-solid fa-cog fa-spin"></i>
  <i class="fa-solid fa-cog fa-spin fa-spin-reverse"></i>
  <i class="fa-solid fa-spinner fa-spin-pulse"></i>
  <i class="fa-solid fa-spinner fa-spin-pulse fa-spin-reverse"></i>
</div>

List of free icons

IconNameIconNameIconName
500pxaccessible-iconaccusoft
address-bookaddress-bookaddress-card
address-cardadjustadn
adversalaffiliatethemeair-freshener
algoliaalign-centeralign-justify
align-leftalign-rightamazon
ambulanceamerican-sign-language-interpretingamilia
anchorandroidangellist
angle-double-downangle-double-leftangle-double-right
angle-double-upangle-downangle-left
angle-rightangle-upangrycreative
angularapp-storeapp-store-ios
apperappleapple-pay
archivearrow-alt-circle-downarrow-alt-circle-down
arrow-alt-circle-leftarrow-alt-circle-leftarrow-alt-circle-right
arrow-alt-circle-rightarrow-alt-circle-uparrow-alt-circle-up
arrow-circle-downarrow-circle-leftarrow-circle-right
arrow-circle-uparrow-downarrow-left
arrow-rightarrow-uparrows-alt
arrows-alt-harrows-alt-vassistive-listening-systems
asteriskasymmetrikat
audibleaudio-descriptionautoprefixer
avianexaviatoaws
backwardbalance-scaleban
bandcampbarcodebars
bathbattery-emptybattery-full
battery-halfbattery-quarterbattery-three-quarters
bedbeerbehance
behance-squarebellbell
bell-slashbell-slashbicycle
bimobjectbinocularsbirthday-cake
bitbucketbitcoinbity
black-tieblackberryblind
bloggerblogger-bbluetooth
bluetooth-bboldbolt
bombbookbookmark
bookmarkbraillebriefcase
btcbugbuilding
buildingbullhornbullseye
buromobelexpertebusbuysellads
calculatorcalendarcalendar
calendar-altcalendar-altcalendar-check
calendar-checkcalendar-minuscalendar-minus
calendar-pluscalendar-pluscalendar-times
calendar-timescameracamera-retro
carcaret-downcaret-left
caret-rightcaret-square-downcaret-square-down
caret-square-leftcaret-square-leftcaret-square-right
caret-square-rightcaret-square-upcaret-square-up
caret-upcart-arrow-downcart-plus
cc-amexcc-apple-paycc-diners-club
cc-discovercc-jcbcc-mastercard
cc-paypalcc-stripecc-visa
centercodecertificatechart-area
chart-barchart-barchart-line
chart-piecheckcheck-circle
check-circlecheck-squarecheck-square
chevron-circle-downchevron-circle-leftchevron-circle-right
chevron-circle-upchevron-downchevron-left
chevron-rightchevron-upchild
chromecirclecircle
circle-notchclipboardclipboard
clockclockclone
cloneclosed-captioningclosed-captioning
cloudcloud-download-altcloud-upload-alt
cloudscalecloudsmithcloudversify
codecode-branchcodepen
codiepiecoffeecog
cogscolumnscomment
commentcomment-altcomment-alt
commentscommentscompass
compasscompressconnectdevelop
contaocopycopy
copyrightcopyrightcpanel
creative-commonscredit-cardcredit-card
cropcrosshairscss3
css3-altcubecubes
cutcuttlefishd-and-d
dashcubedatabasedeaf
deliciousdeploydogdeskpro
desktopdeviantartdigg
digital-oceandiscorddiscourse
dochubdockerdollar-sign
dot-circledot-circledownload
draft2digitaldribbbledribbble-square
dropboxdrupaldyalog
earlybirdsedgeedit
editejectellipsis-h
ellipsis-vemberempire
envelopeenvelopeenvelope-open
envelope-openenvelope-squareenvira
erasererlangetsy
euro-signexchange-altexclamation
exclamation-circleexclamation-triangleexpand
expand-arrows-altexpeditedsslexternal-link-alt
external-link-square-alteyeeye-dropper
eye-slasheye-slashfacebook
facebook-ffacebook-messengerfacebook-square
fast-backwardfast-forwardfax
femalefighter-jetfile
filefile-altfile-alt
file-archivefile-archivefile-audio
file-audiofile-codefile-code
file-excelfile-excelfile-image
file-imagefile-pdffile-pdf
file-powerpointfile-powerpointfile-video
file-videofile-wordfile-word
filmfilterfire
fire-extinguisherfirefoxfirst-order
firstdraftflagflag
flag-checkeredflaskflickr
flyfolderfolder
folder-openfolder-openfont
font-awesomefont-awesome-altfont-awesome-flag
fonticonsfonticons-fifort-awesome
fort-awesome-altforumbeeforward
foursquarefree-code-campfreebsd
frownfrownfutbol
futbolgamepadgavel
gemgemgenderless
get-pocketgggg-circle
giftgitgit-square
githubgithub-altgithub-square
gitkrakengitlabgitter
glass-martiniglideglide-g
globegoforegoodreads
goodreads-ggooglegoogle-drive
google-playgoogle-plusgoogle-plus-g
google-plus-squaregoogle-walletgraduation-cap
gratipaygravgripfire
gruntgulph-square
hacker-newshacker-news-squarehand-lizard
hand-lizardhand-paperhand-paper
hand-peacehand-peacehand-point-down
hand-point-downhand-point-lefthand-point-left
hand-point-righthand-point-righthand-point-up
hand-point-uphand-pointerhand-pointer
hand-rockhand-rockhand-scissors
hand-scissorshand-spockhand-spock
handshakehandshakehashtag
hddhddheading
headphonesheartheart
heartbeathire-a-helperhistory
homehoolihospital
hospitalhotjarhourglass
hourglasshourglass-endhourglass-half
hourglass-starthouzzhtml5
hubspoti-cursorid-badge
id-badgeid-cardid-card
imageimageimages
imagesimdbinbox
indentindustryinfo
info-circleinstagraminternet-explorer
ioxhostitalicitunes
itunes-notejenkinsjoget
joomlajsjs-square
jsfiddlekeykeyboard
keyboardkeycdnkickstarter
kickstarter-klanguagelaptop
laravellastfmlastfm-square
leafleanpublemon
lemonlesslevel-down-alt
level-up-altlife-ringlife-ring
lightbulblightbulbline
linklinkedinlinkedin-in
linodelinuxlira-sign
listlist-altlist-alt
list-ollist-ullocation-arrow
locklock-openlong-arrow-alt-down
long-arrow-alt-leftlong-arrow-alt-rightlong-arrow-alt-up
low-visionlyftmagento
magicmagnetmale
mapmapmap-marker
map-marker-altmap-pinmap-signs
marsmars-doublemars-stroke
mars-stroke-hmars-stroke-vmaxcdn
medappsmediummedium-m
medkitmedrtmeetup
mehmehmercury
microchipmicrophonemicrophone-slash
microsoftminusminus-circle
minus-squareminus-squaremix
mixcloudmizunimobile
mobile-altmodxmonero
money-bill-altmoney-bill-altmoon
moonmotorcyclemouse-pointer
musicnapsterneuter
newspapernewspapernintendo-switch
nodenode-jsnpm
ns8nutritionixobject-group
object-groupobject-ungroupobject-ungroup
odnoklassnikiodnoklassniki-squareopencart
openidoperaoptin-monster
osioutdentpage4
pagelinespaint-brushpalfed
paper-planepaper-planepaperclip
paragraphpastepatreon
pausepause-circlepause-circle
pawpaypalpen-square
pencil-altpercentperiscope
phabricatorphoenix-frameworkphone
phone-squarephone-volumepied-piper
pied-piper-altpied-piper-pppinterest
pinterest-ppinterest-squareplane
playplay-circleplay-circle
playstationplugplus
plus-circleplus-squareplus-square
podcastpound-signpower-off
printproduct-huntpushed
puzzle-piecepythonqq
qrcodequestionquestion-circle
question-circlequoraquote-left
quote-rightrandomravelry
reactrebelrecycle
red-riverredditreddit-alien
reddit-squareredoredo-alt
registeredregisteredrendact
renrenreplyreply-all
replydresolvingretweet
roadrocketrocketchat
rockrmsrssrss-square
ruble-signrupee-signsafari
sasssavesave
schlixscribdsearch
search-minussearch-plussearchengin
sellcastsellsyserver
servicestackshareshare-alt
share-alt-squareshare-squareshare-square
shekel-signshield-altship
shirtsinbulkshopping-bagshopping-basket
shopping-cartshowersign-in-alt
sign-languagesign-out-altsignal
simplybuiltsistrixsitemap
skyatlasskypeslack
slack-hashsliders-hslideshare
smilesmilesnapchat
snapchat-ghostsnapchat-squaresnowflake
snowflakesortsort-alpha-down
sort-alpha-upsort-amount-downsort-amount-up
sort-downsort-numeric-downsort-numeric-up
sort-upsoundcloudspace-shuttle
speakapspinnerspotify
squaresquarestack-exchange
stack-overflowstarstar
star-halfstar-halfstaylinked
steamsteam-squaresteam-symbol
step-backwardstep-forwardstethoscope
sticker-mulesticky-notesticky-note
stopstop-circlestop-circle
stravastreet-viewstrikethrough
stripestripe-sstudiovinari
stumbleuponstumbleupon-circlesubscript
subwaysuitcasesun
sunsuperpowerssuperscript
supplesyncsync-alt
tabletablettablet-alt
tachometer-alttagtags
taskstaxitelegram
telegram-planetencent-weiboterminal
text-heighttext-widthth
th-largeth-listthemeisle
thermometer-emptythermometer-fullthermometer-half
thermometer-quarterthermometer-three-quartersthumbs-down
thumbs-downthumbs-upthumbs-up
thumbtackticket-alttimes
times-circletimes-circletint
toggle-offtoggle-ontrademark
traintransgendertransgender-alt
trashtrash-alttrash-alt
treetrellotripadvisor
trophytrucktty
tumblrtumblr-squaretv
twitchtwittertwitter-square
typo3uberuikit
umbrellaunderlineundo
undo-altuniregistryuniversal-access
universityunlinkunlock
unlock-altuntappdupload
usbuseruser
user-circleuser-circleuser-md
user-plususer-secretuser-times
usersussunnahutensil-spoon
utensilsvaadinvenus
venus-doublevenus-marsviacoin
viadeoviadeo-squareviber
videovimeovimeo-square
vimeo-vvinevk
vnvvolume-downvolume-off
volume-upvuejsweibo
weixinwhatsappwhatsapp-square
wheelchairwhmcswifi
wikipedia-wwindow-closewindow-close
window-maximizewindow-maximizewindow-minimize
window-restorewindow-restorewindows
won-signwordpresswordpress-simple
wpbeginnerwpexplorerwpforms
wrenchxboxxing
xing-squarey-combinatoryahoo
yandexyandex-internationalyelp
yen-signyoastyoutube

Sources