Petecass / typi_rails

A gemified version of Typi https://github.com/zellwk/typi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A gemified version of Typi https://github.com/zellwk/typi

License:MIT License


Languages

Language:Ruby 54.1%Language:CSS 28.4%Language:HTML 14.6%Language:JavaScript 2.9%