Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.23 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.23 KB

Big Cartel Theme Fonts Build Status Gem Version

A simple class for working with Big Cartel's supported theme fonts. Used internally by Big Cartel and Dugway.

Install

Add this line to your application's Gemfile:

gem 'bigcartel-theme-fonts'

And then execute:

bundle

Or install it yourself as:

gem install bigcartel-theme-fonts

Usage

georgia = ThemeFont.find_by_name('Georgia')
georgia.name #=> 'Georgia'
georgia.family #=> 'Georgia, "Times New Roman", Times, serif'
georgia.collection #=> 'default'
ThemeFont.google_font_url_for_all_fonts #=> "//fonts.googleapis.com/css?family=One|Two"

How to Release a New Version

  1. Sign into rubygems.org with gem signin, credentials are in 1Password
  2. Bump version in bigcartel-theme-fonts.gemspec and commit it if it hasn't been already
  3. Run bundle exec rake release to cut a new version of the gem and upload it to RubyGems.org