Chapter 2. Sass – The Road to Better CSS
In this chapter, we will cover:
- Setting up a simple project based strongly on typography.
- We'll look at using Sass from the command line and the various options we can pass to take control of our output.
- We'll then set up our project's configuration variables using
!default to allow easy overriding in future. These variables will control all of our functions and mixins and will allow the end user to have full control of our Sass library, without needing to touch mixins or functions.
- We'll look at writing a small but flexible library of functions and mixins that will deal with setting up a base typography style for our default body, text, and headings. This will be based around the optimal reading line length ...