Search by

cecil / theme-octicons

aligny

Cecil component theme Octicons

Package info

github.com/Cecilapp/theme-octicons

Language:Twig

Type:cecil-theme

pkg:composer/cecil/theme-octicons

Fund package maintenance!

ArnaudLigny

Open Collective

Statistics

Installs: 2 631

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.2.0 2026-10-10 15:29 UTC

This package is auto-updated.

Last update: 2026-10-10 15:54:20 UTC


README

The Octicons component theme provides a Twig macro to use Primer Octicons icons in Cecil templates.

Prerequisites

Installation

composer require cecil/theme-octicons

Or download the latest archive and uncompress its content in themes/octicons.

Usage

{% import 'macros/octicons.twig' as octicons %}

{{ octicons.svg('<icon>', <16|24>, '<class>') }}
  • size is optional (default: 24)
  • class is optional
  • If the icon isn't available in the requested size, the question icon is rendered instead (size 16).

Development

Install dependencies, then copy the Octicons data file (from @primer/octicons) to the data folder:

npm install
npm run build

Demo

The demo/ folder contains a website listing all the icons, using the theme under development:

php demo/link.php
cecil serve demo