No commit activity in last 3 years
No release in over 3 years
CryptoFont by @AMPoellmann (alexanderpoellmann.com)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0
 Project Readme

cryptofont-rails

Cryptofont-rails provides the Cryptofont web fonts and styles as Rails engine for use with the asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'cryptofont-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cryptofont-rails

Usage

In your application.css, include the css file:

/*
 * require cryptofont
 */

Then restart your webserver if it was peviously running. Congratulation! You now have cryptofont icon support.

SASS Support

It you prefer SCSS, add this to your application.css.scss file:

@import "cryptofont";

If you use the SASS indented syntax, add this to your application.css.sass file:

@import cryptofont

Helpers

There are also some helpers cf_icon that make your views better read and cleaner.

cf_icon "btc"
# => <i class="cf-btc"></i>

cf_icon "ltc", text: "Litecoin"
# => <i class="cf-litecoin"></i> Litecoin

cf_icon "eth", text: "Ethereum", right: true
# => Ethereum <i class="cf-eth"></i>

cf_icon "dash 4x", text: "Dash"
# => <i class="cf-dash cf-4x"></i>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/frizbee/cryptofont-rails.

License