Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bootstrap Site Blueprints Volume II

You're reading from   Bootstrap Site Blueprints Volume II Maximize the potential of Bootstrap for faster and more responsive web applications

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Length 328 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matt Lambert Matt Lambert
Author Profile Icon Matt Lambert
Matt Lambert
Arrow right icon
View More author details
Toc

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime