Download the PHP package jacerider/neo_icon without Composer
On this page you can find all versions of the php package jacerider/neo_icon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jacerider/neo_icon
More information about jacerider/neo_icon
Files in jacerider/neo_icon
Package neo_icon
Short Description An IconMoon-based icon manager.
License proprietary
Homepage https://github.com/jacerider/neo_icon
Informations about the package neo_icon
CONTENTS OF THIS FILE
- Introduction
- Requirements
- Installation
- Drush Commands
- Usage within PHP
- Usage within SCSS
- Icon Definitions
INTRODUCTION
Allow Icomoon icon packages to be utilized within Drupal.
ICOMOON PACKAGES
Both IcoMoon export layouts are accepted, and the one in use is detected on upload.
The classic layout:
The newer layout, produced by IcoMoon's current app:
A newer package is rewritten into the classic layout on import, so nothing else in the module has to care which one was uploaded. Two things are worth knowing:
- The newer project file carries no font name and no class prefix — IcoMoon
names an unnamed project "Untitled" — so both are taken from the library's own
machine name, as
icon-<id>andicon-<id>-. - When a package contains both a font and an SVG sprite, the font wins. The
loose
svg/directory, the demo pages and the project file itself are discarded once the icon definitions have been generated.
Multicolor (duotone) glyphs are only supported in the classic layout. The newer
project file stores a single code point per glyph, so it cannot express the
layered glyphs the classic properties.codes array described; use the SVG
sprite for a multicolor set.
REQUIREMENTS
This module requires no modules outside of Drupal core.
INSTALLATION
Install as you would normally install a contributed Drupal module. Visit https://www.drupal.org/node/1897420 for further information.
DRUSH COMMANDS
neo:icon:list [search] (alias neoi-list) — search the available icon names
for the icon() Twig function (and the IconTrait::icon() helper) so you don't
have to guess. An optional search term filters by substring; --limit caps the
number of results (default 50). Supports --format=json for machine parsing.
USAGE WITHIN SCSS
A PHP trait has been provided that can be a dropin replacement for the Drupal core StringTranslationTrait.
USAGE WITHIN TAILWIND
Global icon sets can utilitized within Neo Build.
ICON DEFINITIONS
Dynamic icons can be defined via a MODULE_NAME.neo.icon.yml file.
All versions of neo_icon with dependencies
jacerider/neo_config_file Version ^1
jacerider/neo_modal Version ^1