monachilada / craft-svgicons
Craft CMS Twig extension to include SVGs from the Feather and Zondicons SVG icon libraries directly in your templates.
Installs: 2 290
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 10
Type:craft-plugin
Requires
- craftcms/cms: ^3.0
- dev-master
- 1.0.3
- 1.0.2
- 1.0.1.2
- 1.0.0
- dev-dependabot/composer/craftcms/cms-3.7.55.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/copy-props-2.0.5
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/mixin-deep-1.3.2
This package is auto-updated.
Last update: 2025-03-07 19:59:26 UTC
README
Craft CMS Twig extension to include SVGs from the Feather and Zondicons SVG icon libraries directly in your templates.
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require monachilada/craft-svgicons
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for SVG Icons.
Using SVG Icons
Filter style: 'icon-name'|feather
(or |zondicons
) as well as function style: svgIcon('zondicons', 'icon-name')
will work.
For example 'cpu'|feather
would result in the following:
While svgIcon('zondicons', 'announcement')
would result in:
See Feather and Zondicons to browse icons and for documentation on the keys to reference them.
SVG Icons Roadmap
Some things to do, and ideas for potential features:
- Add more icon sets as requested
Brought to you by Mike Pierce