Book Image

Bootstrap Site Blueprints Volume II

By : Matt Lambert
Book Image

Bootstrap Site Blueprints Volume II

By: Matt Lambert

Overview of this book

Bootstrap is the most popular open source project on GitHub today. With a little bit of know-how, this massively popular CSS framework can leveraged for any type of complex web application or website. Bootstrap Site Blueprints Volume II will teach you to build these types of projects in an easy-to-understand fashion. The key to any complex Bootstrap project is a strong development foundation for your project. The book will first teach you how to build a Bootstrap development environment using Harp.js, Node, and Less. In the next chapters, we’ll build on this foundation by creating restaurant and mobile-first aggregator projects. Once you’re warmed up, we’ll move on to more complex projects such as a wiki, a new magazine, a dashboard, and finally a social networking website. Whether you are brand new to Bootstrap or a seasoned expert, this book will provide you with the skills you need to successfully create a number of popular web applications and websites.
Table of Contents (14 chapters)
Bootstrap Site Blueprints Volume II
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Setting up the Less variables


As in our previous projects, the next step is to update our Less variables for our new project. Open _variables.less, which is located in /css/components. Let's go through each new part section by section.

Adding new colors

I've added a few new colors that I want to use in the project. Each of these colors is prepended with bw- so that we can easily identify that they are project-specific; bw- stands for Bootstrap wiki, if it's not obvious. Here are the new colors:

@bw-dark-primary: #00796b;
@bw-primary: #009688;
@bw-light-primary: #b2dfdb;
@bw-black: #212121;
@bw-grey: #727272;
@bw-light-grey: #b6b6b6;

You might notice a different naming convention here. I've changed it to use primary instead of the actual color name for the main color. This is simply to show you that there is more than one way to organize your colors and you don't have to do it the same way each time. For this project, there is one primary color, so it makes sense to use this type of naming convention...