Skip to content

Instantly share code, notes, and snippets.

@philwilt
Last active August 29, 2015 14:06
Show Gist options
  • Save philwilt/6f1c17ad68c0846fa715 to your computer and use it in GitHub Desktop.
Save philwilt/6f1c17ad68c0846fa715 to your computer and use it in GitHub Desktop.
Rails with bourbon neat with bitters and refills
# Gemfile
# styles and structure for bourbon
gem 'bitters'
# sass mixins
gem 'bourbon'
# grid framework for bourbon
gem 'neat'
# patterns for bourbon
gem 'refills'
group :development do
gem 'rails_layout'
end
$ echo "shell commands"
$ bundle install
$ rails generate layout:install simple --force
$ cd app/assets/stylesheets
$ bitters install
$ rails generate refills:list # lists available refills to add
// application.css.scss
@import "bourbon";
@import "base/grid-settings";
@import "base/base";
@import "neat";
$ echo "to install refill navigation"
$ rails g refills:navigation
<!-- application.html.erb -->
<%= render 'refills/navigation' %>
// application.css.scss
@import "bourbon";
@import "base/grid-settings";
@import "neat";
@import "base/base";
@import "refills/navigation"
@allizad
Copy link

allizad commented Sep 22, 2014

should line 31 be rails generate refills:import navigation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment