Search icon CANCEL
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

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