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

Installing Bourbon in the build chain


Chapter 13, Meeting the Bourbon Family, of this book describes, among others, how to build a semantic layout with the Bourbon and Neat Sass libraries. In this recipe, you will learn how to integrate the code of the Semantic grids with Neat recipe of Chapter 13, Meeting the Bourbon Family, into your Grunt build chain.

Getting ready

Install Grunt, as described in the Installing Grunt recipe of this chapter.

How to do it...

Perform the following steps to compile your code with Grunt and use the Bourbon and Neat Sass libraries:

  1. Copy the files from the Semantic grids with Neat recipe of Chapter 13, Meeting the Bourbon Family, into your working directory. Remove the sass/bourbon and sass/neat folders.

  2. Then, change the import paths for Bourbon and Neat in the file. These paths should look like that shown here:

    @import 'bourbon';
    @import 'neat';
  3. Run the following command in your console to create the package.json file for your project:

    npm init
    
  4. Then, locally install...