Skip to content

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Octicons component theme

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

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Sponsor this project

Contributors

Languages