{"name":"iconfonts","version":"0.3.0","description":"Fine-tuned icon fonts integration for Sass, Less and Stylus.","main":"index.js","scripts":{"test":"make test"},"author":"","license":"MIT","devDependencies":{"css":"^2.0.0","less":"^1.7.3","node-sass":"^0.9.3","stylus":"^0.46.3","underscore":"^1.6.0"},"repository":{"type":"git","url":"https://github.com/rstacruz/iconfonts.git"},"gitHead":"65f9cf70cb0a729715124789c607e99790a864d1","bugs":{"url":"https://github.com/rstacruz/iconfonts/issues"},"homepage":"https://github.com/rstacruz/iconfonts","_id":"iconfonts@0.3.0","_shasum":"fcd6c2a4a5755c32445b23c534c7e3a970102e7d","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"fcd6c2a4a5755c32445b23c534c7e3a970102e7d","tarball":"http://registry-npm.ywwl.com/iconfonts/download/iconfonts-0.3.0.tgz","integrity":"sha512-erQrMr8ikoJN6yUv/gGy68GXX8iaH8T0fevUSsbXOo2LXOTNtRfJ+YENbVjW//fCtIPOyQ8V9PmpxHR7zfkF2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb3I9fu44vPqm9DEPpogMmlRRmz95UuF+zaXg/Q+VnJQIgOf1OcfMFFYy+LRwHqqSt7oFpzEaRYFWHA1DyyOJrMNw="}],"size":69628,"noattachment":false,"key":"/iconfonts/-/iconfonts-0.3.0.tgz"},"readme":"# Icon fonts\n\nFine-tuned icon fonts integration for Sass, Less and Stylus. Features the following icon sets:\n\n * [Elusive](http://shoestrap.org/downloads/elusive-icons-webfont/)\n * [FontAwesome](http://fontawesome.io)\n * [Ionicons](http://ionicons.com)\n * [Foundation Icons General](http://zurb.com/playground/foundation-icon-fonts-3)\n\n[![Status](https://travis-ci.org/rstacruz/iconfonts.svg?branch=master)](https://travis-ci.org/rstacruz/iconfonts)\n\nInstallation\n------------\n\n__Manual:__ Get the files you need over at [/stylesheets/](stylesheets) and put it in your \nproject.\n\n__Bower:__ Using bower makes files available via `bower_components/iconfonts/stylesheets/`.\n\n    $ bower install iconfonts\n\nIn your less/sass/styl files:\n\n    @include '../bower_components/iconfonts/stylesheets/ionicons';\n\n__NPM:__ Using npm makes files available via `node_modules/iconfonts/stylesheets/`.\n\n    $ npm install iconfonts --save\n\nIn your less/sass/styl files:\n\n    @include '../node_modules/iconfonts/stylesheets/ionicons';\n\n__Rails:__ Use rails-assets.org.\n\n```ruby\nsource 'https://rails-assets.org' do\n  gem 'rails-assets-iconfonts'\nend\n```\n\nIn your sass files:\n\n```scss\n@import 'iconfonts/stylesheets/ionicons';\n```\n\n[![npm version](https://badge.fury.io/js/iconfonts.svg)](https://npmjs.org/package/iconfonts \"View this project on npm\")\n\nWhy is it needed?\n-----------------\n\nThis lets you use CSS definitions only for the icons you need, on the elements\nthat you need them.\n\nThe CSS files that these fonts provide usually give you a lot of cruft, and \ndefines all the classes in one giant file.\n\n```css\n/* CSS */\n.fa-user:before { content: '\\f007'; }\n.fa-film:before { content: '\\f008'; }\n.fa-th-large:before { content: '\\f009'; }\n... and 300 more\n\n/* HTML */\n<button class=\"btn btn-plus\"><i class=\"fa fa-plus\"></i> Add user</button>\n```\n\nI prefer to not have them in my CSS files unless I need them. This project lets \nyou do that.\n\n```css\n/* Stylus */\n.btn-plus:before {\n  fa-icon(\"plus\");\n  margin-right: 10px;\n}\n\n/* HTML */\n<button class=\"btn-plus\">Add user</button>\n```\n\nSetup\n-----\n\n#### SCSS ([example](stylesheets/ionicons.scss))\n\n``` scss\n@import 'font-awesome';\n\n/* embeds the @font-face. use this only once. */\n@include fa-font();\n\nbutton:before {\n  @include fa-icon(\"music\", 14px);\n}\n```\n\nSee [a Sass file](stylesheets/ionicons.scss) for more info.\n\n#### SCSS on Rails without CDN's\n\n*Optional:* If you're on Rails (with [sass-rails]), and prefer to keep the\nfiles in your project, download the font files to `vendor/assets/images/`.\nAfterwards, use `xx-font-rails()` instead of `xx-font()` to embed the\n@font-face.  Usage is otherwise the same as above.\n\n``` scss\n@import 'font-awesome';\n@include fa-font-rails();\n```\n\n#### Stylus ([example](stylesheets/ionicons.styl))\n\n``` sass\n@require font-awesome\n\nfa-font()\n\nbutton:before\n  fa-icon(\"music\", 14px)\n```\n\nSee [a stylus file](stylesheets/ionicons.styl) for more info.\n\n#### Less ([example](stylesheets/ionicons.less))\n\n``` less\n@import 'font-awesome';\n.fa-font();\n\nbutton:before {\n  .fa-icon(\"music\");\n  font-size: 14px;\n}\n```\n\nSee [a less file](stylesheets/ionicons.less) for more info.\n\n#### Less on Rails\n\nIf you're on Rails (with [less-rails]) and prefer to keep the files in your \nproject, download the font files to `vendor/assets/images/`. Afterwards, use\n`xx-font-rails()` instead of `xx-font()` to embed the @font-face.  Usage is \notherwise the same as above.\n\n``` scss\n@import 'font-awesome';\n.fa-font-rails();\n```\n\n[sass-rails]: https://github.com/rails/sass-rails\n[less-rails]: https://github.com/metaskills/less-rails\n\n#### PostCSS + [cssnext](http://cssnext.io) + [postcss-import](https://www.npmjs.com/package/postcss-import)\n\n``` css\n@import 'iconfonts/stylesheets/font-awesome.cssnext.css';\n\n@apply --fa-font;\n\nbutton::before {\n  @apply --fa-icon;\n  @apply --fa-icon-music;\n}\n```\n\n## Thanks\n\n**Iconfonts** © 2014-2017, Rico Sta. Cruz. Released under the [MIT License].<br>\nAuthored and maintained by Rico Sta. Cruz with help from [contributors].\n\n> [ricostacruz.com](http://ricostacruz.com) &nbsp;&middot;&nbsp;\n> GitHub [@rstacruz](https://github.com/rstacruz) &nbsp;&middot;&nbsp;\n> Twitter [@rstacruz](https://twitter.com/rstacruz)\n\n[MIT License]: http://mit-license.org/\n[contributors]: http://github.com/rstacruz/iconfonts/contributors\n","publish_time":1407167661136,"_cnpm_publish_time":1407167661136,"dist-tags":{"latest":"0.12.0"}}