Skip to content

ombulabs/styleguide

Repository files navigation

OmbuLabs::StyleGuide

Ruby on Rails Installation (as a Gem)

Add this line to your application's Gemfile:

gem 'ombulabs-styleguide'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ombulabs-styleguide

Usage

In application.css, add:

*= require ombulabs/styleguide

or if you are using scss: appliation.scss

@import "ombulabs/styleguide";

In application.js add:

//= require ombulabs/styleguide

Installation (as a Node Module)

Install the package directly from this repo:

$ yarn add "ombulabs/styleguide#gh-pages"

In app/assets/stylesheets/application.scss, add:

@import "ombulabs-styleguide";

Static generation

From the gem folder

$ bundle

Build static

$ rake precompile_assets

Styles and Javascript files are in static folder.

Components can be checked if index.html file is opened in a browser.