cecil / theme-octicons
Cecil component theme Octicons
Package info
github.com/Cecilapp/theme-octicons
Language:Twig
Type:cecil-theme
pkg:composer/cecil/theme-octicons
1.2.0
2026-10-10 15:29 UTC
Requires
- cecil/theme-installer: ^1.4||^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Octicons component theme provides a Twig macro to use Primer Octicons icons in Cecil templates.
Prerequisites
- A Cecil website
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>') }}
sizeis optional (default:24)classis optional- If the icon isn't available in the requested size, the
questionicon is rendered instead (size16).
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