Giter Site home page Giter Site logo

meteor-entypo's Introduction

Entypo icons for Meteor

Entypo+ icons by Daniel Bruce, exclusively and carefully packaged for Meteor by Lookback.

This package uses a Meteor template helper to inline each icon with help from the use element in SVG. Each icon is wrapped in a symbol element in a separate, cachable SVG sprite.

Example implementation and preview: entypo.meteor.com (Source).

Read more about SVG sprites:

Install

This package is available on Atmosphere as lookback:entypo.

Install package with

meteor add lookback:entypo

That will expose a entypo template helper for you to use in your app. The template helper takes one argument: the icon slug name (taken from the original SVG id attribute).

Usage

Example:

{{ > entypo 'flower'}}

Will generate:

<svg class="icon icon-flower">
    <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/packages/lookback_entypo/entypo.svg#icon-flower"></use>
  </svg>

Styling

SVG icons can be styled to mimic font icon behavior (resizable with font-size, inheriting parent color value) like this:

/* Suggestion on styling for the .icon class.
1. Will be inherited from parent's 'color' property.
2. Resize the icon by setting `font-size` on either .icon itself or parent.
*/
.icon {
  fill: currentColor; /* 1. */
  width: 1em; /* 2. */
  height: 1em; /* 2. */
}

You can also add relevant vertical-align properties as you see fit.

meteor-entypo's People

Contributors

johanbrook avatar schonert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

schonert zooshme

meteor-entypo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.