Project

typi_rails

0.0
No commit activity in last 3 years
No release in over 3 years
Gemified version of Typi (https://github.com/zellwk/typi)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 5.0.0.1, ~> 5.0.0
>= 3.2
 Project Readme

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.