npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

elegant-icons-sass

v0.7.0

Published

Elegant Icon with real sass support

Readme

Elegant Icons Sass

This is the Sass version of the Elegant ThemesElegant Icon Font.

Installation

  1. Install this package:
npm install --save elegant-icons-sass
  1. Import elegant-icons-sass in your code:
@import 'node_modules/elegant-icons-sass/scss/elegant-icons-sass';

Or, you can also add node_modules/elegant-icons-sass/scss/ to your sass includePaths and make the import cleaner:

@import 'elegant-icons-sass';

By default, only the woff and woff2 formats (Why?) of the fonts will be pulled from a CDN (using RawGit). If you want to use different formats and/or local fonts, check the Customization section below.

Usage

To use the icons, you will need their names, which you can find here (right after the unicode reference list).

The unicode references of the above list are meant to be used as data-icon, which the support has been removed in this sass version, because it‘s considered a bad practice due to performance issues. If you wish to use this way, you must define it yourself.

On the list, you will find that almost all icons have an icon_ prefix in their names, which seems to be redundant and unnecessary. In this Sass version, you can omit it (as done in the exemples below), but for backwards compatibility they are still valid selectors for all usage types (mixin, placeholder or class).

By default, the icon will be defined as a ::before pseude-element. If you wish to change this default, check the Customization section below.

As a mixin

Include the mixin in your selector:

.my-selector {
  @include elegant-icon('arrow_up');  
}

You can override the icon's default placement by passing it as a second parameter:

.my-selector {
  @include elegant-icon('question', 'after');  
}

As a placeholder

Extend the your selector with the placeholder:

.my-selector {
  @extend %ei-contacts_alt;
}

When using as a placeholder, the prefix ei- must be used. Check the Customization section below on how to change or remove this prefix.

As a class

If you just want to use it as a class, you MUST ACTIVATE the class generation first (Check the Customization section below on how to activate it.)

After activated, you can simply set the icon class name to your html element:

<span class="ei-plus"></span>

When using as a class, the prefix ei- must be used. Check the Customization section below on how to change or remove this prefix.

Customization

This sass version of the Elegant Icons defines a few defaults, which are considered best practices or common use cases. If you wish to override them, here is how:

The overrides below, must be done BEFORE the import explained in the Step 2 of the Usage section.

Activate class selectors

$ei-generate-classes: true;

// Default value: false

Using a different selector prefix:

$ei-icon-prefix: 'my-prefix-';

// Default value: 'ei-'

If you don‘t want to use a prefix, set it to an empty string: $ei-icon-prefix: '';

Set the icons placement as ::after:

$ei-default-placement: 'after';

// Default value: 'before'

The $ei-default-placement variable can only be set as 'before' or 'after' which will define it as a ::before or an ::after pseudo-element, respectively.

Using different font formats:

// All formats:
$ei-font-formats: eot woff2 woff ttf svg;

// Default value: woff woff2

You can define any formats combination that you need from the available formats on example list above.

Using local fonts

  1. Activate the local font usage:
$ei-use-local-fonts: true;
  1. Override the font path variable:
// Example:
$ei-font-path: '../assets/fonts/elegant-icons/';

// Default value: '/fonts'

Please note that the path above must be relative to the generated CSS file, since it is used as a normal src: url() in an @font-face definition.

  1. (Optionally) change the font file name:
$ei-font-filename: 'my-custom-icons-filename';

// Default value: 'ElegantIcons'

If you‘re just copying the font files and not renaming them, don‘t override this.

  1. (Optionally) change the font family name:
$ei-font-family: 'My-Custom-Icons-Family-Name';

// Default value: 'ElegantIcons'

Override only if you somehow wish to have a different font-family name defined to the icons font.

You might need to copy the font files yourself from the node_modules/elegant-icons-sass/fonts folder. You can use your build system of choice for that.

Original image files

The original image files (in SVG and PNG) can be found in the repo's image folder.

Contributing

  1. Fork and Clone.

  2. Install dependencies:

npm install
  1. Do your stuff!

  2. Generate the css version by running:

npm run build
  1. Send PR.

License

As per the original release, this icon font is dual licensed under the GPL v2.0 and MIT license.