Iconify
Two hundred thousand icons, as a shortcode.
Quarto ships Bootstrap Icons and Font Awesome, which is a few thousand icons. Iconify collects over two hundred thousand, from more than a hundred sets, behind one naming scheme.
iconify puts them behind one shortcode: {{< iconify octicon:rocket-16 >}} draws that rocket, in HTML and in Typst alike.
The glyphs in this site’s footer are drawn by it.
Installation
quarto add mcanouil/quarto-iconify@4.1.2This will install the extension under the _extensions subdirectory. If you are using version control, you will want to check in this directory.
Or install it from your editor with Quarto Wizard:
Quick start
Name the set and the icon, either way round:
{{< iconify octicon:rocket-16 >}}
{{< iconify octicon rocket-16 >}}Both draw
Size, rotate, colour, and label it with attributes:
{{< iconify mdi:home size=2x >}}
{{< iconify mdi:home rotate=90deg label="Home" >}}Set a default icon set so the set can be dropped:
extensions:
iconify:
set: octiconSee the Reference for every option, and the Examples for the attributes rendered.
Where it works
HTML formats that run JavaScript, and Typst. EPUB and every other format render nothing.
In HTML the icon is a web component fetched from the Iconify CDN, with a local fallback. For Typst the SVG is retrieved once and cached, so a build repeats without the network; the Reference covers the cache.
Links
- Reference for every option and attribute.
- Examples for icons and their attributes.
- Changelog for what each release changed.
- Source and issues on GitHub.