yummy-icons

0.1.4 • Public • Published

Yummy Icons

A npm package with the Yummy Icon.

npm

Installation

1. Add the library to your project

npm i yummy-icons
yarn add yummy-icons

2. Reference the fonts on the HTML's head

<head>
  <link href="path/to/dist/yummy-icons.css" rel="stylesheet">
</head>

Usage

<i class="yummy-icon yi-001"></i>

Cheat Sheet

For details and embeddings codes, click here.

Configuration

The following variables are allowed to be set externally:

Variable Description Default value
$yummy-icon-selector Defines main icon selector yummy-icon
$yummy-icon-slug Defines the icon selector yi
$yummy-icon-font-path Defines the fonts' path web-fonts

Sass configuration (Angular)

On your /src/app/app.scss file, add:

$yummy-icon-font-path: '~yummy-icons/dist/web-fonts' !default;
@import '~yummy-icons/src/sass/yummy-icons';

Ionic 3 configuration

1. Add to config/sass.config.js:

  ...
    /**
    * includePaths: Used by node-sass for additional
    * paths to search for sass imports by just name.
    */
    includePaths: [
      'node_modules/ionic-angular/themes',
      'node_modules/ionicons/dist/scss',
      'node_modules/ionic-angular/fonts',
      'node_modules/yummy-icons/src/sass' //add this line..
    ],
  ...

2. Add to config/copy.config.js:

  ...
    copyFonts: {
      src: [
        '{{ROOT}}/node_modules/ionicons/dist/fonts/**/*',
        '{{ROOT}}/node_modules/ionic-angular/fonts/**/*',
        '{{ROOT}}/node_modules/yummy-icons/dist/web-fonts/**/*' //and this!
      ],
      dest: '{{WWW}}/assets/fonts',
    },
  ...

How to contribute

Code of Conduct

Everyone interacting in the Yummy-Icons project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

License

The package is available as open source under the terms of the CC BY-SA 4.0.

Copyright

(c) Designed by medisculpt. Licensed under the CC BY-SA 4.0.

Readme

Keywords

Package Sidebar

Install

npm i yummy-icons

Weekly Downloads

2

Version

0.1.4

License

CC-BY-SA-4.0

Unpacked Size

1.58 MB

Total Files

25

Last publish

Collaborators

  • roalcantara