getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

[site-toolbox] Correct syntax for heroicons #377

Closed Staubgeborener closed 1 year ago

Staubgeborener commented 1 year ago

I can use tabler icons easily, for example, like this tabler/home-2.svg (modular/features template in typhoon). But what is the correct syntax for heroicons? According to the documentation it should be something like this heroicons\outline/Home.svg or heroicons/outline/Home.svg, but both are not working

Staubgeborener commented 1 year ago

Quite annoying, that premium user are forced to use the GitHub repository in order to get help, although the feedback here is far less than in the official grav forum.

rhukster commented 1 year ago

Sorry, must of missed this..

There's a heroicon example here:

https://getgrav.org/premium/site-toolbox/docs#twig-function-for-templates

{{ svg_icon('heroicons/outline/star.svg', 'current-color h-8 w-8')|raw }}

I think the issue is your uppercase of Home.svg, the files are actually all lower case.