A plugin that simplifies using icons from Iconify in Craft CMS.
You can install the plugin via Composer:
composer require craftyfm/iconifyThen enable the plugin in the Craft Control Panel under Settings > Plugins.
After installation:
-
Go to Settings → Plugins → Iconify.
-
Choose your preferred storage option:
-
Local Storage: Icons are saved in
storage/folder.⚠️ If you're using containers (e.g., Docker), icons may need to be re-downloaded unless storage is persisted. -
Database: Icons are stored in the database.
⚠️ Using large icon sets may increase your database size and affect performance.
-
-
Select the icon sets you want to use.
To download icons, you have two options:
- Navigate to Utilities → Iconify in the Craft Control Panel
- Or use the console command:
./craft iconify/download {iconset}
Leave {iconset} empty to download only the selected icon sets from the plugin settings.
Use the iconify() Twig function to render icons in your templates:
{{ iconify('home', 'tabler', '#000', '1.5', 24, 24) }}iconName(required): The name of the icon.iconset(required): The icon set (e.g.,tabler,mdi, etc.).color(optional): The fill or stroke color (e.g.,#ff0000orred).stroke(optional): Stroke width (e.g.,1,1.5,2).width(optional) Icon width (e.g., 24,24.1em)height(optional) Icon height (e.g., 24,24.1em)
When creating a new field in the Control Panel:
-
Choose "Iconify" as the field type.
-
Configure:
- Icon color
- Stroke width
- Icon set(s)
-
The field shows a searchable list of icons with previews.
Use the selected icon in your templates just like any other field:
{{ entry.fieldHandle.getSvg() }}