Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bootstrap Site Blueprints Volume II

You're reading from  Bootstrap Site Blueprints Volume II

Product type Book
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Pages 328 pages
Edition 1st Edition
Languages
Author (1):
Matt Lambert Matt Lambert
Profile icon Matt Lambert

Setting up the Less variables


The next step will be to set up the new Less variables for the magazine project. Open the _variables.less file, which is found in css/components. Let's go through each section that you need to update:

@bm-primary: #673ab7;
@bm-dark-primary: #512da8;
@bm-light-primary: #d1c4e9;
@bm-accent: #e040fb;
@bm-black: #212121;
@bm-grey: #727272;
@bm-light-grey: #b6b6b6;

As we did in the previous wiki project, we're going to use the primary naming convention for our custom colors. Each one is prepended with bm- in order to make it easily identifiable.

Background colors

Next, let's update our background color variables to use our new color values:

@primary-background: @white;
@secondary-background: @bm-grey;
@inverse-background: @bm-black; 

Text colors

After setting up the background, let's move on to updating our text color variables to use the new values:

@primary-text: @bm-grey; 
@light-text: @bm-light-grey; 
@loud-text: @bm-black; 
@inverse-text: @white; 
@heading-text: @bm...
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 €14.99/month. Cancel anytime}