Bitters scaffolds styles, variables, and structure for Bourbon projects. In this recipe, you will see how to use Bitters to style the buttons for your Bourbon projects.
Of course, you will have to install Ruby Sass as described in Chapter 1, Getting started with Sass, of this book. You also have to install Bourbon and Bitters. Run the following commands in your console to install Bourbon and Bitters:
gem install bourbon gem install bitters
Note that Chapter 1, Getting Started with Sass, of this book also describes how to install Ruby and Ruby gems.
Perform the following steps to style your buttons with Bitters:
Create the file and directory structure, as shown in the following:
Navigate to the
sass
directory and run the following commands to copy the Bourbon and Bitters files:bourbon install bitters install --path=bitters
Now, edit the
sass/main.scss
file and write down the following SCSS code in it:'' @import ''base/normalize''; @import...