A simple and lightweight mixin library for Sass.

Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration required. The mixins aim to be as vanilla as possible, meaning they should be as close to the original CSS syntax as possible.

The mixins contain vendor specific prefixes for all CSS3 properties for support amongst modern browsers. The prefixes also ensure graceful degradation for older browsers that support only CSS3 prefixed properties. Bourbon uses SCSS syntax.

Installing with npm and using a Node-based asset pipeline

Add Bourbon as a dependency:

npm install --save bourbon

If you’re using Eyeglass, skip to Step 3. Otherwise, you’ll need to add Bourbon to your node-sass includePaths option. require("bourbon").includePaths is an array of directories that you should pass to node-sass. How you do this depends on how node-sass is integrated into your project.

Import Bourbon into your Sass files:

@import "bourbon";

Installing older versions of Bourbon

Uninstall any Bourbon gem versions you already have:

gem uninstall bourbon

Reinstall the Bourbon gem, using the -v flag to specify the version you need: