Icon Markup
- Basic Icon: `` renders as a regular heart icon
- Styled Icon: `` renders as a solid heart icon
Available Styles and Families
The first token in the markup can be any FA7 style or family:
Styles: solid, regular, light, thin, duotone, brands, semibold
Families: classic, sharp, sharp-duotone, chisel, etch, graphite, jelly, jelly-duo, jelly-fill, notdog, notdog-duo, slab, slab-press, thumbprint, utility, utility-duo, utility-fill, whiteboard
Legacy: sharpsolid (expands to fa-sharp fa-solid)
Sizes
Relative (t-shirt): 2xs, xs, sm, lg, xl, 2xl
Literal: 1x, 2x, 3x, 4x, 5x, 6x, 7x, 8x, 9x, 10x
Size Example: `` renders a large solid heart icon
Animations
spin, spin-reverse, spin-pulse, pulse (deprecated alias), beat, beat-fade, bounce, fade, flip, shake
Animation Example: `` renders a spinning solid heart icon
Rotation & Flipping
rotate-90, rotate-180, rotate-270, rotate-by, flip-horizontal, flip-vertical, flip-both
Fixed Width & Utilities
fw, width-auto, border, pull-start, pull-end, pull-left (legacy), pull-right (legacy)
Stacking & Duotone
stack-1x, stack-2x, inverse, swap-opacity
Lists
li, ul
Combined Usage
`` renders a large, spinning, solid heart icon
Custom Styled Icon
`` renders as a red, 20px solid heart icon. CSS styles are added after a semicolon.
Custom Style Order
When using icons, follow this order:
- Icon style/family (optional, e.g., solid, jelly, sharp-duotone)
- Icon name (required, e.g., heart, gear)
- Additional properties (optional, e.g., lg, spin, flip-horizontal)
- Semicolon (;) — only if adding CSS styles
- CSS styles (optional)
Examples:
- Basic: ``
- With style: ``
- With family: ``
- With properties: ``
- With CSS: ``
- Full example: ``
Remember: Only the icon name is required. All other elements are optional.
Disallowed CSS Properties
For security, these CSS properties are blocked in custom styles: display, position, top, left, right, bottom, z-index, margin, padding.
Character Counting
- Emoji: Each emoji counts as 1 character
- Unicode Characters: Each Unicode character counts as 1 character
- Icon Markup: Valid icon markup (e.g., ) counts as 1 character
- Newlines: Each newline (CR/LF) counts as 1 character
- Links: Each link counts as 1 character, plus the visible text
Blog Post Formatting
Blog posts support full Markdown syntax in addition to the custom icon markup. This includes:
- Headers (# H1, ## H2, etc.)
- Code blocks (
code) - Tables
- And more!
Note: HTML tags are stripped for security reasons. Use Markdown and icon markup for formatting.
For more detailed styling options, refer to the FontAwesome Style Cheatsheet. Our markup is a custom shorthand for this.