O'Reilly logo

Sass and Compass Designer's Cookbook by Bass Jobsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required