> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. # Icon > Learn how to add Font Awesome icons to your Fern documentation. Customize icon sizes, colors, and styles with the Icon component. The `` component displays [Font Awesome](https://fontawesome.com/) icons in your documentation with support for all Font Awesome Pro styles. ## Usage Basic icon **`Markdown`** ```jsx Markdown Basic icon ``` ## Variants ### Sizes Large icon **`Markdown`** ```jsx Markdown Large icon ``` ### Colors Colored icon **`Markdown`** ```jsx Markdown
Colored icon
``` ### Font Awesome styles Default (Solid) Regular Light Thin Duotone Sharp Solid Brands **`Markdown`** ```jsx Markdown Default (Solid) Regular Light Thin Duotone Sharp Solid Brands ``` ### Custom SVG icon Use a relative path to display a custom SVG file from your project. **`Markdown`** ```jsx Markdown Custom SVG icon ``` ## Properties **`icon`** `string` — required A Font Awesome icon name (e.g., "heart" or "fa-solid fa-heart") or a relative path to an SVG file (e.g., "./images/icon.svg") --- **`color`** `string` Icon color (hex, RGB, or color name). Ignored if `lightModeColor` and `darkModeColor` are both set --- **`darkModeColor`** `string` Icon color for dark mode (hex, RGB, or color name) --- **`lightModeColor`** `string` Icon color for light mode (hex, RGB, or color name) --- **`size`** `number` — default: 4 Size of the icon (width and height) calculated as `size * 4` pixels (e.g., 4 = 16px, 8 = 32px). --- **`className`** `string` Additional CSS classes to apply to the icon --- > Learn how to add Font Awesome icons to your Fern documentation. Customize icon sizes, colors, and styles with the Icon component.