Home

Awesome

TypiRails

Codeship

Typi Rails is a Gemified wrapper for Typi (A Sass Mixin) for use in you Rails project

Usage

For detailed usage please refer to https://github.com/zellwk/typi

Installation

Add this line to your application's Gemfile:

# ./Gemfile
# ...
gem 'typi_rails'

And then execute:

$ bundle

You can then incorporate Typi into the asset pipeline.

Import Typi styles in app/assets/stylesheets/application.scss

Make sure the file has the .scss extension (or .sass for the indentation based Sass syntax). If you have just generated a new Rails app it will most likely have a .css extension. If this file exists, it will be served instead of Sass, so rename it and delete all the require statements and use the @import directive native to sass.

$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
// app/assets/stylesheets/application.scss
@import 'typi';

License

The gem is available as open source under the terms of the MIT License.