Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 863 Bytes

README.md

File metadata and controls

41 lines (25 loc) · 863 Bytes

Typekit for Rails Gem Version

Adds a Typekit helper to your Rails application and uses some best practices for the integration.

Installation

In your Gemfile just add:

gem 'typekit-rails'

Use the Generator

Run the generator which will prompt you for your kit ID.

rails g typekit:install

Pro Usage

Add the JavaScript helper to application.js or equivalent:

//= require typekit

Specify your kit ID as such right near the top of your <head> element:

<%= typekit 'abc123def456' %>

License

Licensed under the MIT License.

Authors