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 modular scales for typefacing


The term modular scale refers to a series of harmonious values that relate to one another in a meaningful way. A modular scale helps you to create visual harmony in the whole design. A number of the scales are used to set font sizes, line heights, margins, and even grid sizes in your design. In this recipe, you will learn how to apply a modular scale for your designs using Bourbon.

Getting ready

In this recipe, you will create a modular scale with the modular scale function of Bourbon. To use this function, you should install Bourbon first. The Bourbon mixins for prefixing recipe of this chapter describes how to install Bourbon. You can read more about Sass functions in Chapter 5, Built-in Functions, of this book. Of course, you should also have Sass installed as described in Chapter 1, Getting Started with Sass.

How to do it...

Learn more about modular scales for your designs when performing the following steps:

  1. Firstly, install Bourbon and create a file and...