0.1.4 • Published 5 years ago

yummy-icons v0.1.4

Weekly downloads
3
License
CC-BY-SA-4.0
Repository
github
Last release
5 years ago

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:

VariableDescriptionDefault value
$yummy-icon-selectorDefines main icon selectoryummy-icon
$yummy-icon-slugDefines the icon selectoryi
$yummy-icon-font-pathDefines the fonts' pathweb-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.

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago