quarto-iconify
Use Iconify icons in HTML-based Quarto documents (over 200,000 open source vector icons).
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.2%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Use Iconify icons in HTML-based Quarto documents (over 200,000 open source vector icons).
Basic Info
- Host: GitHub
- Owner: mcanouil
- License: mit
- Language: Lua
- Default Branch: main
- Homepage: https://m.canouil.dev/quarto-iconify/
- Size: 124 KB
Statistics
- Stars: 137
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 14
Topics
Metadata Files
README.md
Iconify Extension for Quarto
This extension provides support to free and open source icons provided by Iconify.
Icons can be used only in HTML-based documents.
Installing
sh
quarto add mcanouil/quarto-iconify
This will install the extension under the _extensions subdirectory.
If you're using version control, you will want to check in this directory.
Using
To embed an icon, use the {{< iconify >}} shortcode. For example:
markdown
{{< iconify copilot-24 >}}
{{< iconify fluent-emoji exploding-head >}}
{{< iconify fluent-emoji:exploding-head >}}
{{< iconify copilot-24 size=2xl >}}
{{< iconify copilot-24 size=5x rotate=180deg >}}
{{< iconify copilot-24 size=Huge >}}
{{< iconify fluent-emoji-high-contrast 1st-place-medal >}}
{{< iconify twemoji 1st-place-medal >}}
{{< iconify line-md loading-alt-loop >}}
{{< iconify fa6-brands apple width=50px height=10px rotate=90deg flip=vertical >}}
{{< iconify simple-icons:quarto style="color:#74aadb;" >}}
This extension includes support for thousands of icons (including animated icons). You can browse all of the available sets of icons here:
https://icon-sets.iconify.design/
Iconify Attributes
Iconify API provides additional attributes: https://docs.iconify.design/iconify-icon/.
Currently, this extension supports: <set>[^1], size[^2], width[^2], height[^2], flip, rotate, title[^3], label^3, inline[^4], mode[^5], and style[^6].
markdown
{{< iconify <set=...> <icon> <size=...> <width=...> <height=...> <flip=...> <rotate=...> <title=...> <label=...> <inline=...> <mode=...> <style=...> >}}
{{< iconify <set:icon> <size=...> <width=...> <height=...> <flip=...> <rotate=...> <title=...> <label=...> <inline=...> <mode=...> <style=...> >}}
Defining default values for attributes[^7]:
yaml
extensions:
iconify:
set: "octicon"
size: "Huge"
width: "1em"
height: "1em"
flip: "horizontal"
rotate: "90deg"
inline: true
mode: "svg"
style: "color: #b22222;"
Note: The top-level iconify: configuration is deprecated but still supported for backward compatibility. A warning will be displayed when using the deprecated format. Please migrate to the new nested structure shown above.
[^1]: The default icon set is octicon (source: https://github.com/microsoft/fluentui-emoji).
[^2]: If <size=...> is defined, <width=...> and <height=...> are not used.
[^3]: title and label takes the following default value: Icon <icon> from <set> Iconify.design set..
[^4]: inline is a boolean attribute that can be set to true or false. Default is true.
[^5]: mode is a string attribute that can be set to "svg", "style", "bg", and "mask". Default is "svg". See Iconify renderings mode for more details.
[^6]: style is a string attribute expected to be a CSS style.
[^7]: The default values can be defined in the YAML header of the document using the new nested structure under extensions.iconify. The old top-level iconify configuration is deprecated but still supported.
icon, title, and label have to be defined in the shortcode.
Sizing Icons
This extension provides relative, literal, and LaTeX-style sizing for icons.
When the size is invalid, no size changes are made.
CSS-style sizing:
{{< iconify exploding-head size=42px >}}.Relative sizing:
{{< iconify exploding-head size=2xl >}}.
| Relative Sizing | Font Size | Equivalent in Pixels | |-----------------|-----------|----------------------| | 2xs | 0.625em | 10px | | xs | 0.75em | 12px | | sm | 0.875em | 14px | | lg | 1.25em | 20px | | xl | 1.5em | 24px | | 2xl | 2em | 32px |
- Literal sizing:
{{< iconify exploding-head size=5x >}}.
| Literal Sizing | Font Size | |----------------|-----------| | 1x | 1em | | 2x | 2em | | 3x | 3em | | 4x | 4em | | 5x | 5em | | 6x | 6em | | 7x | 7em | | 8x | 8em | | 9x | 9em | | 10x | 10em |
- LaTeX-style sizing:
{{< iconify exploding-head size=Huge >}}.
| Sizing Command | Font Size (HTML) |
| -------------------------------- | ---------------- |
| tiny (= \tiny) | 0.5em |
| scriptsize (= \scriptsize) | 0.7em |
| footnotesize (= \footnotesize) | 0.8em |
| small (= \small) | 0.9em |
| normalsize (= \normalsize) | 1em |
| large (= \large) | 1.25em |
| Large (= \Large) | 1.5em |
| LARGE (= \LARGE) | 1.75em |
| huge (= \huge) | 2em |
| Huge (= \Huge) | 2.5em |
widthorheightcan be set to define icon's property while keeping aspect ratio.
Note:widthandheightare not set ifsizewas defined.
Example
Here is the source code for a minimal example: example.qmd.
This is the output of example.qmd for HTML.
Iconify by Vjacheslav Trushkin under MIT License.
Owner
- Name: Mickaël Canouil
- Login: mcanouil
- Kind: user
- Location: Lille, France
- Website: https://mickael.canouil.fr
- Twitter: MickaelCanouil
- Repositories: 28
- Profile: https://github.com/mcanouil
Biostatistician, Ph. D. (& cinephile) @RLille User Group Organiser
Citation (CITATION.cff)
cff-version: 1.2.0
title: "Iconify Extension for Quarto"
message: "If you use this project, please cite it as below."
type: software
authors:
- family-names: "Canouil"
given-names: "Mickaël"
orcid: "https://orcid.org/0000-0002-3396-4549"
repository-code: "https://github.com/mcanouil/quarto-iconify"
url: "http://m.canouil.dev/quarto-iconify/"
license: "MIT"
date-released: "2025-07-14"
version: 3.0.1
GitHub Events
Total
- Create event: 17
- Release event: 5
- Issues event: 1
- Watch event: 30
- Delete event: 18
- Push event: 18
- Pull request event: 17
Last Year
- Create event: 17
- Release event: 5
- Issues event: 1
- Watch event: 30
- Delete event: 18
- Push event: 18
- Pull request event: 17
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Mickaël Canouil | 8****l | 49 |
| github-actions[bot] | 4****] | 4 |
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 25
- Total pull requests: 39
- Average time to close issues: 14 days
- Average time to close pull requests: 1 minute
- Total issue authors: 9
- Total pull request authors: 2
- Average comments per issue: 1.96
- Average comments per pull request: 0.0
- Merged pull requests: 39
- Bot issues: 0
- Bot pull requests: 4
Past Year
- Issues: 8
- Pull requests: 17
- Average time to close issues: 13 days
- Average time to close pull requests: 1 minute
- Issue authors: 4
- Pull request authors: 2
- Average comments per issue: 2.75
- Average comments per pull request: 0.0
- Merged pull requests: 17
- Bot issues: 0
- Bot pull requests: 4
Top Authors
Issue Authors
- mcanouil (6)
- cderv (1)
- DrJohan (1)
- batpigandme (1)
- tfaureperso (1)
- cwickham (1)
- stefanocoretta (1)
- sammerk (1)
- ercbk (1)
Pull Request Authors
- mcanouil (33)
- github-actions[bot] (8)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 9
proxy.golang.org: github.com/mcanouil/quarto-iconify
- Documentation: https://pkg.go.dev/github.com/mcanouil/quarto-iconify#section-documentation
- License: mit
-
Latest release: v2.1.1+incompatible
published over 1 year ago