Octicons for Cecil
This website is the demo of the Octicons component theme for Cecil: a Twig macro to render Primer Octicons as inline SVG.
{% import 'macros/octicons.twig' as octicons %}
{{ octicons.svg('mark-github', 24, 'icon') }}
sizeis optional:12,16or24(some icons also exist in48and96), default:24;classis optional;- if the icon isn't available in the requested size, the
questionicon is rendered instead.
Icons use currentColor, so they follow the text color. Search an icon below, then click it to copy its macro call.