[![Refills](http://images.thoughtbot.com/bourbon/refills-logo.svg)](http://refills.bourbon.io) [![Gem Version](http://img.shields.io/gem/v/refills.svg?style=flat)](https://rubygems.org/gems/refills) [![Build Status](https://travis-ci.org/thoughtbot/refills.svg?branch=master)](https://travis-ci.org/thoughtbot/refills) ## Prepackaged patterns and components built with Bourbon and Neat - **[Examples & Code Snippets](http://refills.bourbon.io)** - **[Changelog](https://github.com/thoughtbot/refills/releases)** - **[Issues & Bugs](https://github.com/thoughtbot/refills/issues)** ## Requirements - [Sass](https://github.com/sass/sass) 3.3+ - [Bourbon](https://github.com/thoughtbot/bourbon) 4.0+ - [Neat](https://github.com/thoughtbot/neat) 1.6+ ## Installation 1. Install Refills’ dependencies: [Bourbon](https://github.com/thoughtbot/bourbon#installation), [Neat](https://github.com/thoughtbot/neat#installation) and [jQuery](http://jquery.com/download) (if you plan to use any components that require JavaScript). 2. Go to the [Refills website](http://refills.bourbon.io), click “Show Code” under the component or pattern that you want and copy-paste it into your project. 3. Customize: Most of the components and patterns have a set of Sass variables that allow you to quickly tweak the look and feel. ## Installation for Ruby on Rails Alternative to copy-pasting manually, we also have a Refills gem that allows you to add components and patterns via Rake tasks. 1. Add Refills to your Gemfile: ```ruby gem 'refills' ``` 2. Then run: ```bash bundle install ``` 3. Use the following Rails generators: List all available snippets: ```bash rails generate refills:list ``` Add a snippet: ```bash rails generate refills:import SNIPPET ``` If you want to generate coffeescript instead of javascript, simply add `--coffee` ```bash rails generate refills:import SNIPPET --coffee ``` This copies the snippet’s partial to `app/views/refills`, the stylesheet to `app/assets/stylesheets/refills` and the JavaScript to `app/assets/javascripts/refills` ## Miscellaneous If your css reset file does not add webkit antialias, add the following code to your Scss file: ```css body { -webkit-font-smoothing: antialiased; } ``` ## The Bourbon family - [Bourbon](https://github.com/thoughtbot/bourbon): A simple and lightweight mixin library for Sass - [Neat](https://github.com/thoughtbot/neat): A lightweight semantic grid framework for Sass and Bourbon - [Bitters](https://github.com/thoughtbot/bitters): Scaffold styles, variables and structure for Bourbon projects - [Refills](https://github.com/thoughtbot/refills): Prepackaged patterns and components built with Bourbon, Neat and Bitters ## Credits [![thoughtbot](http://images.thoughtbot.com/bourbon/thoughtbot-logo.svg)](http://thoughtbot.com) Refills is maintained and funded by [thoughtbot, inc](http://thoughtbot.com). Tweet your questions or suggestions to [@bourbonsass](https://twitter.com/bourbonsass) and while you’re at it follow us too. Whenever code for Refills is borrowed or inspired by existing code, we try to credit the original developer/designer in our source code. [Let us know](mailto:design+bourbon@thoughtbot.com) if you think any credit is absent. ## License Copyright © 2014–2015 [thoughtbot, inc](http://thoughtbot.com). Refills is free software, and may be redistributed under the terms specified in the [license](LICENSE.md).