[![Bitters](http://images.thoughtbot.com/bourbon/bitters-logo.svg)](http://bitters.bourbon.io) [![Gem Version](http://img.shields.io/gem/v/bitters.svg?style=flat)](https://rubygems.org/gems/bitters) ## Scaffold styles, variables and structure for Bourbon projects. Bitters helps designers start projects faster by defining a basic set of Sass variables, default element style and project structure. It’s been specifically designed for use within web applications. Bitters should live in your project’s root Sass directory and we *encourage* you to modify and extend it to meet your design and brand requirements. Bitters is made to work alongside a CSS reset; not replace one. Our suggested reset is [Normalize](http://necolas.github.io/normalize.css). - **[Demo](http://bitters.bourbon.io)** - **[Changelog](https://github.com/thoughtbot/bitters/releases)** - **[Issues & Bugs](https://github.com/thoughtbot/bitters/issues)** Follow the [@bourbonsass](https://twitter.com/bourbonsass) Twitter account for updates. ## Requirements - [Sass](https://github.com/sass/sass) 3.4+ or [LibSass](https://github.com/sass/libsass) 3.1+ - [Bourbon](https://github.com/thoughtbot/bourbon) 5.0+ - Ruby 1.9.3+ (required to install Bitters from the command line) ## Installation For command line help, visit our wiki page on Bitters’ [command line interface](https://github.com/thoughtbot/bitters/wiki/Command-Line-Interface). 1. Install the Bitters gem using the [RubyGems](https://rubygems.org) package manager: ```bash $ gem install bitters ``` *If you use [rbenv](https://github.com/sstephenson/rbenv), be sure to run `rbenv rehash` without any errors.* 2. Install [Bourbon](https://github.com/thoughtbot/bourbon#installation) 3. Install the Bitters library into the current directory by running the following command at the command-line. If you’re using Ruby on Rails, run the command in `app/assets/stylesheets`: ```bash $ bitters install ``` A `base` directory will be generated which contains all of the Bitters files. 4. Import Bitters after Bourbon in your `application.css.scss` or main manifest file. All additional stylesheets should be imported below Bitters. ```scss @import "bourbon"; @import "base/base"; ``` 5. Once Bourbon and Bitters are set up, you can begin to import your styles below them. ```scss @import "bourbon"; @import "base/base"; @import "my-project-styles"; … ``` ## Using Bitters ### Sass structure & default style The Bitters directory should contain styles for all the basic elements used throughout the project. It also contains directories for custom mixins and extends for your site as well. Add code to the existing files or add new files to the directories. Customize Bitters for your site as you see fit. ### Variables This houses all variables that are used, or will be used, in more than one file in your site. Variable names in Bitters that are used outside of the variables file start with `$base` to indicate that they are the most basic variables. ### Typography All type is based on `$base-font-size` which is set to 1em (16px) by default. The spacing around type is based on `$base-line-height` so as to keep a semi-baseline grid. All sizes are scaled up or down by a factor of `0.25`. ### Lists All lists have stripped out styles. No bullets, no left padding. To add back the expected browser default styles add `@extend %default-ul;` or `@extend %default-ol;` to the `