Icon

icon renders one SVG from static/icons/. It is the Markdown-facing wrapper around the icon macro used by templates.

When to Use

Use it inline in docs or marketing copy when a small visual cue improves scanability. Only reference icons that already exist in the theme.

Usage

{{ icon(name="sparkles", class="inline size-5 text-content") }}

Live Example

Varavel-ready and bundled with the theme.

Parameters

ParameterDescription
nameIcon filename without .svg. Required.
classAdditional CSS classes on the SVG element.