GithubHelp home page GithubHelp logo

maikis / source-sans-pro-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from veracross/source-sans-pro-rails

0.0 2.0 0.0 3.33 MB

Adobe Source Sans Pro in the Asset Pipeline

License: MIT License

Ruby 83.38% CSS 16.62%

source-sans-pro-rails's Introduction

source-sans-pro-rails Gem Version Build Status

Adds Adobe's Source Sans Pro font to Rails via the asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'source-sans-pro-rails'

And then execute:

$ bundle

Usage

If you want to include all of the font weight variations, simply add this to application.css:

/*
 *= require source-sans-pro
 */

You can also load just the font variants that are interesting to you. They are in the source-sans-pro directory, so just change the above line to:

/*
 *= require source-sans-pro/regular
 *= require source-sans-pro/bold
 */

And so forth. Currently, the supported font variants are:

  • Regular (regular)
  • Italic (italic)
  • Light (light - font weight 300)
  • Extra Light (extralight - font weight 100)
  • Semibold (semibold - font weight 600)
  • Bold (bold)
  • Black (black - font weight 800)

Building

Font files were downloaded directly from the latest release of https://github.com/adobe-fonts/source-sans-pro.

License

  • The Adobe Source Sans Pro font is licensed under the SIL Open Font License
  • This project is licensed under the MIT License.

Thanks

  • Adobe for open sourcing this font
  • font-awesome-rails for a good example of creating a font gem for the asset pipeline

source-sans-pro-rails's People

Contributors

sixfeetover avatar bvogelzang avatar

Watchers

James Cloos avatar Mykolas Grinevičius avatar

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.