Need to look up a specific CSS class or Custom Property? Forgot what a specific style utility class does? Here's a quick reference for everything included in Font Awesome's styling toolkit.
Swap the default opacity of each layer in a duotone icon (making an icon's primary layer have the default opacity of 40% rather than its secondary layer)
Visually hides an element containing a text-equivalent for an icon while keeping it accessible to assistive technologies
fa-sr-only-focusable
Used alongside fa-sr-only to show the element again when it’s focused (e.g. by a keyboard-only user)
Power Transforms
Power Transforms are available only when using the SVG+JS framework. All grow, shrink, and positioning utilities accept arbitrary values (including decimals). Their units are 1/16em each.
HTML data- Attribute
Details
data-fa-transform="shrink-[value]"
Shrinks an icon
data-fa-transform="grow-[value]"
Grows an icon
data-fa-transform="up-[value]"
Moves an icon up
data-fa-transform="right-[value]"
Moves an icon right
data-fa-transform="down-[value]"
Moves an icon down
data-fa-transform="left-[value]"
Moves an icon left
data-fa-transform="rotate-[angle]"
rotates an icon by a specific degree (with negative numbers allowed)
data-fa-transform="flip-h"
mirrors an icon horizontally
data-fa-transform="flip-v"
mirrors icon vertically
Pseudo-elements
CSS Custom Property
Details
--fa-font-solid
Sets the font property to use the solid style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-regular
Sets the font property to use the regular style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-light
Sets the font property to use the solid style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-thin
Sets the font property to use the thin style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-duotone
Sets the font property to use the duotone style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-brands
Sets the font property to use the brands style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-sharp-solid
Sets the font property to use the sharp familiy and solid style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-sharp-regular
Sets the font property to use the sharp familiy and regular style (font-family and font-weight) in pseudo-element custom CSS rules
--fa-font-sharp-light
Sets the font property to use the sharp familiy and light style (font-family and font-weight) in pseudo-element custom CSS rules