Book Image

Sass and Compass Designer's Cookbook

By : Bass Jobsen, Stuart Robson
Book Image

Sass and Compass Designer's Cookbook

By: Bass Jobsen, Stuart Robson

Overview of this book

Sass and Compass Designer's Cookbook helps you to get most out of CSS3 and harness its benefits to create engaging and receptive applications. This book will help you develop faster and reduce the maintenance time for your web development projects by using Sass and Compass. You will learn how to use with CSS frameworks such as Bootstrap and Foundation and understand how to use other libraries of pre-built mixins. You will also learn setting up a development environment with Gulp. This book guides you through all the concepts and gives you practical examples for full understanding.
Table of Contents (23 chapters)
Sass and Compass Designer's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Bourbon inside Rails


Bourbon is a lightweight mixin library for Sass. You can read more about Bourbon in Chapter 13, Meeting the Bourbon family of this book, this chapter also explains the other members of the Bourbon family. Neat is a lightweight semantic grid framework for Sass and Bourbon. Bitters can be used to declare variables and structure for your Bourbon projects. Finally, Refills is a library with prebuilt patterns and components built with Bourbon, Neat, and Bitters. In this recipe, you will learn how to use the Bourbon family to develop RoR web applications.

Getting ready

First read Chapter 13, Meeting the Bourbon family, of this book to learn more about the Bourbon family. Also read the Hello world with Ruby on Rails recipe to understand how to setup a new RoR web application.

How to do it...

The following steps demonstrate how to use Bourbon inside Rails:

  1. Create a new Rails app by running the following command in your console:

    rails new recipe5
    
  2. Change directory to the new...